@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/api.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Pandook API
6
6
  * API for managing pickle ball games and players
7
7
  *
8
- * The version of the OpenAPI document: 1.0.22
8
+ * The version of the OpenAPI document: 1.0.24
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -22,9 +22,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
22
22
  });
23
23
  };
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
- exports.ManagerClubSubscriptionsApiFactory = exports.ManagerClubSubscriptionsApiFp = exports.ManagerClubSubscriptionsApiAxiosParamCreator = exports.ManagerClubSlotsApi = exports.ManagerClubSlotsApiFactory = exports.ManagerClubSlotsApiFp = exports.ManagerClubSlotsApiAxiosParamCreator = exports.ManagerClubRolesApi = exports.ManagerClubRolesApiFactory = exports.ManagerClubRolesApiFp = exports.ManagerClubRolesApiAxiosParamCreator = exports.ManagerClubCourtsApi = exports.ManagerClubCourtsApiFactory = exports.ManagerClubCourtsApiFp = exports.ManagerClubCourtsApiAxiosParamCreator = exports.ManagerBookingsApi = exports.ManagerBookingsApiFactory = exports.ManagerBookingsApiFp = exports.ManagerBookingsApiAxiosParamCreator = exports.GetInvoicesStatusEnum = exports.ClubAnalyticsApi = exports.ClubAnalyticsApiFactory = exports.ClubAnalyticsApiFp = exports.ClubAnalyticsApiAxiosParamCreator = exports.BookingsApi = exports.BookingsApiFactory = exports.BookingsApiFp = exports.BookingsApiAxiosParamCreator = exports.AdminClubsApi = exports.AdminClubsApiFactory = exports.AdminClubsApiFp = exports.AdminClubsApiAxiosParamCreator = exports.AdminClubSlotsApi = exports.AdminClubSlotsApiFactory = exports.AdminClubSlotsApiFp = exports.AdminClubSlotsApiAxiosParamCreator = exports.SubscriptionResponseStatusEnum = exports.StripeStatus = exports.PaymentMethod = exports.NoShowFeeResponseCaptureResultsInnerStatusEnum = exports.NoShowFeeResponseCaptureResultsInnerTypeEnum = exports.ManagerCancelBookingResponseBookingStatusEnum = exports.InvoicesResponseInvoicesInnerStatusEnum = exports.CreatePriceRequestIntervalEnum = exports.CourtStatus = exports.CourtResponseSurfaceEnum = exports.CourtResponseStatusEnum = exports.CancelBookingResponseBookingStatusEnum = exports.BookingStatus = exports.BookingPaymentStatusResponsePaymentStatusInnerPaymentMethodEnum = void 0;
26
- exports.UserClubSlotsApiAxiosParamCreator = exports.UserClubCourtsApi = exports.UserClubCourtsApiFactory = exports.UserClubCourtsApiFp = exports.UserClubCourtsApiAxiosParamCreator = exports.UserBookingsApi = exports.UserBookingsApiFactory = exports.UserBookingsApiFp = exports.UserBookingsApiAxiosParamCreator = exports.UserAuthenticationApi = exports.UserAuthenticationApiFactory = exports.UserAuthenticationApiFp = exports.UserAuthenticationApiAxiosParamCreator = exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.StaffSportsApi = exports.StaffSportsApiFactory = exports.StaffSportsApiFp = exports.StaffSportsApiAxiosParamCreator = exports.StaffProfileApi = exports.StaffProfileApiFactory = exports.StaffProfileApiFp = exports.StaffProfileApiAxiosParamCreator = exports.StaffClubsApi = exports.StaffClubsApiFactory = exports.StaffClubsApiFp = exports.StaffClubsApiAxiosParamCreator = exports.StaffClubSettingsApi = exports.StaffClubSettingsApiFactory = exports.StaffClubSettingsApiFp = exports.StaffClubSettingsApiAxiosParamCreator = exports.StaffClubBookingsApi = exports.StaffClubBookingsApiFactory = exports.StaffClubBookingsApiFp = exports.StaffClubBookingsApiAxiosParamCreator = exports.StaffClubAnalyticsApi = exports.StaffClubAnalyticsApiFactory = exports.StaffClubAnalyticsApiFp = exports.StaffClubAnalyticsApiAxiosParamCreator = exports.ManagerSportsApi = exports.ManagerSportsApiFactory = exports.ManagerSportsApiFp = exports.ManagerSportsApiAxiosParamCreator = exports.ManagerClubsApi = exports.ManagerClubsApiFactory = exports.ManagerClubsApiFp = exports.ManagerClubsApiAxiosParamCreator = exports.ManagerClubSubscriptionsApi = void 0;
27
- exports.UserSubscriptionsApi = exports.UserSubscriptionsApiFactory = exports.UserSubscriptionsApiFp = exports.UserSubscriptionsApiAxiosParamCreator = exports.UserProfileApi = exports.UserProfileApiFactory = exports.UserProfileApiFp = exports.UserProfileApiAxiosParamCreator = exports.UserPaymentApi = exports.UserPaymentApiFactory = exports.UserPaymentApiFp = exports.UserPaymentApiAxiosParamCreator = exports.UserClubsApi = exports.UserClubsApiFactory = exports.UserClubsApiFp = exports.UserClubsApiAxiosParamCreator = exports.UserClubSportsApi = exports.UserClubSportsApiFactory = exports.UserClubSportsApiFp = exports.UserClubSportsApiAxiosParamCreator = exports.UserClubSlotsApi = exports.UserClubSlotsApiFactory = exports.UserClubSlotsApiFp = void 0;
25
+ exports.ManagerClubRolesApi = exports.ManagerClubRolesApiFactory = exports.ManagerClubRolesApiFp = exports.ManagerClubRolesApiAxiosParamCreator = exports.ManagerClubCourtsApi = exports.ManagerClubCourtsApiFactory = exports.ManagerClubCourtsApiFp = exports.ManagerClubCourtsApiAxiosParamCreator = exports.ManagerBookingsApi = exports.ManagerBookingsApiFactory = exports.ManagerBookingsApiFp = exports.ManagerBookingsApiAxiosParamCreator = exports.GetInvoicesStatusEnum = exports.ClubAnalyticsApi = exports.ClubAnalyticsApiFactory = exports.ClubAnalyticsApiFp = exports.ClubAnalyticsApiAxiosParamCreator = exports.AdminClubsApi = exports.AdminClubsApiFactory = exports.AdminClubsApiFp = exports.AdminClubsApiAxiosParamCreator = exports.AdminClubSubscriptionsApi = exports.AdminClubSubscriptionsApiFactory = exports.AdminClubSubscriptionsApiFp = exports.AdminClubSubscriptionsApiAxiosParamCreator = exports.AdminClubSlotsApi = exports.AdminClubSlotsApiFactory = exports.AdminClubSlotsApiFp = exports.AdminClubSlotsApiAxiosParamCreator = exports.GetInvoicesAdminStatusEnum = exports.AdminClubAnalyticsApi = exports.AdminClubAnalyticsApiFactory = exports.AdminClubAnalyticsApiFp = exports.AdminClubAnalyticsApiAxiosParamCreator = exports.SubscriptionResponseStatusEnum = exports.StripeStatus = exports.PaymentMethod = exports.NoShowFeeResponseCaptureResultsInnerStatusEnum = exports.NoShowFeeResponseCaptureResultsInnerTypeEnum = exports.ManagerCancelBookingResponseBookingStatusEnum = exports.InvoicesResponseInvoicesInnerStatusEnum = exports.CreatePriceRequestIntervalEnum = exports.CourtStatus = exports.CourtResponseSurfaceEnum = exports.CourtResponseStatusEnum = exports.CancelBookingResponseBookingStatusEnum = exports.BookingStatus = exports.BookingPopulatedPaymentByPlayersStatusInnerInvoicesInnerStatusEnum = exports.BookingPopulatedStatusEnum = exports.BookingPaymentStatusResponsePaymentStatusInnerPaymentMethodEnum = void 0;
26
+ exports.UserClubSlotsApiFp = exports.UserClubSlotsApiAxiosParamCreator = exports.UserClubCourtsApi = exports.UserClubCourtsApiFactory = exports.UserClubCourtsApiFp = exports.UserClubCourtsApiAxiosParamCreator = exports.UserBookingsApi = exports.UserBookingsApiFactory = exports.UserBookingsApiFp = exports.UserBookingsApiAxiosParamCreator = exports.UserAuthenticationApi = exports.UserAuthenticationApiFactory = exports.UserAuthenticationApiFp = exports.UserAuthenticationApiAxiosParamCreator = exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.StaffProfileApi = exports.StaffProfileApiFactory = exports.StaffProfileApiFp = exports.StaffProfileApiAxiosParamCreator = exports.StaffClubsApi = exports.StaffClubsApiFactory = exports.StaffClubsApiFp = exports.StaffClubsApiAxiosParamCreator = exports.StaffClubBookingsApi = exports.StaffClubBookingsApiFactory = exports.StaffClubBookingsApiFp = exports.StaffClubBookingsApiAxiosParamCreator = exports.StaffClubAnalyticsApi = exports.StaffClubAnalyticsApiFactory = exports.StaffClubAnalyticsApiFp = exports.StaffClubAnalyticsApiAxiosParamCreator = exports.ManagerSportsApi = exports.ManagerSportsApiFactory = exports.ManagerSportsApiFp = exports.ManagerSportsApiAxiosParamCreator = exports.ManagerClubsApi = exports.ManagerClubsApiFactory = exports.ManagerClubsApiFp = exports.ManagerClubsApiAxiosParamCreator = exports.ManagerClubSubscriptionsApi = exports.ManagerClubSubscriptionsApiFactory = exports.ManagerClubSubscriptionsApiFp = exports.ManagerClubSubscriptionsApiAxiosParamCreator = exports.ManagerClubSlotsApi = exports.ManagerClubSlotsApiFactory = exports.ManagerClubSlotsApiFp = exports.ManagerClubSlotsApiAxiosParamCreator = void 0;
27
+ exports.UserSubscriptionsApi = exports.UserSubscriptionsApiFactory = exports.UserSubscriptionsApiFp = exports.UserSubscriptionsApiAxiosParamCreator = exports.UserProfileApi = exports.UserProfileApiFactory = exports.UserProfileApiFp = exports.UserProfileApiAxiosParamCreator = exports.UserPaymentApi = exports.UserPaymentApiFactory = exports.UserPaymentApiFp = exports.UserPaymentApiAxiosParamCreator = exports.UserClubsApi = exports.UserClubsApiFactory = exports.UserClubsApiFp = exports.UserClubsApiAxiosParamCreator = exports.UserClubSportsApi = exports.UserClubSportsApiFactory = exports.UserClubSportsApiFp = exports.UserClubSportsApiAxiosParamCreator = exports.UserClubSlotsApi = exports.UserClubSlotsApiFactory = void 0;
28
28
  const axios_1 = require("axios");
29
29
  // Some imports not used depending on template conditions
30
30
  // @ts-ignore
@@ -35,6 +35,15 @@ exports.BookingPaymentStatusResponsePaymentStatusInnerPaymentMethodEnum = {
35
35
  Stripe: 'stripe',
36
36
  Onsite: 'onsite'
37
37
  };
38
+ exports.BookingPopulatedStatusEnum = {
39
+ Active: 'active',
40
+ Inactive: 'inactive'
41
+ };
42
+ exports.BookingPopulatedPaymentByPlayersStatusInnerInvoicesInnerStatusEnum = {
43
+ Paid: 'paid',
44
+ Pending: 'pending',
45
+ Failed: 'failed'
46
+ };
38
47
  /**
39
48
  *
40
49
  * @export
@@ -122,22 +131,25 @@ exports.SubscriptionResponseStatusEnum = {
122
131
  Unpaid: 'unpaid'
123
132
  };
124
133
  /**
125
- * AdminClubSlotsApi - axios parameter creator
134
+ * AdminClubAnalyticsApi - axios parameter creator
126
135
  * @export
127
136
  */
128
- const AdminClubSlotsApiAxiosParamCreator = function (configuration) {
137
+ const AdminClubAnalyticsApiAxiosParamCreator = function (configuration) {
129
138
  return {
130
139
  /**
131
140
  *
132
- * @summary Générer les créneaux pour les 3 semaines à venir (Admin uniquement)
141
+ * @summary Chiffre d\'affaires quotidien (Admin)
133
142
  * @param {string} id ID du club
143
+ * @param {string} date Date (YYYY-MM-DD)
134
144
  * @param {*} [options] Override http request option.
135
145
  * @throws {RequiredError}
136
146
  */
137
- generateSlotsForNextThreeWeeks: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
147
+ getDailyTurnOverAdmin: (id_1, date_1, ...args_1) => __awaiter(this, [id_1, date_1, ...args_1], void 0, function* (id, date, options = {}) {
138
148
  // verify required parameter 'id' is not null or undefined
139
- (0, common_1.assertParamExists)('generateSlotsForNextThreeWeeks', 'id', id);
140
- const localVarPath = `/api/clubs/{id}/generate-slots`
149
+ (0, common_1.assertParamExists)('getDailyTurnOverAdmin', 'id', id);
150
+ // verify required parameter 'date' is not null or undefined
151
+ (0, common_1.assertParamExists)('getDailyTurnOverAdmin', 'date', date);
152
+ const localVarPath = `/api/clubs/{id}/turnover/daily`
141
153
  .replace(`{${"id"}}`, encodeURIComponent(String(id)));
142
154
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
143
155
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -145,12 +157,155 @@ const AdminClubSlotsApiAxiosParamCreator = function (configuration) {
145
157
  if (configuration) {
146
158
  baseOptions = configuration.baseOptions;
147
159
  }
148
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
160
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
161
+ const localVarHeaderParameter = {};
162
+ const localVarQueryParameter = {};
163
+ // authentication bearerAuth required
164
+ // http bearer authentication required
165
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
166
+ if (date !== undefined) {
167
+ localVarQueryParameter['date'] = (date instanceof Date) ?
168
+ date.toISOString().substring(0, 10) :
169
+ date;
170
+ }
171
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
172
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
173
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
174
+ return {
175
+ url: (0, common_1.toPathString)(localVarUrlObj),
176
+ options: localVarRequestOptions,
177
+ };
178
+ }),
179
+ /**
180
+ *
181
+ * @summary Récupérer les factures d\'un club (Admin)
182
+ * @param {string} id ID du club
183
+ * @param {number} [page]
184
+ * @param {number} [limit]
185
+ * @param {GetInvoicesAdminStatusEnum} [status]
186
+ * @param {string} [startDate]
187
+ * @param {string} [endDate]
188
+ * @param {*} [options] Override http request option.
189
+ * @throws {RequiredError}
190
+ */
191
+ 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 = {}) {
192
+ // verify required parameter 'id' is not null or undefined
193
+ (0, common_1.assertParamExists)('getInvoicesAdmin', 'id', id);
194
+ const localVarPath = `/api/clubs/{id}/invoices`
195
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
196
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
197
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
198
+ let baseOptions;
199
+ if (configuration) {
200
+ baseOptions = configuration.baseOptions;
201
+ }
202
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
203
+ const localVarHeaderParameter = {};
204
+ const localVarQueryParameter = {};
205
+ // authentication bearerAuth required
206
+ // http bearer authentication required
207
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
208
+ if (page !== undefined) {
209
+ localVarQueryParameter['page'] = page;
210
+ }
211
+ if (limit !== undefined) {
212
+ localVarQueryParameter['limit'] = limit;
213
+ }
214
+ if (status !== undefined) {
215
+ localVarQueryParameter['status'] = status;
216
+ }
217
+ if (startDate !== undefined) {
218
+ localVarQueryParameter['startDate'] = (startDate instanceof Date) ?
219
+ startDate.toISOString() :
220
+ startDate;
221
+ }
222
+ if (endDate !== undefined) {
223
+ localVarQueryParameter['endDate'] = (endDate instanceof Date) ?
224
+ endDate.toISOString() :
225
+ endDate;
226
+ }
227
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
228
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
229
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
230
+ return {
231
+ url: (0, common_1.toPathString)(localVarUrlObj),
232
+ options: localVarRequestOptions,
233
+ };
234
+ }),
235
+ /**
236
+ *
237
+ * @summary Chiffre d\'affaires mensuel (Admin)
238
+ * @param {string} id ID du club
239
+ * @param {number} year Année
240
+ * @param {number} month Mois (1-12)
241
+ * @param {*} [options] Override http request option.
242
+ * @throws {RequiredError}
243
+ */
244
+ 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 = {}) {
245
+ // verify required parameter 'id' is not null or undefined
246
+ (0, common_1.assertParamExists)('getMonthlyTurnOverAdmin', 'id', id);
247
+ // verify required parameter 'year' is not null or undefined
248
+ (0, common_1.assertParamExists)('getMonthlyTurnOverAdmin', 'year', year);
249
+ // verify required parameter 'month' is not null or undefined
250
+ (0, common_1.assertParamExists)('getMonthlyTurnOverAdmin', 'month', month);
251
+ const localVarPath = `/api/clubs/{id}/turnover/monthly`
252
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
253
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
254
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
255
+ let baseOptions;
256
+ if (configuration) {
257
+ baseOptions = configuration.baseOptions;
258
+ }
259
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
260
+ const localVarHeaderParameter = {};
261
+ const localVarQueryParameter = {};
262
+ // authentication bearerAuth required
263
+ // http bearer authentication required
264
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
265
+ if (year !== undefined) {
266
+ localVarQueryParameter['year'] = year;
267
+ }
268
+ if (month !== undefined) {
269
+ localVarQueryParameter['month'] = month;
270
+ }
271
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
272
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
273
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
274
+ return {
275
+ url: (0, common_1.toPathString)(localVarUrlObj),
276
+ options: localVarRequestOptions,
277
+ };
278
+ }),
279
+ /**
280
+ *
281
+ * @summary Chiffre d\'affaires annuel (Admin)
282
+ * @param {string} id ID du club
283
+ * @param {number} year Année
284
+ * @param {*} [options] Override http request option.
285
+ * @throws {RequiredError}
286
+ */
287
+ getYearlyTurnOverAdmin: (id_1, year_1, ...args_1) => __awaiter(this, [id_1, year_1, ...args_1], void 0, function* (id, year, options = {}) {
288
+ // verify required parameter 'id' is not null or undefined
289
+ (0, common_1.assertParamExists)('getYearlyTurnOverAdmin', 'id', id);
290
+ // verify required parameter 'year' is not null or undefined
291
+ (0, common_1.assertParamExists)('getYearlyTurnOverAdmin', 'year', year);
292
+ const localVarPath = `/api/clubs/{id}/turnover/yearly`
293
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
294
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
295
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
296
+ let baseOptions;
297
+ if (configuration) {
298
+ baseOptions = configuration.baseOptions;
299
+ }
300
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
149
301
  const localVarHeaderParameter = {};
150
302
  const localVarQueryParameter = {};
151
303
  // authentication bearerAuth required
152
304
  // http bearer authentication required
153
305
  yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
306
+ if (year !== undefined) {
307
+ localVarQueryParameter['year'] = year;
308
+ }
154
309
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
155
310
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
156
311
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -161,97 +316,735 @@ const AdminClubSlotsApiAxiosParamCreator = function (configuration) {
161
316
  }),
162
317
  };
163
318
  };
164
- exports.AdminClubSlotsApiAxiosParamCreator = AdminClubSlotsApiAxiosParamCreator;
319
+ exports.AdminClubAnalyticsApiAxiosParamCreator = AdminClubAnalyticsApiAxiosParamCreator;
165
320
  /**
166
- * AdminClubSlotsApi - functional programming interface
321
+ * AdminClubAnalyticsApi - functional programming interface
167
322
  * @export
168
323
  */
169
- const AdminClubSlotsApiFp = function (configuration) {
170
- const localVarAxiosParamCreator = (0, exports.AdminClubSlotsApiAxiosParamCreator)(configuration);
324
+ const AdminClubAnalyticsApiFp = function (configuration) {
325
+ const localVarAxiosParamCreator = (0, exports.AdminClubAnalyticsApiAxiosParamCreator)(configuration);
171
326
  return {
172
327
  /**
173
328
  *
174
- * @summary Générer les créneaux pour les 3 semaines à venir (Admin uniquement)
329
+ * @summary Chiffre d\'affaires quotidien (Admin)
175
330
  * @param {string} id ID du club
331
+ * @param {string} date Date (YYYY-MM-DD)
176
332
  * @param {*} [options] Override http request option.
177
333
  * @throws {RequiredError}
178
334
  */
179
- generateSlotsForNextThreeWeeks(id, options) {
335
+ getDailyTurnOverAdmin(id, date, options) {
180
336
  return __awaiter(this, void 0, void 0, function* () {
181
337
  var _a, _b, _c;
182
- const localVarAxiosArgs = yield localVarAxiosParamCreator.generateSlotsForNextThreeWeeks(id, options);
338
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getDailyTurnOverAdmin(id, date, options);
183
339
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
184
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AdminClubSlotsApi.generateSlotsForNextThreeWeeks']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
340
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AdminClubAnalyticsApi.getDailyTurnOverAdmin']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
341
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
342
+ });
343
+ },
344
+ /**
345
+ *
346
+ * @summary Récupérer les factures d\'un club (Admin)
347
+ * @param {string} id ID du club
348
+ * @param {number} [page]
349
+ * @param {number} [limit]
350
+ * @param {GetInvoicesAdminStatusEnum} [status]
351
+ * @param {string} [startDate]
352
+ * @param {string} [endDate]
353
+ * @param {*} [options] Override http request option.
354
+ * @throws {RequiredError}
355
+ */
356
+ getInvoicesAdmin(id, page, limit, status, startDate, endDate, options) {
357
+ return __awaiter(this, void 0, void 0, function* () {
358
+ var _a, _b, _c;
359
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getInvoicesAdmin(id, page, limit, status, startDate, endDate, options);
360
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
361
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AdminClubAnalyticsApi.getInvoicesAdmin']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
362
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
363
+ });
364
+ },
365
+ /**
366
+ *
367
+ * @summary Chiffre d\'affaires mensuel (Admin)
368
+ * @param {string} id ID du club
369
+ * @param {number} year Année
370
+ * @param {number} month Mois (1-12)
371
+ * @param {*} [options] Override http request option.
372
+ * @throws {RequiredError}
373
+ */
374
+ getMonthlyTurnOverAdmin(id, year, month, options) {
375
+ return __awaiter(this, void 0, void 0, function* () {
376
+ var _a, _b, _c;
377
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getMonthlyTurnOverAdmin(id, year, month, options);
378
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
379
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AdminClubAnalyticsApi.getMonthlyTurnOverAdmin']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
380
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
381
+ });
382
+ },
383
+ /**
384
+ *
385
+ * @summary Chiffre d\'affaires annuel (Admin)
386
+ * @param {string} id ID du club
387
+ * @param {number} year Année
388
+ * @param {*} [options] Override http request option.
389
+ * @throws {RequiredError}
390
+ */
391
+ getYearlyTurnOverAdmin(id, year, options) {
392
+ return __awaiter(this, void 0, void 0, function* () {
393
+ var _a, _b, _c;
394
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getYearlyTurnOverAdmin(id, year, options);
395
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
396
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AdminClubAnalyticsApi.getYearlyTurnOverAdmin']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
185
397
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
186
398
  });
187
399
  },
188
400
  };
189
401
  };
190
- exports.AdminClubSlotsApiFp = AdminClubSlotsApiFp;
402
+ exports.AdminClubAnalyticsApiFp = AdminClubAnalyticsApiFp;
191
403
  /**
192
- * AdminClubSlotsApi - factory interface
404
+ * AdminClubAnalyticsApi - factory interface
193
405
  * @export
194
406
  */
195
- const AdminClubSlotsApiFactory = function (configuration, basePath, axios) {
196
- const localVarFp = (0, exports.AdminClubSlotsApiFp)(configuration);
407
+ const AdminClubAnalyticsApiFactory = function (configuration, basePath, axios) {
408
+ const localVarFp = (0, exports.AdminClubAnalyticsApiFp)(configuration);
197
409
  return {
198
410
  /**
199
411
  *
200
- * @summary Générer les créneaux pour les 3 semaines à venir (Admin uniquement)
201
- * @param {AdminClubSlotsApiGenerateSlotsForNextThreeWeeksRequest} requestParameters Request parameters.
412
+ * @summary Chiffre d\'affaires quotidien (Admin)
413
+ * @param {AdminClubAnalyticsApiGetDailyTurnOverAdminRequest} requestParameters Request parameters.
202
414
  * @param {*} [options] Override http request option.
203
415
  * @throws {RequiredError}
204
416
  */
205
- generateSlotsForNextThreeWeeks(requestParameters, options) {
206
- return localVarFp.generateSlotsForNextThreeWeeks(requestParameters.id, options).then((request) => request(axios, basePath));
417
+ getDailyTurnOverAdmin(requestParameters, options) {
418
+ return localVarFp.getDailyTurnOverAdmin(requestParameters.id, requestParameters.date, options).then((request) => request(axios, basePath));
419
+ },
420
+ /**
421
+ *
422
+ * @summary Récupérer les factures d\'un club (Admin)
423
+ * @param {AdminClubAnalyticsApiGetInvoicesAdminRequest} requestParameters Request parameters.
424
+ * @param {*} [options] Override http request option.
425
+ * @throws {RequiredError}
426
+ */
427
+ getInvoicesAdmin(requestParameters, options) {
428
+ return localVarFp.getInvoicesAdmin(requestParameters.id, requestParameters.page, requestParameters.limit, requestParameters.status, requestParameters.startDate, requestParameters.endDate, options).then((request) => request(axios, basePath));
429
+ },
430
+ /**
431
+ *
432
+ * @summary Chiffre d\'affaires mensuel (Admin)
433
+ * @param {AdminClubAnalyticsApiGetMonthlyTurnOverAdminRequest} requestParameters Request parameters.
434
+ * @param {*} [options] Override http request option.
435
+ * @throws {RequiredError}
436
+ */
437
+ getMonthlyTurnOverAdmin(requestParameters, options) {
438
+ return localVarFp.getMonthlyTurnOverAdmin(requestParameters.id, requestParameters.year, requestParameters.month, options).then((request) => request(axios, basePath));
439
+ },
440
+ /**
441
+ *
442
+ * @summary Chiffre d\'affaires annuel (Admin)
443
+ * @param {AdminClubAnalyticsApiGetYearlyTurnOverAdminRequest} requestParameters Request parameters.
444
+ * @param {*} [options] Override http request option.
445
+ * @throws {RequiredError}
446
+ */
447
+ getYearlyTurnOverAdmin(requestParameters, options) {
448
+ return localVarFp.getYearlyTurnOverAdmin(requestParameters.id, requestParameters.year, options).then((request) => request(axios, basePath));
207
449
  },
208
450
  };
209
451
  };
210
- exports.AdminClubSlotsApiFactory = AdminClubSlotsApiFactory;
452
+ exports.AdminClubAnalyticsApiFactory = AdminClubAnalyticsApiFactory;
211
453
  /**
212
- * AdminClubSlotsApi - object-oriented interface
454
+ * AdminClubAnalyticsApi - object-oriented interface
213
455
  * @export
214
- * @class AdminClubSlotsApi
456
+ * @class AdminClubAnalyticsApi
215
457
  * @extends {BaseAPI}
216
458
  */
217
- class AdminClubSlotsApi extends base_1.BaseAPI {
459
+ class AdminClubAnalyticsApi extends base_1.BaseAPI {
218
460
  /**
219
461
  *
220
- * @summary Générer les créneaux pour les 3 semaines à venir (Admin uniquement)
221
- * @param {AdminClubSlotsApiGenerateSlotsForNextThreeWeeksRequest} requestParameters Request parameters.
462
+ * @summary Chiffre d\'affaires quotidien (Admin)
463
+ * @param {AdminClubAnalyticsApiGetDailyTurnOverAdminRequest} requestParameters Request parameters.
222
464
  * @param {*} [options] Override http request option.
223
465
  * @throws {RequiredError}
224
- * @memberof AdminClubSlotsApi
466
+ * @memberof AdminClubAnalyticsApi
225
467
  */
226
- generateSlotsForNextThreeWeeks(requestParameters, options) {
227
- return (0, exports.AdminClubSlotsApiFp)(this.configuration).generateSlotsForNextThreeWeeks(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
468
+ getDailyTurnOverAdmin(requestParameters, options) {
469
+ return (0, exports.AdminClubAnalyticsApiFp)(this.configuration).getDailyTurnOverAdmin(requestParameters.id, requestParameters.date, options).then((request) => request(this.axios, this.basePath));
470
+ }
471
+ /**
472
+ *
473
+ * @summary Récupérer les factures d\'un club (Admin)
474
+ * @param {AdminClubAnalyticsApiGetInvoicesAdminRequest} requestParameters Request parameters.
475
+ * @param {*} [options] Override http request option.
476
+ * @throws {RequiredError}
477
+ * @memberof AdminClubAnalyticsApi
478
+ */
479
+ getInvoicesAdmin(requestParameters, options) {
480
+ return (0, exports.AdminClubAnalyticsApiFp)(this.configuration).getInvoicesAdmin(requestParameters.id, requestParameters.page, requestParameters.limit, requestParameters.status, requestParameters.startDate, requestParameters.endDate, options).then((request) => request(this.axios, this.basePath));
481
+ }
482
+ /**
483
+ *
484
+ * @summary Chiffre d\'affaires mensuel (Admin)
485
+ * @param {AdminClubAnalyticsApiGetMonthlyTurnOverAdminRequest} requestParameters Request parameters.
486
+ * @param {*} [options] Override http request option.
487
+ * @throws {RequiredError}
488
+ * @memberof AdminClubAnalyticsApi
489
+ */
490
+ getMonthlyTurnOverAdmin(requestParameters, options) {
491
+ return (0, exports.AdminClubAnalyticsApiFp)(this.configuration).getMonthlyTurnOverAdmin(requestParameters.id, requestParameters.year, requestParameters.month, options).then((request) => request(this.axios, this.basePath));
492
+ }
493
+ /**
494
+ *
495
+ * @summary Chiffre d\'affaires annuel (Admin)
496
+ * @param {AdminClubAnalyticsApiGetYearlyTurnOverAdminRequest} requestParameters Request parameters.
497
+ * @param {*} [options] Override http request option.
498
+ * @throws {RequiredError}
499
+ * @memberof AdminClubAnalyticsApi
500
+ */
501
+ getYearlyTurnOverAdmin(requestParameters, options) {
502
+ return (0, exports.AdminClubAnalyticsApiFp)(this.configuration).getYearlyTurnOverAdmin(requestParameters.id, requestParameters.year, options).then((request) => request(this.axios, this.basePath));
228
503
  }
229
504
  }
230
- exports.AdminClubSlotsApi = AdminClubSlotsApi;
505
+ exports.AdminClubAnalyticsApi = AdminClubAnalyticsApi;
231
506
  /**
232
- * AdminClubsApi - axios parameter creator
233
507
  * @export
234
508
  */
235
- const AdminClubsApiAxiosParamCreator = function (configuration) {
236
- return {
237
- /**
238
- *
239
- * @summary Créer un nouveau club (Admin uniquement)
240
- * @param {CreateClubRequest} createClubRequest
241
- * @param {*} [options] Override http request option.
242
- * @throws {RequiredError}
243
- */
244
- createClub: (createClubRequest_1, ...args_1) => __awaiter(this, [createClubRequest_1, ...args_1], void 0, function* (createClubRequest, options = {}) {
245
- // verify required parameter 'createClubRequest' is not null or undefined
246
- (0, common_1.assertParamExists)('createClub', 'createClubRequest', createClubRequest);
247
- const localVarPath = `/api/clubs`;
248
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
249
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
250
- let baseOptions;
509
+ exports.GetInvoicesAdminStatusEnum = {
510
+ Pending: 'pending',
511
+ Paid: 'paid',
512
+ Failed: 'failed',
513
+ Authorized: 'authorized',
514
+ Canceled: 'canceled',
515
+ Expired: 'expired'
516
+ };
517
+ /**
518
+ * AdminClubSlotsApi - axios parameter creator
519
+ * @export
520
+ */
521
+ const AdminClubSlotsApiAxiosParamCreator = function (configuration) {
522
+ return {
523
+ /**
524
+ *
525
+ * @summary Supprimer des créneaux pour un club sur une plage de dates (Admin uniquement)
526
+ * @param {string} id ID du club
527
+ * @param {string} start Date de début (format ISO)
528
+ * @param {string} end Date de fin (format ISO)
529
+ * @param {*} [options] Override http request option.
530
+ * @throws {RequiredError}
531
+ */
532
+ 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 = {}) {
533
+ // verify required parameter 'id' is not null or undefined
534
+ (0, common_1.assertParamExists)('deleteSlotsByClubInRangeByID', 'id', id);
535
+ // verify required parameter 'start' is not null or undefined
536
+ (0, common_1.assertParamExists)('deleteSlotsByClubInRangeByID', 'start', start);
537
+ // verify required parameter 'end' is not null or undefined
538
+ (0, common_1.assertParamExists)('deleteSlotsByClubInRangeByID', 'end', end);
539
+ const localVarPath = `/api/clubs/{id}/slots`
540
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
541
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
542
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
543
+ let baseOptions;
544
+ if (configuration) {
545
+ baseOptions = configuration.baseOptions;
546
+ }
547
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
548
+ const localVarHeaderParameter = {};
549
+ const localVarQueryParameter = {};
550
+ // authentication bearerAuth required
551
+ // http bearer authentication required
552
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
553
+ if (start !== undefined) {
554
+ localVarQueryParameter['start'] = (start instanceof Date) ?
555
+ start.toISOString() :
556
+ start;
557
+ }
558
+ if (end !== undefined) {
559
+ localVarQueryParameter['end'] = (end instanceof Date) ?
560
+ end.toISOString() :
561
+ end;
562
+ }
563
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
564
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
565
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
566
+ return {
567
+ url: (0, common_1.toPathString)(localVarUrlObj),
568
+ options: localVarRequestOptions,
569
+ };
570
+ }),
571
+ /**
572
+ *
573
+ * @summary Générer les créneaux pour les 3 semaines à venir (Admin uniquement)
574
+ * @param {string} id ID du club
575
+ * @param {*} [options] Override http request option.
576
+ * @throws {RequiredError}
577
+ */
578
+ generateSlotsForNextThreeWeeks: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
579
+ // verify required parameter 'id' is not null or undefined
580
+ (0, common_1.assertParamExists)('generateSlotsForNextThreeWeeks', 'id', id);
581
+ const localVarPath = `/api/clubs/{id}/generate-slots`
582
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
583
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
584
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
585
+ let baseOptions;
586
+ if (configuration) {
587
+ baseOptions = configuration.baseOptions;
588
+ }
589
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
590
+ const localVarHeaderParameter = {};
591
+ const localVarQueryParameter = {};
592
+ // authentication bearerAuth required
593
+ // http bearer authentication required
594
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
595
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
596
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
597
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
598
+ return {
599
+ url: (0, common_1.toPathString)(localVarUrlObj),
600
+ options: localVarRequestOptions,
601
+ };
602
+ }),
603
+ /**
604
+ *
605
+ * @summary Récupérer tous les créneaux d\'un club (Admin)
606
+ * @param {string} id ID du club
607
+ * @param {string} [start] Date de début (format ISO)
608
+ * @param {string} [end] Date de fin (format ISO)
609
+ * @param {*} [options] Override http request option.
610
+ * @throws {RequiredError}
611
+ */
612
+ 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 = {}) {
613
+ // verify required parameter 'id' is not null or undefined
614
+ (0, common_1.assertParamExists)('getSlotsByClubAdmin', 'id', id);
615
+ const localVarPath = `/api/clubs/{id}/slots`
616
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
617
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
618
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
619
+ let baseOptions;
620
+ if (configuration) {
621
+ baseOptions = configuration.baseOptions;
622
+ }
623
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
624
+ const localVarHeaderParameter = {};
625
+ const localVarQueryParameter = {};
626
+ // authentication bearerAuth required
627
+ // http bearer authentication required
628
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
629
+ if (start !== undefined) {
630
+ localVarQueryParameter['start'] = (start instanceof Date) ?
631
+ start.toISOString() :
632
+ start;
633
+ }
634
+ if (end !== undefined) {
635
+ localVarQueryParameter['end'] = (end instanceof Date) ?
636
+ end.toISOString() :
637
+ end;
638
+ }
639
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
640
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
641
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
642
+ return {
643
+ url: (0, common_1.toPathString)(localVarUrlObj),
644
+ options: localVarRequestOptions,
645
+ };
646
+ }),
647
+ };
648
+ };
649
+ exports.AdminClubSlotsApiAxiosParamCreator = AdminClubSlotsApiAxiosParamCreator;
650
+ /**
651
+ * AdminClubSlotsApi - functional programming interface
652
+ * @export
653
+ */
654
+ const AdminClubSlotsApiFp = function (configuration) {
655
+ const localVarAxiosParamCreator = (0, exports.AdminClubSlotsApiAxiosParamCreator)(configuration);
656
+ return {
657
+ /**
658
+ *
659
+ * @summary Supprimer des créneaux pour un club sur une plage de dates (Admin uniquement)
660
+ * @param {string} id ID du club
661
+ * @param {string} start Date de début (format ISO)
662
+ * @param {string} end Date de fin (format ISO)
663
+ * @param {*} [options] Override http request option.
664
+ * @throws {RequiredError}
665
+ */
666
+ deleteSlotsByClubInRangeByID(id, start, end, options) {
667
+ return __awaiter(this, void 0, void 0, function* () {
668
+ var _a, _b, _c;
669
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteSlotsByClubInRangeByID(id, start, end, options);
670
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
671
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AdminClubSlotsApi.deleteSlotsByClubInRangeByID']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
672
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
673
+ });
674
+ },
675
+ /**
676
+ *
677
+ * @summary Générer les créneaux pour les 3 semaines à venir (Admin uniquement)
678
+ * @param {string} id ID du club
679
+ * @param {*} [options] Override http request option.
680
+ * @throws {RequiredError}
681
+ */
682
+ generateSlotsForNextThreeWeeks(id, options) {
683
+ return __awaiter(this, void 0, void 0, function* () {
684
+ var _a, _b, _c;
685
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.generateSlotsForNextThreeWeeks(id, options);
686
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
687
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AdminClubSlotsApi.generateSlotsForNextThreeWeeks']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
688
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
689
+ });
690
+ },
691
+ /**
692
+ *
693
+ * @summary Récupérer tous les créneaux d\'un club (Admin)
694
+ * @param {string} id ID du club
695
+ * @param {string} [start] Date de début (format ISO)
696
+ * @param {string} [end] Date de fin (format ISO)
697
+ * @param {*} [options] Override http request option.
698
+ * @throws {RequiredError}
699
+ */
700
+ getSlotsByClubAdmin(id, start, end, options) {
701
+ return __awaiter(this, void 0, void 0, function* () {
702
+ var _a, _b, _c;
703
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getSlotsByClubAdmin(id, start, end, options);
704
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
705
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AdminClubSlotsApi.getSlotsByClubAdmin']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
706
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
707
+ });
708
+ },
709
+ };
710
+ };
711
+ exports.AdminClubSlotsApiFp = AdminClubSlotsApiFp;
712
+ /**
713
+ * AdminClubSlotsApi - factory interface
714
+ * @export
715
+ */
716
+ const AdminClubSlotsApiFactory = function (configuration, basePath, axios) {
717
+ const localVarFp = (0, exports.AdminClubSlotsApiFp)(configuration);
718
+ return {
719
+ /**
720
+ *
721
+ * @summary Supprimer des créneaux pour un club sur une plage de dates (Admin uniquement)
722
+ * @param {AdminClubSlotsApiDeleteSlotsByClubInRangeByIDRequest} requestParameters Request parameters.
723
+ * @param {*} [options] Override http request option.
724
+ * @throws {RequiredError}
725
+ */
726
+ deleteSlotsByClubInRangeByID(requestParameters, options) {
727
+ return localVarFp.deleteSlotsByClubInRangeByID(requestParameters.id, requestParameters.start, requestParameters.end, options).then((request) => request(axios, basePath));
728
+ },
729
+ /**
730
+ *
731
+ * @summary Générer les créneaux pour les 3 semaines à venir (Admin uniquement)
732
+ * @param {AdminClubSlotsApiGenerateSlotsForNextThreeWeeksRequest} requestParameters Request parameters.
733
+ * @param {*} [options] Override http request option.
734
+ * @throws {RequiredError}
735
+ */
736
+ generateSlotsForNextThreeWeeks(requestParameters, options) {
737
+ return localVarFp.generateSlotsForNextThreeWeeks(requestParameters.id, options).then((request) => request(axios, basePath));
738
+ },
739
+ /**
740
+ *
741
+ * @summary Récupérer tous les créneaux d\'un club (Admin)
742
+ * @param {AdminClubSlotsApiGetSlotsByClubAdminRequest} requestParameters Request parameters.
743
+ * @param {*} [options] Override http request option.
744
+ * @throws {RequiredError}
745
+ */
746
+ getSlotsByClubAdmin(requestParameters, options) {
747
+ return localVarFp.getSlotsByClubAdmin(requestParameters.id, requestParameters.start, requestParameters.end, options).then((request) => request(axios, basePath));
748
+ },
749
+ };
750
+ };
751
+ exports.AdminClubSlotsApiFactory = AdminClubSlotsApiFactory;
752
+ /**
753
+ * AdminClubSlotsApi - object-oriented interface
754
+ * @export
755
+ * @class AdminClubSlotsApi
756
+ * @extends {BaseAPI}
757
+ */
758
+ class AdminClubSlotsApi extends base_1.BaseAPI {
759
+ /**
760
+ *
761
+ * @summary Supprimer des créneaux pour un club sur une plage de dates (Admin uniquement)
762
+ * @param {AdminClubSlotsApiDeleteSlotsByClubInRangeByIDRequest} requestParameters Request parameters.
763
+ * @param {*} [options] Override http request option.
764
+ * @throws {RequiredError}
765
+ * @memberof AdminClubSlotsApi
766
+ */
767
+ deleteSlotsByClubInRangeByID(requestParameters, options) {
768
+ return (0, exports.AdminClubSlotsApiFp)(this.configuration).deleteSlotsByClubInRangeByID(requestParameters.id, requestParameters.start, requestParameters.end, options).then((request) => request(this.axios, this.basePath));
769
+ }
770
+ /**
771
+ *
772
+ * @summary Générer les créneaux pour les 3 semaines à venir (Admin uniquement)
773
+ * @param {AdminClubSlotsApiGenerateSlotsForNextThreeWeeksRequest} requestParameters Request parameters.
774
+ * @param {*} [options] Override http request option.
775
+ * @throws {RequiredError}
776
+ * @memberof AdminClubSlotsApi
777
+ */
778
+ generateSlotsForNextThreeWeeks(requestParameters, options) {
779
+ return (0, exports.AdminClubSlotsApiFp)(this.configuration).generateSlotsForNextThreeWeeks(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
780
+ }
781
+ /**
782
+ *
783
+ * @summary Récupérer tous les créneaux d\'un club (Admin)
784
+ * @param {AdminClubSlotsApiGetSlotsByClubAdminRequest} requestParameters Request parameters.
785
+ * @param {*} [options] Override http request option.
786
+ * @throws {RequiredError}
787
+ * @memberof AdminClubSlotsApi
788
+ */
789
+ getSlotsByClubAdmin(requestParameters, options) {
790
+ return (0, exports.AdminClubSlotsApiFp)(this.configuration).getSlotsByClubAdmin(requestParameters.id, requestParameters.start, requestParameters.end, options).then((request) => request(this.axios, this.basePath));
791
+ }
792
+ }
793
+ exports.AdminClubSlotsApi = AdminClubSlotsApi;
794
+ /**
795
+ * AdminClubSubscriptionsApi - axios parameter creator
796
+ * @export
797
+ */
798
+ const AdminClubSubscriptionsApiAxiosParamCreator = function (configuration) {
799
+ return {
800
+ /**
801
+ *
802
+ * @summary Archiver un prix (Admin)
803
+ * @param {string} id
804
+ * @param {string} priceId
805
+ * @param {*} [options] Override http request option.
806
+ * @throws {RequiredError}
807
+ */
808
+ archivePriceForSubscriptionPlanAdmin: (id_1, priceId_1, ...args_1) => __awaiter(this, [id_1, priceId_1, ...args_1], void 0, function* (id, priceId, options = {}) {
809
+ // verify required parameter 'id' is not null or undefined
810
+ (0, common_1.assertParamExists)('archivePriceForSubscriptionPlanAdmin', 'id', id);
811
+ // verify required parameter 'priceId' is not null or undefined
812
+ (0, common_1.assertParamExists)('archivePriceForSubscriptionPlanAdmin', 'priceId', priceId);
813
+ const localVarPath = `/api/clubs/{id}/subscription-plans/{priceId}/archive-price`
814
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)))
815
+ .replace(`{${"priceId"}}`, encodeURIComponent(String(priceId)));
816
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
817
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
818
+ let baseOptions;
819
+ if (configuration) {
820
+ baseOptions = configuration.baseOptions;
821
+ }
822
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
823
+ const localVarHeaderParameter = {};
824
+ const localVarQueryParameter = {};
825
+ // authentication bearerAuth required
826
+ // http bearer authentication required
827
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
828
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
829
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
830
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
831
+ return {
832
+ url: (0, common_1.toPathString)(localVarUrlObj),
833
+ options: localVarRequestOptions,
834
+ };
835
+ }),
836
+ /**
837
+ *
838
+ * @summary Créer un prix pour un plan (Admin)
839
+ * @param {string} id
840
+ * @param {string} productId
841
+ * @param {CreatePriceRequest} createPriceRequest
842
+ * @param {*} [options] Override http request option.
843
+ * @throws {RequiredError}
844
+ */
845
+ 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 = {}) {
846
+ // verify required parameter 'id' is not null or undefined
847
+ (0, common_1.assertParamExists)('createPriceForSubscriptionPlanAdmin', 'id', id);
848
+ // verify required parameter 'productId' is not null or undefined
849
+ (0, common_1.assertParamExists)('createPriceForSubscriptionPlanAdmin', 'productId', productId);
850
+ // verify required parameter 'createPriceRequest' is not null or undefined
851
+ (0, common_1.assertParamExists)('createPriceForSubscriptionPlanAdmin', 'createPriceRequest', createPriceRequest);
852
+ const localVarPath = `/api/clubs/{id}/subscription-plans/{productId}/prices`
853
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)))
854
+ .replace(`{${"productId"}}`, encodeURIComponent(String(productId)));
855
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
856
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
857
+ let baseOptions;
858
+ if (configuration) {
859
+ baseOptions = configuration.baseOptions;
860
+ }
861
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
862
+ const localVarHeaderParameter = {};
863
+ const localVarQueryParameter = {};
864
+ // authentication bearerAuth required
865
+ // http bearer authentication required
866
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
867
+ localVarHeaderParameter['Content-Type'] = 'application/json';
868
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
869
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
870
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
871
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createPriceRequest, localVarRequestOptions, configuration);
872
+ return {
873
+ url: (0, common_1.toPathString)(localVarUrlObj),
874
+ options: localVarRequestOptions,
875
+ };
876
+ }),
877
+ /**
878
+ *
879
+ * @summary Créer un plan d\'abonnement pour un club (Admin)
880
+ * @param {string} id
881
+ * @param {CreateSubscriptionPlanRequest} createSubscriptionPlanRequest
882
+ * @param {*} [options] Override http request option.
883
+ * @throws {RequiredError}
884
+ */
885
+ createSubscriptionPlanForClubAdmin: (id_1, createSubscriptionPlanRequest_1, ...args_1) => __awaiter(this, [id_1, createSubscriptionPlanRequest_1, ...args_1], void 0, function* (id, createSubscriptionPlanRequest, options = {}) {
886
+ // verify required parameter 'id' is not null or undefined
887
+ (0, common_1.assertParamExists)('createSubscriptionPlanForClubAdmin', 'id', id);
888
+ // verify required parameter 'createSubscriptionPlanRequest' is not null or undefined
889
+ (0, common_1.assertParamExists)('createSubscriptionPlanForClubAdmin', 'createSubscriptionPlanRequest', createSubscriptionPlanRequest);
890
+ const localVarPath = `/api/clubs/{id}/subscription-plans`
891
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
892
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
893
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
894
+ let baseOptions;
895
+ if (configuration) {
896
+ baseOptions = configuration.baseOptions;
897
+ }
898
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
899
+ const localVarHeaderParameter = {};
900
+ const localVarQueryParameter = {};
901
+ // authentication bearerAuth required
902
+ // http bearer authentication required
903
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
904
+ localVarHeaderParameter['Content-Type'] = 'application/json';
905
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
906
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
907
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
908
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createSubscriptionPlanRequest, localVarRequestOptions, configuration);
909
+ return {
910
+ url: (0, common_1.toPathString)(localVarUrlObj),
911
+ options: localVarRequestOptions,
912
+ };
913
+ }),
914
+ /**
915
+ *
916
+ * @summary Supprimer un plan (Admin)
917
+ * @param {string} id
918
+ * @param {string} productId
919
+ * @param {*} [options] Override http request option.
920
+ * @throws {RequiredError}
921
+ */
922
+ deleteSubscriptionPlanForClubAdmin: (id_1, productId_1, ...args_1) => __awaiter(this, [id_1, productId_1, ...args_1], void 0, function* (id, productId, options = {}) {
923
+ // verify required parameter 'id' is not null or undefined
924
+ (0, common_1.assertParamExists)('deleteSubscriptionPlanForClubAdmin', 'id', id);
925
+ // verify required parameter 'productId' is not null or undefined
926
+ (0, common_1.assertParamExists)('deleteSubscriptionPlanForClubAdmin', 'productId', productId);
927
+ const localVarPath = `/api/clubs/{id}/subscription-plans/{productId}`
928
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)))
929
+ .replace(`{${"productId"}}`, encodeURIComponent(String(productId)));
930
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
931
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
932
+ let baseOptions;
933
+ if (configuration) {
934
+ baseOptions = configuration.baseOptions;
935
+ }
936
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
937
+ const localVarHeaderParameter = {};
938
+ const localVarQueryParameter = {};
939
+ // authentication bearerAuth required
940
+ // http bearer authentication required
941
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
942
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
943
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
944
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
945
+ return {
946
+ url: (0, common_1.toPathString)(localVarUrlObj),
947
+ options: localVarRequestOptions,
948
+ };
949
+ }),
950
+ /**
951
+ *
952
+ * @summary Réactiver un plan (Admin)
953
+ * @param {string} id
954
+ * @param {string} productId
955
+ * @param {*} [options] Override http request option.
956
+ * @throws {RequiredError}
957
+ */
958
+ restoreSubscriptionPlanForClubAdmin: (id_1, productId_1, ...args_1) => __awaiter(this, [id_1, productId_1, ...args_1], void 0, function* (id, productId, options = {}) {
959
+ // verify required parameter 'id' is not null or undefined
960
+ (0, common_1.assertParamExists)('restoreSubscriptionPlanForClubAdmin', 'id', id);
961
+ // verify required parameter 'productId' is not null or undefined
962
+ (0, common_1.assertParamExists)('restoreSubscriptionPlanForClubAdmin', 'productId', productId);
963
+ const localVarPath = `/api/clubs/{id}/subscription-plans/{productId}/restore`
964
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)))
965
+ .replace(`{${"productId"}}`, encodeURIComponent(String(productId)));
966
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
967
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
968
+ let baseOptions;
969
+ if (configuration) {
970
+ baseOptions = configuration.baseOptions;
971
+ }
972
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
973
+ const localVarHeaderParameter = {};
974
+ const localVarQueryParameter = {};
975
+ // authentication bearerAuth required
976
+ // http bearer authentication required
977
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
978
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
979
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
980
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
981
+ return {
982
+ url: (0, common_1.toPathString)(localVarUrlObj),
983
+ options: localVarRequestOptions,
984
+ };
985
+ }),
986
+ /**
987
+ *
988
+ * @summary Réactiver un prix (Admin)
989
+ * @param {string} id
990
+ * @param {string} priceId
991
+ * @param {*} [options] Override http request option.
992
+ * @throws {RequiredError}
993
+ */
994
+ restoreSubscriptionPriceForClubAdmin: (id_1, priceId_1, ...args_1) => __awaiter(this, [id_1, priceId_1, ...args_1], void 0, function* (id, priceId, options = {}) {
995
+ // verify required parameter 'id' is not null or undefined
996
+ (0, common_1.assertParamExists)('restoreSubscriptionPriceForClubAdmin', 'id', id);
997
+ // verify required parameter 'priceId' is not null or undefined
998
+ (0, common_1.assertParamExists)('restoreSubscriptionPriceForClubAdmin', 'priceId', priceId);
999
+ const localVarPath = `/api/clubs/{id}/subscription-plans/{priceId}/restore-price`
1000
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)))
1001
+ .replace(`{${"priceId"}}`, encodeURIComponent(String(priceId)));
1002
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1003
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1004
+ let baseOptions;
1005
+ if (configuration) {
1006
+ baseOptions = configuration.baseOptions;
1007
+ }
1008
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1009
+ const localVarHeaderParameter = {};
1010
+ const localVarQueryParameter = {};
1011
+ // authentication bearerAuth required
1012
+ // http bearer authentication required
1013
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1014
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1015
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1016
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1017
+ return {
1018
+ url: (0, common_1.toPathString)(localVarUrlObj),
1019
+ options: localVarRequestOptions,
1020
+ };
1021
+ }),
1022
+ /**
1023
+ *
1024
+ * @summary Mettre à jour un plan (Admin)
1025
+ * @param {string} id
1026
+ * @param {string} priceId
1027
+ * @param {UpdateSubscriptionPlanRequest} updateSubscriptionPlanRequest
1028
+ * @param {*} [options] Override http request option.
1029
+ * @throws {RequiredError}
1030
+ */
1031
+ 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 = {}) {
1032
+ // verify required parameter 'id' is not null or undefined
1033
+ (0, common_1.assertParamExists)('updateSubscriptionPlanForClubAdmin', 'id', id);
1034
+ // verify required parameter 'priceId' is not null or undefined
1035
+ (0, common_1.assertParamExists)('updateSubscriptionPlanForClubAdmin', 'priceId', priceId);
1036
+ // verify required parameter 'updateSubscriptionPlanRequest' is not null or undefined
1037
+ (0, common_1.assertParamExists)('updateSubscriptionPlanForClubAdmin', 'updateSubscriptionPlanRequest', updateSubscriptionPlanRequest);
1038
+ const localVarPath = `/api/clubs/{id}/subscription-plans/{priceId}`
1039
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)))
1040
+ .replace(`{${"priceId"}}`, encodeURIComponent(String(priceId)));
1041
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1042
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1043
+ let baseOptions;
251
1044
  if (configuration) {
252
1045
  baseOptions = configuration.baseOptions;
253
1046
  }
254
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1047
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
255
1048
  const localVarHeaderParameter = {};
256
1049
  const localVarQueryParameter = {};
257
1050
  // authentication bearerAuth required
@@ -261,35 +1054,414 @@ const AdminClubsApiAxiosParamCreator = function (configuration) {
261
1054
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
262
1055
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
263
1056
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
264
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createClubRequest, localVarRequestOptions, configuration);
1057
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateSubscriptionPlanRequest, localVarRequestOptions, configuration);
265
1058
  return {
266
1059
  url: (0, common_1.toPathString)(localVarUrlObj),
267
1060
  options: localVarRequestOptions,
268
1061
  };
269
1062
  }),
1063
+ };
1064
+ };
1065
+ exports.AdminClubSubscriptionsApiAxiosParamCreator = AdminClubSubscriptionsApiAxiosParamCreator;
1066
+ /**
1067
+ * AdminClubSubscriptionsApi - functional programming interface
1068
+ * @export
1069
+ */
1070
+ const AdminClubSubscriptionsApiFp = function (configuration) {
1071
+ const localVarAxiosParamCreator = (0, exports.AdminClubSubscriptionsApiAxiosParamCreator)(configuration);
1072
+ return {
270
1073
  /**
271
1074
  *
272
- * @summary Récupérer tous les clubs (Admin uniquement)
1075
+ * @summary Archiver un prix (Admin)
1076
+ * @param {string} id
1077
+ * @param {string} priceId
273
1078
  * @param {*} [options] Override http request option.
274
1079
  * @throws {RequiredError}
275
1080
  */
276
- getAllClubs: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
277
- const localVarPath = `/api/clubs`;
1081
+ archivePriceForSubscriptionPlanAdmin(id, priceId, options) {
1082
+ return __awaiter(this, void 0, void 0, function* () {
1083
+ var _a, _b, _c;
1084
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.archivePriceForSubscriptionPlanAdmin(id, priceId, options);
1085
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1086
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AdminClubSubscriptionsApi.archivePriceForSubscriptionPlanAdmin']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1087
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1088
+ });
1089
+ },
1090
+ /**
1091
+ *
1092
+ * @summary Créer un prix pour un plan (Admin)
1093
+ * @param {string} id
1094
+ * @param {string} productId
1095
+ * @param {CreatePriceRequest} createPriceRequest
1096
+ * @param {*} [options] Override http request option.
1097
+ * @throws {RequiredError}
1098
+ */
1099
+ createPriceForSubscriptionPlanAdmin(id, productId, createPriceRequest, options) {
1100
+ return __awaiter(this, void 0, void 0, function* () {
1101
+ var _a, _b, _c;
1102
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createPriceForSubscriptionPlanAdmin(id, productId, createPriceRequest, options);
1103
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1104
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AdminClubSubscriptionsApi.createPriceForSubscriptionPlanAdmin']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1105
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1106
+ });
1107
+ },
1108
+ /**
1109
+ *
1110
+ * @summary Créer un plan d\'abonnement pour un club (Admin)
1111
+ * @param {string} id
1112
+ * @param {CreateSubscriptionPlanRequest} createSubscriptionPlanRequest
1113
+ * @param {*} [options] Override http request option.
1114
+ * @throws {RequiredError}
1115
+ */
1116
+ createSubscriptionPlanForClubAdmin(id, createSubscriptionPlanRequest, options) {
1117
+ return __awaiter(this, void 0, void 0, function* () {
1118
+ var _a, _b, _c;
1119
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createSubscriptionPlanForClubAdmin(id, createSubscriptionPlanRequest, options);
1120
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1121
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AdminClubSubscriptionsApi.createSubscriptionPlanForClubAdmin']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1122
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1123
+ });
1124
+ },
1125
+ /**
1126
+ *
1127
+ * @summary Supprimer un plan (Admin)
1128
+ * @param {string} id
1129
+ * @param {string} productId
1130
+ * @param {*} [options] Override http request option.
1131
+ * @throws {RequiredError}
1132
+ */
1133
+ deleteSubscriptionPlanForClubAdmin(id, productId, options) {
1134
+ return __awaiter(this, void 0, void 0, function* () {
1135
+ var _a, _b, _c;
1136
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteSubscriptionPlanForClubAdmin(id, productId, options);
1137
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1138
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AdminClubSubscriptionsApi.deleteSubscriptionPlanForClubAdmin']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1139
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1140
+ });
1141
+ },
1142
+ /**
1143
+ *
1144
+ * @summary Réactiver un plan (Admin)
1145
+ * @param {string} id
1146
+ * @param {string} productId
1147
+ * @param {*} [options] Override http request option.
1148
+ * @throws {RequiredError}
1149
+ */
1150
+ restoreSubscriptionPlanForClubAdmin(id, productId, options) {
1151
+ return __awaiter(this, void 0, void 0, function* () {
1152
+ var _a, _b, _c;
1153
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.restoreSubscriptionPlanForClubAdmin(id, productId, options);
1154
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1155
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AdminClubSubscriptionsApi.restoreSubscriptionPlanForClubAdmin']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1156
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1157
+ });
1158
+ },
1159
+ /**
1160
+ *
1161
+ * @summary Réactiver un prix (Admin)
1162
+ * @param {string} id
1163
+ * @param {string} priceId
1164
+ * @param {*} [options] Override http request option.
1165
+ * @throws {RequiredError}
1166
+ */
1167
+ restoreSubscriptionPriceForClubAdmin(id, priceId, options) {
1168
+ return __awaiter(this, void 0, void 0, function* () {
1169
+ var _a, _b, _c;
1170
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.restoreSubscriptionPriceForClubAdmin(id, priceId, options);
1171
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1172
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AdminClubSubscriptionsApi.restoreSubscriptionPriceForClubAdmin']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1173
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1174
+ });
1175
+ },
1176
+ /**
1177
+ *
1178
+ * @summary Mettre à jour un plan (Admin)
1179
+ * @param {string} id
1180
+ * @param {string} priceId
1181
+ * @param {UpdateSubscriptionPlanRequest} updateSubscriptionPlanRequest
1182
+ * @param {*} [options] Override http request option.
1183
+ * @throws {RequiredError}
1184
+ */
1185
+ updateSubscriptionPlanForClubAdmin(id, priceId, updateSubscriptionPlanRequest, options) {
1186
+ return __awaiter(this, void 0, void 0, function* () {
1187
+ var _a, _b, _c;
1188
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateSubscriptionPlanForClubAdmin(id, priceId, updateSubscriptionPlanRequest, options);
1189
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1190
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AdminClubSubscriptionsApi.updateSubscriptionPlanForClubAdmin']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1191
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1192
+ });
1193
+ },
1194
+ };
1195
+ };
1196
+ exports.AdminClubSubscriptionsApiFp = AdminClubSubscriptionsApiFp;
1197
+ /**
1198
+ * AdminClubSubscriptionsApi - factory interface
1199
+ * @export
1200
+ */
1201
+ const AdminClubSubscriptionsApiFactory = function (configuration, basePath, axios) {
1202
+ const localVarFp = (0, exports.AdminClubSubscriptionsApiFp)(configuration);
1203
+ return {
1204
+ /**
1205
+ *
1206
+ * @summary Archiver un prix (Admin)
1207
+ * @param {AdminClubSubscriptionsApiArchivePriceForSubscriptionPlanAdminRequest} requestParameters Request parameters.
1208
+ * @param {*} [options] Override http request option.
1209
+ * @throws {RequiredError}
1210
+ */
1211
+ archivePriceForSubscriptionPlanAdmin(requestParameters, options) {
1212
+ return localVarFp.archivePriceForSubscriptionPlanAdmin(requestParameters.id, requestParameters.priceId, options).then((request) => request(axios, basePath));
1213
+ },
1214
+ /**
1215
+ *
1216
+ * @summary Créer un prix pour un plan (Admin)
1217
+ * @param {AdminClubSubscriptionsApiCreatePriceForSubscriptionPlanAdminRequest} requestParameters Request parameters.
1218
+ * @param {*} [options] Override http request option.
1219
+ * @throws {RequiredError}
1220
+ */
1221
+ createPriceForSubscriptionPlanAdmin(requestParameters, options) {
1222
+ return localVarFp.createPriceForSubscriptionPlanAdmin(requestParameters.id, requestParameters.productId, requestParameters.createPriceRequest, options).then((request) => request(axios, basePath));
1223
+ },
1224
+ /**
1225
+ *
1226
+ * @summary Créer un plan d\'abonnement pour un club (Admin)
1227
+ * @param {AdminClubSubscriptionsApiCreateSubscriptionPlanForClubAdminRequest} requestParameters Request parameters.
1228
+ * @param {*} [options] Override http request option.
1229
+ * @throws {RequiredError}
1230
+ */
1231
+ createSubscriptionPlanForClubAdmin(requestParameters, options) {
1232
+ return localVarFp.createSubscriptionPlanForClubAdmin(requestParameters.id, requestParameters.createSubscriptionPlanRequest, options).then((request) => request(axios, basePath));
1233
+ },
1234
+ /**
1235
+ *
1236
+ * @summary Supprimer un plan (Admin)
1237
+ * @param {AdminClubSubscriptionsApiDeleteSubscriptionPlanForClubAdminRequest} requestParameters Request parameters.
1238
+ * @param {*} [options] Override http request option.
1239
+ * @throws {RequiredError}
1240
+ */
1241
+ deleteSubscriptionPlanForClubAdmin(requestParameters, options) {
1242
+ return localVarFp.deleteSubscriptionPlanForClubAdmin(requestParameters.id, requestParameters.productId, options).then((request) => request(axios, basePath));
1243
+ },
1244
+ /**
1245
+ *
1246
+ * @summary Réactiver un plan (Admin)
1247
+ * @param {AdminClubSubscriptionsApiRestoreSubscriptionPlanForClubAdminRequest} requestParameters Request parameters.
1248
+ * @param {*} [options] Override http request option.
1249
+ * @throws {RequiredError}
1250
+ */
1251
+ restoreSubscriptionPlanForClubAdmin(requestParameters, options) {
1252
+ return localVarFp.restoreSubscriptionPlanForClubAdmin(requestParameters.id, requestParameters.productId, options).then((request) => request(axios, basePath));
1253
+ },
1254
+ /**
1255
+ *
1256
+ * @summary Réactiver un prix (Admin)
1257
+ * @param {AdminClubSubscriptionsApiRestoreSubscriptionPriceForClubAdminRequest} requestParameters Request parameters.
1258
+ * @param {*} [options] Override http request option.
1259
+ * @throws {RequiredError}
1260
+ */
1261
+ restoreSubscriptionPriceForClubAdmin(requestParameters, options) {
1262
+ return localVarFp.restoreSubscriptionPriceForClubAdmin(requestParameters.id, requestParameters.priceId, options).then((request) => request(axios, basePath));
1263
+ },
1264
+ /**
1265
+ *
1266
+ * @summary Mettre à jour un plan (Admin)
1267
+ * @param {AdminClubSubscriptionsApiUpdateSubscriptionPlanForClubAdminRequest} requestParameters Request parameters.
1268
+ * @param {*} [options] Override http request option.
1269
+ * @throws {RequiredError}
1270
+ */
1271
+ updateSubscriptionPlanForClubAdmin(requestParameters, options) {
1272
+ return localVarFp.updateSubscriptionPlanForClubAdmin(requestParameters.id, requestParameters.priceId, requestParameters.updateSubscriptionPlanRequest, options).then((request) => request(axios, basePath));
1273
+ },
1274
+ };
1275
+ };
1276
+ exports.AdminClubSubscriptionsApiFactory = AdminClubSubscriptionsApiFactory;
1277
+ /**
1278
+ * AdminClubSubscriptionsApi - object-oriented interface
1279
+ * @export
1280
+ * @class AdminClubSubscriptionsApi
1281
+ * @extends {BaseAPI}
1282
+ */
1283
+ class AdminClubSubscriptionsApi extends base_1.BaseAPI {
1284
+ /**
1285
+ *
1286
+ * @summary Archiver un prix (Admin)
1287
+ * @param {AdminClubSubscriptionsApiArchivePriceForSubscriptionPlanAdminRequest} requestParameters Request parameters.
1288
+ * @param {*} [options] Override http request option.
1289
+ * @throws {RequiredError}
1290
+ * @memberof AdminClubSubscriptionsApi
1291
+ */
1292
+ archivePriceForSubscriptionPlanAdmin(requestParameters, options) {
1293
+ return (0, exports.AdminClubSubscriptionsApiFp)(this.configuration).archivePriceForSubscriptionPlanAdmin(requestParameters.id, requestParameters.priceId, options).then((request) => request(this.axios, this.basePath));
1294
+ }
1295
+ /**
1296
+ *
1297
+ * @summary Créer un prix pour un plan (Admin)
1298
+ * @param {AdminClubSubscriptionsApiCreatePriceForSubscriptionPlanAdminRequest} requestParameters Request parameters.
1299
+ * @param {*} [options] Override http request option.
1300
+ * @throws {RequiredError}
1301
+ * @memberof AdminClubSubscriptionsApi
1302
+ */
1303
+ createPriceForSubscriptionPlanAdmin(requestParameters, options) {
1304
+ return (0, exports.AdminClubSubscriptionsApiFp)(this.configuration).createPriceForSubscriptionPlanAdmin(requestParameters.id, requestParameters.productId, requestParameters.createPriceRequest, options).then((request) => request(this.axios, this.basePath));
1305
+ }
1306
+ /**
1307
+ *
1308
+ * @summary Créer un plan d\'abonnement pour un club (Admin)
1309
+ * @param {AdminClubSubscriptionsApiCreateSubscriptionPlanForClubAdminRequest} requestParameters Request parameters.
1310
+ * @param {*} [options] Override http request option.
1311
+ * @throws {RequiredError}
1312
+ * @memberof AdminClubSubscriptionsApi
1313
+ */
1314
+ createSubscriptionPlanForClubAdmin(requestParameters, options) {
1315
+ return (0, exports.AdminClubSubscriptionsApiFp)(this.configuration).createSubscriptionPlanForClubAdmin(requestParameters.id, requestParameters.createSubscriptionPlanRequest, options).then((request) => request(this.axios, this.basePath));
1316
+ }
1317
+ /**
1318
+ *
1319
+ * @summary Supprimer un plan (Admin)
1320
+ * @param {AdminClubSubscriptionsApiDeleteSubscriptionPlanForClubAdminRequest} requestParameters Request parameters.
1321
+ * @param {*} [options] Override http request option.
1322
+ * @throws {RequiredError}
1323
+ * @memberof AdminClubSubscriptionsApi
1324
+ */
1325
+ deleteSubscriptionPlanForClubAdmin(requestParameters, options) {
1326
+ return (0, exports.AdminClubSubscriptionsApiFp)(this.configuration).deleteSubscriptionPlanForClubAdmin(requestParameters.id, requestParameters.productId, options).then((request) => request(this.axios, this.basePath));
1327
+ }
1328
+ /**
1329
+ *
1330
+ * @summary Réactiver un plan (Admin)
1331
+ * @param {AdminClubSubscriptionsApiRestoreSubscriptionPlanForClubAdminRequest} requestParameters Request parameters.
1332
+ * @param {*} [options] Override http request option.
1333
+ * @throws {RequiredError}
1334
+ * @memberof AdminClubSubscriptionsApi
1335
+ */
1336
+ restoreSubscriptionPlanForClubAdmin(requestParameters, options) {
1337
+ return (0, exports.AdminClubSubscriptionsApiFp)(this.configuration).restoreSubscriptionPlanForClubAdmin(requestParameters.id, requestParameters.productId, options).then((request) => request(this.axios, this.basePath));
1338
+ }
1339
+ /**
1340
+ *
1341
+ * @summary Réactiver un prix (Admin)
1342
+ * @param {AdminClubSubscriptionsApiRestoreSubscriptionPriceForClubAdminRequest} requestParameters Request parameters.
1343
+ * @param {*} [options] Override http request option.
1344
+ * @throws {RequiredError}
1345
+ * @memberof AdminClubSubscriptionsApi
1346
+ */
1347
+ restoreSubscriptionPriceForClubAdmin(requestParameters, options) {
1348
+ return (0, exports.AdminClubSubscriptionsApiFp)(this.configuration).restoreSubscriptionPriceForClubAdmin(requestParameters.id, requestParameters.priceId, options).then((request) => request(this.axios, this.basePath));
1349
+ }
1350
+ /**
1351
+ *
1352
+ * @summary Mettre à jour un plan (Admin)
1353
+ * @param {AdminClubSubscriptionsApiUpdateSubscriptionPlanForClubAdminRequest} requestParameters Request parameters.
1354
+ * @param {*} [options] Override http request option.
1355
+ * @throws {RequiredError}
1356
+ * @memberof AdminClubSubscriptionsApi
1357
+ */
1358
+ updateSubscriptionPlanForClubAdmin(requestParameters, options) {
1359
+ return (0, exports.AdminClubSubscriptionsApiFp)(this.configuration).updateSubscriptionPlanForClubAdmin(requestParameters.id, requestParameters.priceId, requestParameters.updateSubscriptionPlanRequest, options).then((request) => request(this.axios, this.basePath));
1360
+ }
1361
+ }
1362
+ exports.AdminClubSubscriptionsApi = AdminClubSubscriptionsApi;
1363
+ /**
1364
+ * AdminClubsApi - axios parameter creator
1365
+ * @export
1366
+ */
1367
+ const AdminClubsApiAxiosParamCreator = function (configuration) {
1368
+ return {
1369
+ /**
1370
+ *
1371
+ * @summary Supprimer un club (Admin uniquement)
1372
+ * @param {string} id ID du club
1373
+ * @param {*} [options] Override http request option.
1374
+ * @throws {RequiredError}
1375
+ */
1376
+ deleteClub: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
1377
+ // verify required parameter 'id' is not null or undefined
1378
+ (0, common_1.assertParamExists)('deleteClub', 'id', id);
1379
+ const localVarPath = `/api/clubs/{id}`
1380
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
1381
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1382
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1383
+ let baseOptions;
1384
+ if (configuration) {
1385
+ baseOptions = configuration.baseOptions;
1386
+ }
1387
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
1388
+ const localVarHeaderParameter = {};
1389
+ const localVarQueryParameter = {};
1390
+ // authentication bearerAuth required
1391
+ // http bearer authentication required
1392
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1393
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1394
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1395
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1396
+ return {
1397
+ url: (0, common_1.toPathString)(localVarUrlObj),
1398
+ options: localVarRequestOptions,
1399
+ };
1400
+ }),
1401
+ /**
1402
+ *
1403
+ * @summary Obtenir les infos d\'un club (Admin)
1404
+ * @param {string} id
1405
+ * @param {*} [options] Override http request option.
1406
+ * @throws {RequiredError}
1407
+ */
1408
+ getClubInfosAdmin: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
1409
+ // verify required parameter 'id' is not null or undefined
1410
+ (0, common_1.assertParamExists)('getClubInfosAdmin', 'id', id);
1411
+ const localVarPath = `/api/clubs/{id}/infos`
1412
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
1413
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1414
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1415
+ let baseOptions;
1416
+ if (configuration) {
1417
+ baseOptions = configuration.baseOptions;
1418
+ }
1419
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1420
+ const localVarHeaderParameter = {};
1421
+ const localVarQueryParameter = {};
1422
+ // authentication bearerAuth required
1423
+ // http bearer authentication required
1424
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1425
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1426
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1427
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1428
+ return {
1429
+ url: (0, common_1.toPathString)(localVarUrlObj),
1430
+ options: localVarRequestOptions,
1431
+ };
1432
+ }),
1433
+ /**
1434
+ *
1435
+ * @summary Mettre à jour les infos d\'un club (Admin)
1436
+ * @param {string} id
1437
+ * @param {object} body
1438
+ * @param {*} [options] Override http request option.
1439
+ * @throws {RequiredError}
1440
+ */
1441
+ updateClubInfosAdmin: (id_1, body_1, ...args_1) => __awaiter(this, [id_1, body_1, ...args_1], void 0, function* (id, body, options = {}) {
1442
+ // verify required parameter 'id' is not null or undefined
1443
+ (0, common_1.assertParamExists)('updateClubInfosAdmin', 'id', id);
1444
+ // verify required parameter 'body' is not null or undefined
1445
+ (0, common_1.assertParamExists)('updateClubInfosAdmin', 'body', body);
1446
+ const localVarPath = `/api/clubs/{id}/infos`
1447
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
278
1448
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
279
1449
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
280
1450
  let baseOptions;
281
1451
  if (configuration) {
282
1452
  baseOptions = configuration.baseOptions;
283
1453
  }
284
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1454
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
285
1455
  const localVarHeaderParameter = {};
286
1456
  const localVarQueryParameter = {};
287
1457
  // authentication bearerAuth required
288
1458
  // http bearer authentication required
289
1459
  yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1460
+ localVarHeaderParameter['Content-Type'] = 'application/json';
290
1461
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
291
1462
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
292
1463
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1464
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
293
1465
  return {
294
1466
  url: (0, common_1.toPathString)(localVarUrlObj),
295
1467
  options: localVarRequestOptions,
@@ -307,32 +1479,50 @@ const AdminClubsApiFp = function (configuration) {
307
1479
  return {
308
1480
  /**
309
1481
  *
310
- * @summary Créer un nouveau club (Admin uniquement)
311
- * @param {CreateClubRequest} createClubRequest
1482
+ * @summary Supprimer un club (Admin uniquement)
1483
+ * @param {string} id ID du club
1484
+ * @param {*} [options] Override http request option.
1485
+ * @throws {RequiredError}
1486
+ */
1487
+ deleteClub(id, options) {
1488
+ return __awaiter(this, void 0, void 0, function* () {
1489
+ var _a, _b, _c;
1490
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteClub(id, options);
1491
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1492
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AdminClubsApi.deleteClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1493
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1494
+ });
1495
+ },
1496
+ /**
1497
+ *
1498
+ * @summary Obtenir les infos d\'un club (Admin)
1499
+ * @param {string} id
312
1500
  * @param {*} [options] Override http request option.
313
1501
  * @throws {RequiredError}
314
1502
  */
315
- createClub(createClubRequest, options) {
1503
+ getClubInfosAdmin(id, options) {
316
1504
  return __awaiter(this, void 0, void 0, function* () {
317
1505
  var _a, _b, _c;
318
- const localVarAxiosArgs = yield localVarAxiosParamCreator.createClub(createClubRequest, options);
1506
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubInfosAdmin(id, options);
319
1507
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
320
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AdminClubsApi.createClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1508
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AdminClubsApi.getClubInfosAdmin']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
321
1509
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
322
1510
  });
323
1511
  },
324
1512
  /**
325
1513
  *
326
- * @summary Récupérer tous les clubs (Admin uniquement)
1514
+ * @summary Mettre à jour les infos d\'un club (Admin)
1515
+ * @param {string} id
1516
+ * @param {object} body
327
1517
  * @param {*} [options] Override http request option.
328
1518
  * @throws {RequiredError}
329
1519
  */
330
- getAllClubs(options) {
1520
+ updateClubInfosAdmin(id, body, options) {
331
1521
  return __awaiter(this, void 0, void 0, function* () {
332
1522
  var _a, _b, _c;
333
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getAllClubs(options);
1523
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateClubInfosAdmin(id, body, options);
334
1524
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
335
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AdminClubsApi.getAllClubs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1525
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AdminClubsApi.updateClubInfosAdmin']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
336
1526
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
337
1527
  });
338
1528
  },
@@ -348,22 +1538,33 @@ const AdminClubsApiFactory = function (configuration, basePath, axios) {
348
1538
  return {
349
1539
  /**
350
1540
  *
351
- * @summary Créer un nouveau club (Admin uniquement)
352
- * @param {AdminClubsApiCreateClubRequest} requestParameters Request parameters.
1541
+ * @summary Supprimer un club (Admin uniquement)
1542
+ * @param {AdminClubsApiDeleteClubRequest} requestParameters Request parameters.
1543
+ * @param {*} [options] Override http request option.
1544
+ * @throws {RequiredError}
1545
+ */
1546
+ deleteClub(requestParameters, options) {
1547
+ return localVarFp.deleteClub(requestParameters.id, options).then((request) => request(axios, basePath));
1548
+ },
1549
+ /**
1550
+ *
1551
+ * @summary Obtenir les infos d\'un club (Admin)
1552
+ * @param {AdminClubsApiGetClubInfosAdminRequest} requestParameters Request parameters.
353
1553
  * @param {*} [options] Override http request option.
354
1554
  * @throws {RequiredError}
355
1555
  */
356
- createClub(requestParameters, options) {
357
- return localVarFp.createClub(requestParameters.createClubRequest, options).then((request) => request(axios, basePath));
1556
+ getClubInfosAdmin(requestParameters, options) {
1557
+ return localVarFp.getClubInfosAdmin(requestParameters.id, options).then((request) => request(axios, basePath));
358
1558
  },
359
1559
  /**
360
1560
  *
361
- * @summary Récupérer tous les clubs (Admin uniquement)
1561
+ * @summary Mettre à jour les infos d\'un club (Admin)
1562
+ * @param {AdminClubsApiUpdateClubInfosAdminRequest} requestParameters Request parameters.
362
1563
  * @param {*} [options] Override http request option.
363
1564
  * @throws {RequiredError}
364
1565
  */
365
- getAllClubs(options) {
366
- return localVarFp.getAllClubs(options).then((request) => request(axios, basePath));
1566
+ updateClubInfosAdmin(requestParameters, options) {
1567
+ return localVarFp.updateClubInfosAdmin(requestParameters.id, requestParameters.body, options).then((request) => request(axios, basePath));
367
1568
  },
368
1569
  };
369
1570
  };
@@ -377,140 +1578,39 @@ exports.AdminClubsApiFactory = AdminClubsApiFactory;
377
1578
  class AdminClubsApi extends base_1.BaseAPI {
378
1579
  /**
379
1580
  *
380
- * @summary Créer un nouveau club (Admin uniquement)
381
- * @param {AdminClubsApiCreateClubRequest} requestParameters Request parameters.
1581
+ * @summary Supprimer un club (Admin uniquement)
1582
+ * @param {AdminClubsApiDeleteClubRequest} requestParameters Request parameters.
382
1583
  * @param {*} [options] Override http request option.
383
1584
  * @throws {RequiredError}
384
1585
  * @memberof AdminClubsApi
385
1586
  */
386
- createClub(requestParameters, options) {
387
- return (0, exports.AdminClubsApiFp)(this.configuration).createClub(requestParameters.createClubRequest, options).then((request) => request(this.axios, this.basePath));
1587
+ deleteClub(requestParameters, options) {
1588
+ return (0, exports.AdminClubsApiFp)(this.configuration).deleteClub(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
388
1589
  }
389
1590
  /**
390
1591
  *
391
- * @summary Récupérer tous les clubs (Admin uniquement)
1592
+ * @summary Obtenir les infos d\'un club (Admin)
1593
+ * @param {AdminClubsApiGetClubInfosAdminRequest} requestParameters Request parameters.
392
1594
  * @param {*} [options] Override http request option.
393
1595
  * @throws {RequiredError}
394
1596
  * @memberof AdminClubsApi
395
1597
  */
396
- getAllClubs(options) {
397
- return (0, exports.AdminClubsApiFp)(this.configuration).getAllClubs(options).then((request) => request(this.axios, this.basePath));
1598
+ getClubInfosAdmin(requestParameters, options) {
1599
+ return (0, exports.AdminClubsApiFp)(this.configuration).getClubInfosAdmin(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
398
1600
  }
399
- }
400
- exports.AdminClubsApi = AdminClubsApi;
401
- /**
402
- * BookingsApi - axios parameter creator
403
- * @export
404
- */
405
- const BookingsApiAxiosParamCreator = function (configuration) {
406
- return {
407
- /**
408
- * 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.
409
- * @summary Annuler une réservation (créateur uniquement)
410
- * @param {string} bookingId ID MongoDB de la réservation à annuler
411
- * @param {CancelBookingRequest} cancelBookingRequest
412
- * @param {*} [options] Override http request option.
413
- * @throws {RequiredError}
414
- */
415
- cancelBooking: (bookingId_1, cancelBookingRequest_1, ...args_1) => __awaiter(this, [bookingId_1, cancelBookingRequest_1, ...args_1], void 0, function* (bookingId, cancelBookingRequest, options = {}) {
416
- // verify required parameter 'bookingId' is not null or undefined
417
- (0, common_1.assertParamExists)('cancelBooking', 'bookingId', bookingId);
418
- // verify required parameter 'cancelBookingRequest' is not null or undefined
419
- (0, common_1.assertParamExists)('cancelBooking', 'cancelBookingRequest', cancelBookingRequest);
420
- const localVarPath = `/api/bookings/{bookingId}/cancel`
421
- .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
422
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
423
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
424
- let baseOptions;
425
- if (configuration) {
426
- baseOptions = configuration.baseOptions;
427
- }
428
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
429
- const localVarHeaderParameter = {};
430
- const localVarQueryParameter = {};
431
- // authentication bearerAuth required
432
- // http bearer authentication required
433
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
434
- localVarHeaderParameter['Content-Type'] = 'application/json';
435
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
436
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
437
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
438
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(cancelBookingRequest, localVarRequestOptions, configuration);
439
- return {
440
- url: (0, common_1.toPathString)(localVarUrlObj),
441
- options: localVarRequestOptions,
442
- };
443
- }),
444
- };
445
- };
446
- exports.BookingsApiAxiosParamCreator = BookingsApiAxiosParamCreator;
447
- /**
448
- * BookingsApi - functional programming interface
449
- * @export
450
- */
451
- const BookingsApiFp = function (configuration) {
452
- const localVarAxiosParamCreator = (0, exports.BookingsApiAxiosParamCreator)(configuration);
453
- return {
454
- /**
455
- * 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.
456
- * @summary Annuler une réservation (créateur uniquement)
457
- * @param {string} bookingId ID MongoDB de la réservation à annuler
458
- * @param {CancelBookingRequest} cancelBookingRequest
459
- * @param {*} [options] Override http request option.
460
- * @throws {RequiredError}
461
- */
462
- cancelBooking(bookingId, cancelBookingRequest, options) {
463
- return __awaiter(this, void 0, void 0, function* () {
464
- var _a, _b, _c;
465
- const localVarAxiosArgs = yield localVarAxiosParamCreator.cancelBooking(bookingId, cancelBookingRequest, options);
466
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
467
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsApi.cancelBooking']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
468
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
469
- });
470
- },
471
- };
472
- };
473
- exports.BookingsApiFp = BookingsApiFp;
474
- /**
475
- * BookingsApi - factory interface
476
- * @export
477
- */
478
- const BookingsApiFactory = function (configuration, basePath, axios) {
479
- const localVarFp = (0, exports.BookingsApiFp)(configuration);
480
- return {
481
- /**
482
- * 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.
483
- * @summary Annuler une réservation (créateur uniquement)
484
- * @param {BookingsApiCancelBookingRequest} requestParameters Request parameters.
485
- * @param {*} [options] Override http request option.
486
- * @throws {RequiredError}
487
- */
488
- cancelBooking(requestParameters, options) {
489
- return localVarFp.cancelBooking(requestParameters.bookingId, requestParameters.cancelBookingRequest, options).then((request) => request(axios, basePath));
490
- },
491
- };
492
- };
493
- exports.BookingsApiFactory = BookingsApiFactory;
494
- /**
495
- * BookingsApi - object-oriented interface
496
- * @export
497
- * @class BookingsApi
498
- * @extends {BaseAPI}
499
- */
500
- class BookingsApi extends base_1.BaseAPI {
501
1601
  /**
502
- * 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.
503
- * @summary Annuler une réservation (créateur uniquement)
504
- * @param {BookingsApiCancelBookingRequest} requestParameters Request parameters.
1602
+ *
1603
+ * @summary Mettre à jour les infos d\'un club (Admin)
1604
+ * @param {AdminClubsApiUpdateClubInfosAdminRequest} requestParameters Request parameters.
505
1605
  * @param {*} [options] Override http request option.
506
1606
  * @throws {RequiredError}
507
- * @memberof BookingsApi
1607
+ * @memberof AdminClubsApi
508
1608
  */
509
- cancelBooking(requestParameters, options) {
510
- return (0, exports.BookingsApiFp)(this.configuration).cancelBooking(requestParameters.bookingId, requestParameters.cancelBookingRequest, options).then((request) => request(this.axios, this.basePath));
1609
+ updateClubInfosAdmin(requestParameters, options) {
1610
+ return (0, exports.AdminClubsApiFp)(this.configuration).updateClubInfosAdmin(requestParameters.id, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
511
1611
  }
512
1612
  }
513
- exports.BookingsApi = BookingsApi;
1613
+ exports.AdminClubsApi = AdminClubsApi;
514
1614
  /**
515
1615
  * ClubAnalyticsApi - axios parameter creator
516
1616
  * @export
@@ -519,19 +1619,15 @@ const ClubAnalyticsApiAxiosParamCreator = function (configuration) {
519
1619
  return {
520
1620
  /**
521
1621
  *
522
- * @summary Chiffre d\'affaires quotidien
523
- * @param {string} id ID du club
1622
+ * @summary Chiffre d\'affaires quotidien (club courant)
524
1623
  * @param {string} date Date (format YYYY-MM-DD)
525
1624
  * @param {*} [options] Override http request option.
526
1625
  * @throws {RequiredError}
527
1626
  */
528
- getDailyTurnOver: (id_1, date_1, ...args_1) => __awaiter(this, [id_1, date_1, ...args_1], void 0, function* (id, date, options = {}) {
529
- // verify required parameter 'id' is not null or undefined
530
- (0, common_1.assertParamExists)('getDailyTurnOver', 'id', id);
1627
+ getDailyTurnOver: (date_1, ...args_1) => __awaiter(this, [date_1, ...args_1], void 0, function* (date, options = {}) {
531
1628
  // verify required parameter 'date' is not null or undefined
532
1629
  (0, common_1.assertParamExists)('getDailyTurnOver', 'date', date);
533
- const localVarPath = `/api/clubs/{id}/turnover/daily`
534
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
1630
+ const localVarPath = `/api/analytics/dailyTurnover`;
535
1631
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
536
1632
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
537
1633
  let baseOptions;
@@ -559,8 +1655,7 @@ const ClubAnalyticsApiAxiosParamCreator = function (configuration) {
559
1655
  }),
560
1656
  /**
561
1657
  *
562
- * @summary Récupérer les factures du club
563
- * @param {string} id ID du club
1658
+ * @summary Récupérer les factures du club courant
564
1659
  * @param {number} [page] Numéro de page
565
1660
  * @param {number} [limit] Nombre d\'éléments par page
566
1661
  * @param {GetInvoicesStatusEnum} [status] Filtrer par statut
@@ -569,11 +1664,8 @@ const ClubAnalyticsApiAxiosParamCreator = function (configuration) {
569
1664
  * @param {*} [options] Override http request option.
570
1665
  * @throws {RequiredError}
571
1666
  */
572
- 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 = {}) {
573
- // verify required parameter 'id' is not null or undefined
574
- (0, common_1.assertParamExists)('getInvoices', 'id', id);
575
- const localVarPath = `/api/clubs/{id}/invoices`
576
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
1667
+ 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 = {}) {
1668
+ const localVarPath = `/api/clubs/invoices`;
577
1669
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
578
1670
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
579
1671
  let baseOptions;
@@ -615,22 +1707,18 @@ const ClubAnalyticsApiAxiosParamCreator = function (configuration) {
615
1707
  }),
616
1708
  /**
617
1709
  *
618
- * @summary Chiffre d\'affaires mensuel
619
- * @param {string} id ID du club
1710
+ * @summary Chiffre d\'affaires mensuel (club courant)
620
1711
  * @param {number} year Année
621
1712
  * @param {number} month Mois (1-12)
622
1713
  * @param {*} [options] Override http request option.
623
1714
  * @throws {RequiredError}
624
1715
  */
625
- 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 = {}) {
626
- // verify required parameter 'id' is not null or undefined
627
- (0, common_1.assertParamExists)('getMonthlyTurnOver', 'id', id);
1716
+ getMonthlyTurnOver: (year_1, month_1, ...args_1) => __awaiter(this, [year_1, month_1, ...args_1], void 0, function* (year, month, options = {}) {
628
1717
  // verify required parameter 'year' is not null or undefined
629
1718
  (0, common_1.assertParamExists)('getMonthlyTurnOver', 'year', year);
630
1719
  // verify required parameter 'month' is not null or undefined
631
1720
  (0, common_1.assertParamExists)('getMonthlyTurnOver', 'month', month);
632
- const localVarPath = `/api/clubs/{id}/turnover/monthly`
633
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
1721
+ const localVarPath = `/api/analytics/monthlyTurnover`;
634
1722
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
635
1723
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
636
1724
  let baseOptions;
@@ -659,19 +1747,15 @@ const ClubAnalyticsApiAxiosParamCreator = function (configuration) {
659
1747
  }),
660
1748
  /**
661
1749
  *
662
- * @summary Chiffre d\'affaires annuel
663
- * @param {string} id ID du club
1750
+ * @summary Chiffre d\'affaires annuel (club courant)
664
1751
  * @param {number} year Année
665
1752
  * @param {*} [options] Override http request option.
666
1753
  * @throws {RequiredError}
667
1754
  */
668
- getYearlyTurnOver: (id_1, year_1, ...args_1) => __awaiter(this, [id_1, year_1, ...args_1], void 0, function* (id, year, options = {}) {
669
- // verify required parameter 'id' is not null or undefined
670
- (0, common_1.assertParamExists)('getYearlyTurnOver', 'id', id);
1755
+ getYearlyTurnOver: (year_1, ...args_1) => __awaiter(this, [year_1, ...args_1], void 0, function* (year, options = {}) {
671
1756
  // verify required parameter 'year' is not null or undefined
672
1757
  (0, common_1.assertParamExists)('getYearlyTurnOver', 'year', year);
673
- const localVarPath = `/api/clubs/{id}/turnover/yearly`
674
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
1758
+ const localVarPath = `/api/analytics/yearlyTurnover`;
675
1759
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
676
1760
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
677
1761
  let baseOptions;
@@ -707,16 +1791,15 @@ const ClubAnalyticsApiFp = function (configuration) {
707
1791
  return {
708
1792
  /**
709
1793
  *
710
- * @summary Chiffre d\'affaires quotidien
711
- * @param {string} id ID du club
1794
+ * @summary Chiffre d\'affaires quotidien (club courant)
712
1795
  * @param {string} date Date (format YYYY-MM-DD)
713
1796
  * @param {*} [options] Override http request option.
714
1797
  * @throws {RequiredError}
715
1798
  */
716
- getDailyTurnOver(id, date, options) {
1799
+ getDailyTurnOver(date, options) {
717
1800
  return __awaiter(this, void 0, void 0, function* () {
718
1801
  var _a, _b, _c;
719
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getDailyTurnOver(id, date, options);
1802
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getDailyTurnOver(date, options);
720
1803
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
721
1804
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubAnalyticsApi.getDailyTurnOver']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
722
1805
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -724,8 +1807,7 @@ const ClubAnalyticsApiFp = function (configuration) {
724
1807
  },
725
1808
  /**
726
1809
  *
727
- * @summary Récupérer les factures du club
728
- * @param {string} id ID du club
1810
+ * @summary Récupérer les factures du club courant
729
1811
  * @param {number} [page] Numéro de page
730
1812
  * @param {number} [limit] Nombre d\'éléments par page
731
1813
  * @param {GetInvoicesStatusEnum} [status] Filtrer par statut
@@ -734,10 +1816,10 @@ const ClubAnalyticsApiFp = function (configuration) {
734
1816
  * @param {*} [options] Override http request option.
735
1817
  * @throws {RequiredError}
736
1818
  */
737
- getInvoices(id, page, limit, status, startDate, endDate, options) {
1819
+ getInvoices(page, limit, status, startDate, endDate, options) {
738
1820
  return __awaiter(this, void 0, void 0, function* () {
739
1821
  var _a, _b, _c;
740
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getInvoices(id, page, limit, status, startDate, endDate, options);
1822
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getInvoices(page, limit, status, startDate, endDate, options);
741
1823
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
742
1824
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubAnalyticsApi.getInvoices']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
743
1825
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -745,17 +1827,16 @@ const ClubAnalyticsApiFp = function (configuration) {
745
1827
  },
746
1828
  /**
747
1829
  *
748
- * @summary Chiffre d\'affaires mensuel
749
- * @param {string} id ID du club
1830
+ * @summary Chiffre d\'affaires mensuel (club courant)
750
1831
  * @param {number} year Année
751
1832
  * @param {number} month Mois (1-12)
752
1833
  * @param {*} [options] Override http request option.
753
1834
  * @throws {RequiredError}
754
1835
  */
755
- getMonthlyTurnOver(id, year, month, options) {
1836
+ getMonthlyTurnOver(year, month, options) {
756
1837
  return __awaiter(this, void 0, void 0, function* () {
757
1838
  var _a, _b, _c;
758
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getMonthlyTurnOver(id, year, month, options);
1839
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getMonthlyTurnOver(year, month, options);
759
1840
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
760
1841
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubAnalyticsApi.getMonthlyTurnOver']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
761
1842
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -763,16 +1844,15 @@ const ClubAnalyticsApiFp = function (configuration) {
763
1844
  },
764
1845
  /**
765
1846
  *
766
- * @summary Chiffre d\'affaires annuel
767
- * @param {string} id ID du club
1847
+ * @summary Chiffre d\'affaires annuel (club courant)
768
1848
  * @param {number} year Année
769
1849
  * @param {*} [options] Override http request option.
770
1850
  * @throws {RequiredError}
771
1851
  */
772
- getYearlyTurnOver(id, year, options) {
1852
+ getYearlyTurnOver(year, options) {
773
1853
  return __awaiter(this, void 0, void 0, function* () {
774
1854
  var _a, _b, _c;
775
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getYearlyTurnOver(id, year, options);
1855
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getYearlyTurnOver(year, options);
776
1856
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
777
1857
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubAnalyticsApi.getYearlyTurnOver']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
778
1858
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -790,43 +1870,43 @@ const ClubAnalyticsApiFactory = function (configuration, basePath, axios) {
790
1870
  return {
791
1871
  /**
792
1872
  *
793
- * @summary Chiffre d\'affaires quotidien
1873
+ * @summary Chiffre d\'affaires quotidien (club courant)
794
1874
  * @param {ClubAnalyticsApiGetDailyTurnOverRequest} requestParameters Request parameters.
795
1875
  * @param {*} [options] Override http request option.
796
1876
  * @throws {RequiredError}
797
1877
  */
798
1878
  getDailyTurnOver(requestParameters, options) {
799
- return localVarFp.getDailyTurnOver(requestParameters.id, requestParameters.date, options).then((request) => request(axios, basePath));
1879
+ return localVarFp.getDailyTurnOver(requestParameters.date, options).then((request) => request(axios, basePath));
800
1880
  },
801
1881
  /**
802
1882
  *
803
- * @summary Récupérer les factures du club
1883
+ * @summary Récupérer les factures du club courant
804
1884
  * @param {ClubAnalyticsApiGetInvoicesRequest} requestParameters Request parameters.
805
1885
  * @param {*} [options] Override http request option.
806
1886
  * @throws {RequiredError}
807
1887
  */
808
- getInvoices(requestParameters, options) {
809
- return localVarFp.getInvoices(requestParameters.id, requestParameters.page, requestParameters.limit, requestParameters.status, requestParameters.startDate, requestParameters.endDate, options).then((request) => request(axios, basePath));
1888
+ getInvoices(requestParameters = {}, options) {
1889
+ return localVarFp.getInvoices(requestParameters.page, requestParameters.limit, requestParameters.status, requestParameters.startDate, requestParameters.endDate, options).then((request) => request(axios, basePath));
810
1890
  },
811
1891
  /**
812
1892
  *
813
- * @summary Chiffre d\'affaires mensuel
1893
+ * @summary Chiffre d\'affaires mensuel (club courant)
814
1894
  * @param {ClubAnalyticsApiGetMonthlyTurnOverRequest} requestParameters Request parameters.
815
1895
  * @param {*} [options] Override http request option.
816
1896
  * @throws {RequiredError}
817
1897
  */
818
1898
  getMonthlyTurnOver(requestParameters, options) {
819
- return localVarFp.getMonthlyTurnOver(requestParameters.id, requestParameters.year, requestParameters.month, options).then((request) => request(axios, basePath));
1899
+ return localVarFp.getMonthlyTurnOver(requestParameters.year, requestParameters.month, options).then((request) => request(axios, basePath));
820
1900
  },
821
1901
  /**
822
1902
  *
823
- * @summary Chiffre d\'affaires annuel
1903
+ * @summary Chiffre d\'affaires annuel (club courant)
824
1904
  * @param {ClubAnalyticsApiGetYearlyTurnOverRequest} requestParameters Request parameters.
825
1905
  * @param {*} [options] Override http request option.
826
1906
  * @throws {RequiredError}
827
1907
  */
828
1908
  getYearlyTurnOver(requestParameters, options) {
829
- return localVarFp.getYearlyTurnOver(requestParameters.id, requestParameters.year, options).then((request) => request(axios, basePath));
1909
+ return localVarFp.getYearlyTurnOver(requestParameters.year, options).then((request) => request(axios, basePath));
830
1910
  },
831
1911
  };
832
1912
  };
@@ -840,47 +1920,47 @@ exports.ClubAnalyticsApiFactory = ClubAnalyticsApiFactory;
840
1920
  class ClubAnalyticsApi extends base_1.BaseAPI {
841
1921
  /**
842
1922
  *
843
- * @summary Chiffre d\'affaires quotidien
1923
+ * @summary Chiffre d\'affaires quotidien (club courant)
844
1924
  * @param {ClubAnalyticsApiGetDailyTurnOverRequest} requestParameters Request parameters.
845
1925
  * @param {*} [options] Override http request option.
846
1926
  * @throws {RequiredError}
847
1927
  * @memberof ClubAnalyticsApi
848
1928
  */
849
1929
  getDailyTurnOver(requestParameters, options) {
850
- return (0, exports.ClubAnalyticsApiFp)(this.configuration).getDailyTurnOver(requestParameters.id, requestParameters.date, options).then((request) => request(this.axios, this.basePath));
1930
+ return (0, exports.ClubAnalyticsApiFp)(this.configuration).getDailyTurnOver(requestParameters.date, options).then((request) => request(this.axios, this.basePath));
851
1931
  }
852
1932
  /**
853
1933
  *
854
- * @summary Récupérer les factures du club
1934
+ * @summary Récupérer les factures du club courant
855
1935
  * @param {ClubAnalyticsApiGetInvoicesRequest} requestParameters Request parameters.
856
1936
  * @param {*} [options] Override http request option.
857
1937
  * @throws {RequiredError}
858
1938
  * @memberof ClubAnalyticsApi
859
1939
  */
860
- getInvoices(requestParameters, options) {
861
- return (0, exports.ClubAnalyticsApiFp)(this.configuration).getInvoices(requestParameters.id, requestParameters.page, requestParameters.limit, requestParameters.status, requestParameters.startDate, requestParameters.endDate, options).then((request) => request(this.axios, this.basePath));
1940
+ getInvoices(requestParameters = {}, options) {
1941
+ return (0, exports.ClubAnalyticsApiFp)(this.configuration).getInvoices(requestParameters.page, requestParameters.limit, requestParameters.status, requestParameters.startDate, requestParameters.endDate, options).then((request) => request(this.axios, this.basePath));
862
1942
  }
863
1943
  /**
864
1944
  *
865
- * @summary Chiffre d\'affaires mensuel
1945
+ * @summary Chiffre d\'affaires mensuel (club courant)
866
1946
  * @param {ClubAnalyticsApiGetMonthlyTurnOverRequest} requestParameters Request parameters.
867
1947
  * @param {*} [options] Override http request option.
868
1948
  * @throws {RequiredError}
869
1949
  * @memberof ClubAnalyticsApi
870
1950
  */
871
1951
  getMonthlyTurnOver(requestParameters, options) {
872
- return (0, exports.ClubAnalyticsApiFp)(this.configuration).getMonthlyTurnOver(requestParameters.id, requestParameters.year, requestParameters.month, options).then((request) => request(this.axios, this.basePath));
1952
+ return (0, exports.ClubAnalyticsApiFp)(this.configuration).getMonthlyTurnOver(requestParameters.year, requestParameters.month, options).then((request) => request(this.axios, this.basePath));
873
1953
  }
874
1954
  /**
875
1955
  *
876
- * @summary Chiffre d\'affaires annuel
1956
+ * @summary Chiffre d\'affaires annuel (club courant)
877
1957
  * @param {ClubAnalyticsApiGetYearlyTurnOverRequest} requestParameters Request parameters.
878
1958
  * @param {*} [options] Override http request option.
879
1959
  * @throws {RequiredError}
880
1960
  * @memberof ClubAnalyticsApi
881
1961
  */
882
1962
  getYearlyTurnOver(requestParameters, options) {
883
- return (0, exports.ClubAnalyticsApiFp)(this.configuration).getYearlyTurnOver(requestParameters.id, requestParameters.year, options).then((request) => request(this.axios, this.basePath));
1963
+ return (0, exports.ClubAnalyticsApiFp)(this.configuration).getYearlyTurnOver(requestParameters.year, options).then((request) => request(this.axios, this.basePath));
884
1964
  }
885
1965
  }
886
1966
  exports.ClubAnalyticsApi = ClubAnalyticsApi;
@@ -933,75 +2013,6 @@ const ManagerBookingsApiAxiosParamCreator = function (configuration) {
933
2013
  options: localVarRequestOptions,
934
2014
  };
935
2015
  }),
936
- /**
937
- * Enregistre l\'arrivée et le paiement des joueurs pour une réservation avec paiement sur place. Met à jour le statut des factures.
938
- * @summary Enregistrer l\'arrivée des joueurs
939
- * @param {string} bookingId ID MongoDB de la réservation
940
- * @param {CheckInPlayersRequest} checkInPlayersRequest
941
- * @param {*} [options] Override http request option.
942
- * @throws {RequiredError}
943
- */
944
- checkInPlayers: (bookingId_1, checkInPlayersRequest_1, ...args_1) => __awaiter(this, [bookingId_1, checkInPlayersRequest_1, ...args_1], void 0, function* (bookingId, checkInPlayersRequest, options = {}) {
945
- // verify required parameter 'bookingId' is not null or undefined
946
- (0, common_1.assertParamExists)('checkInPlayers', 'bookingId', bookingId);
947
- // verify required parameter 'checkInPlayersRequest' is not null or undefined
948
- (0, common_1.assertParamExists)('checkInPlayers', 'checkInPlayersRequest', checkInPlayersRequest);
949
- const localVarPath = `/api/bookings/{bookingId}/checkin-players`
950
- .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
951
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
952
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
953
- let baseOptions;
954
- if (configuration) {
955
- baseOptions = configuration.baseOptions;
956
- }
957
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
958
- const localVarHeaderParameter = {};
959
- const localVarQueryParameter = {};
960
- // authentication bearerAuth required
961
- // http bearer authentication required
962
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
963
- localVarHeaderParameter['Content-Type'] = 'application/json';
964
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
965
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
966
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
967
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(checkInPlayersRequest, localVarRequestOptions, configuration);
968
- return {
969
- url: (0, common_1.toPathString)(localVarUrlObj),
970
- options: localVarRequestOptions,
971
- };
972
- }),
973
- /**
974
- * Récupère le statut détaillé des paiements pour tous les joueurs d\'une réservation. Utile pour l\'interface de check-in.
975
- * @summary Obtenir le statut des paiements d\'une réservation
976
- * @param {string} bookingId ID MongoDB de la réservation
977
- * @param {*} [options] Override http request option.
978
- * @throws {RequiredError}
979
- */
980
- getBookingPaymentStatus: (bookingId_1, ...args_1) => __awaiter(this, [bookingId_1, ...args_1], void 0, function* (bookingId, options = {}) {
981
- // verify required parameter 'bookingId' is not null or undefined
982
- (0, common_1.assertParamExists)('getBookingPaymentStatus', 'bookingId', bookingId);
983
- const localVarPath = `/api/bookings/{bookingId}/payment-status`
984
- .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
985
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
986
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
987
- let baseOptions;
988
- if (configuration) {
989
- baseOptions = configuration.baseOptions;
990
- }
991
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
992
- const localVarHeaderParameter = {};
993
- const localVarQueryParameter = {};
994
- // authentication bearerAuth required
995
- // http bearer authentication required
996
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
997
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
998
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
999
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1000
- return {
1001
- url: (0, common_1.toPathString)(localVarUrlObj),
1002
- options: localVarRequestOptions,
1003
- };
1004
- }),
1005
2016
  /**
1006
2017
  * 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.
1007
2018
  * @summary Annuler une réservation (gestionnaire)
@@ -1065,39 +2076,6 @@ const ManagerBookingsApiFp = function (configuration) {
1065
2076
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1066
2077
  });
1067
2078
  },
1068
- /**
1069
- * Enregistre l\'arrivée et le paiement des joueurs pour une réservation avec paiement sur place. Met à jour le statut des factures.
1070
- * @summary Enregistrer l\'arrivée des joueurs
1071
- * @param {string} bookingId ID MongoDB de la réservation
1072
- * @param {CheckInPlayersRequest} checkInPlayersRequest
1073
- * @param {*} [options] Override http request option.
1074
- * @throws {RequiredError}
1075
- */
1076
- checkInPlayers(bookingId, checkInPlayersRequest, options) {
1077
- return __awaiter(this, void 0, void 0, function* () {
1078
- var _a, _b, _c;
1079
- const localVarAxiosArgs = yield localVarAxiosParamCreator.checkInPlayers(bookingId, checkInPlayersRequest, options);
1080
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1081
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ManagerBookingsApi.checkInPlayers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1082
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1083
- });
1084
- },
1085
- /**
1086
- * Récupère le statut détaillé des paiements pour tous les joueurs d\'une réservation. Utile pour l\'interface de check-in.
1087
- * @summary Obtenir le statut des paiements d\'une réservation
1088
- * @param {string} bookingId ID MongoDB de la réservation
1089
- * @param {*} [options] Override http request option.
1090
- * @throws {RequiredError}
1091
- */
1092
- getBookingPaymentStatus(bookingId, options) {
1093
- return __awaiter(this, void 0, void 0, function* () {
1094
- var _a, _b, _c;
1095
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getBookingPaymentStatus(bookingId, options);
1096
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1097
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ManagerBookingsApi.getBookingPaymentStatus']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1098
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1099
- });
1100
- },
1101
2079
  /**
1102
2080
  * 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.
1103
2081
  * @summary Annuler une réservation (gestionnaire)
@@ -1135,26 +2113,6 @@ const ManagerBookingsApiFactory = function (configuration, basePath, axios) {
1135
2113
  applyNoShowFee(requestParameters, options) {
1136
2114
  return localVarFp.applyNoShowFee(requestParameters.bookingId, options).then((request) => request(axios, basePath));
1137
2115
  },
1138
- /**
1139
- * Enregistre l\'arrivée et le paiement des joueurs pour une réservation avec paiement sur place. Met à jour le statut des factures.
1140
- * @summary Enregistrer l\'arrivée des joueurs
1141
- * @param {ManagerBookingsApiCheckInPlayersRequest} requestParameters Request parameters.
1142
- * @param {*} [options] Override http request option.
1143
- * @throws {RequiredError}
1144
- */
1145
- checkInPlayers(requestParameters, options) {
1146
- return localVarFp.checkInPlayers(requestParameters.bookingId, requestParameters.checkInPlayersRequest, options).then((request) => request(axios, basePath));
1147
- },
1148
- /**
1149
- * Récupère le statut détaillé des paiements pour tous les joueurs d\'une réservation. Utile pour l\'interface de check-in.
1150
- * @summary Obtenir le statut des paiements d\'une réservation
1151
- * @param {ManagerBookingsApiGetBookingPaymentStatusRequest} requestParameters Request parameters.
1152
- * @param {*} [options] Override http request option.
1153
- * @throws {RequiredError}
1154
- */
1155
- getBookingPaymentStatus(requestParameters, options) {
1156
- return localVarFp.getBookingPaymentStatus(requestParameters.bookingId, options).then((request) => request(axios, basePath));
1157
- },
1158
2116
  /**
1159
2117
  * 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.
1160
2118
  * @summary Annuler une réservation (gestionnaire)
@@ -1186,28 +2144,6 @@ class ManagerBookingsApi extends base_1.BaseAPI {
1186
2144
  applyNoShowFee(requestParameters, options) {
1187
2145
  return (0, exports.ManagerBookingsApiFp)(this.configuration).applyNoShowFee(requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
1188
2146
  }
1189
- /**
1190
- * Enregistre l\'arrivée et le paiement des joueurs pour une réservation avec paiement sur place. Met à jour le statut des factures.
1191
- * @summary Enregistrer l\'arrivée des joueurs
1192
- * @param {ManagerBookingsApiCheckInPlayersRequest} requestParameters Request parameters.
1193
- * @param {*} [options] Override http request option.
1194
- * @throws {RequiredError}
1195
- * @memberof ManagerBookingsApi
1196
- */
1197
- checkInPlayers(requestParameters, options) {
1198
- return (0, exports.ManagerBookingsApiFp)(this.configuration).checkInPlayers(requestParameters.bookingId, requestParameters.checkInPlayersRequest, options).then((request) => request(this.axios, this.basePath));
1199
- }
1200
- /**
1201
- * Récupère le statut détaillé des paiements pour tous les joueurs d\'une réservation. Utile pour l\'interface de check-in.
1202
- * @summary Obtenir le statut des paiements d\'une réservation
1203
- * @param {ManagerBookingsApiGetBookingPaymentStatusRequest} requestParameters Request parameters.
1204
- * @param {*} [options] Override http request option.
1205
- * @throws {RequiredError}
1206
- * @memberof ManagerBookingsApi
1207
- */
1208
- getBookingPaymentStatus(requestParameters, options) {
1209
- return (0, exports.ManagerBookingsApiFp)(this.configuration).getBookingPaymentStatus(requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
1210
- }
1211
2147
  /**
1212
2148
  * 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.
1213
2149
  * @summary Annuler une réservation (gestionnaire)
@@ -1229,19 +2165,15 @@ const ManagerClubCourtsApiAxiosParamCreator = function (configuration) {
1229
2165
  return {
1230
2166
  /**
1231
2167
  *
1232
- * @summary Créer un terrain pour un club
1233
- * @param {string} id ID du club
2168
+ * @summary Créer un terrain pour le club courant
1234
2169
  * @param {CreateCourtRequest} createCourtRequest
1235
2170
  * @param {*} [options] Override http request option.
1236
2171
  * @throws {RequiredError}
1237
2172
  */
1238
- createCourtForClub: (id_1, createCourtRequest_1, ...args_1) => __awaiter(this, [id_1, createCourtRequest_1, ...args_1], void 0, function* (id, createCourtRequest, options = {}) {
1239
- // verify required parameter 'id' is not null or undefined
1240
- (0, common_1.assertParamExists)('createCourtForClub', 'id', id);
2173
+ createCourtForClub: (createCourtRequest_1, ...args_1) => __awaiter(this, [createCourtRequest_1, ...args_1], void 0, function* (createCourtRequest, options = {}) {
1241
2174
  // verify required parameter 'createCourtRequest' is not null or undefined
1242
2175
  (0, common_1.assertParamExists)('createCourtForClub', 'createCourtRequest', createCourtRequest);
1243
- const localVarPath = `/api/clubs/{id}/courts`
1244
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
2176
+ const localVarPath = `/api/clubs/courts`;
1245
2177
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1246
2178
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1247
2179
  let baseOptions;
@@ -1266,16 +2198,12 @@ const ManagerClubCourtsApiAxiosParamCreator = function (configuration) {
1266
2198
  }),
1267
2199
  /**
1268
2200
  *
1269
- * @summary Récupérer tous les terrains pour un club
1270
- * @param {string} id ID du club
2201
+ * @summary Récupérer tous les terrains du club courant
1271
2202
  * @param {*} [options] Override http request option.
1272
2203
  * @throws {RequiredError}
1273
2204
  */
1274
- getCourtsByClub: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
1275
- // verify required parameter 'id' is not null or undefined
1276
- (0, common_1.assertParamExists)('getCourtsByClub', 'id', id);
1277
- const localVarPath = `/api/clubs/{id}/courts`
1278
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
2205
+ getCourtsByClub: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
2206
+ const localVarPath = `/api/clubs/courts`;
1279
2207
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1280
2208
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1281
2209
  let baseOptions;
@@ -1308,16 +2236,15 @@ const ManagerClubCourtsApiFp = function (configuration) {
1308
2236
  return {
1309
2237
  /**
1310
2238
  *
1311
- * @summary Créer un terrain pour un club
1312
- * @param {string} id ID du club
2239
+ * @summary Créer un terrain pour le club courant
1313
2240
  * @param {CreateCourtRequest} createCourtRequest
1314
2241
  * @param {*} [options] Override http request option.
1315
2242
  * @throws {RequiredError}
1316
2243
  */
1317
- createCourtForClub(id, createCourtRequest, options) {
2244
+ createCourtForClub(createCourtRequest, options) {
1318
2245
  return __awaiter(this, void 0, void 0, function* () {
1319
2246
  var _a, _b, _c;
1320
- const localVarAxiosArgs = yield localVarAxiosParamCreator.createCourtForClub(id, createCourtRequest, options);
2247
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createCourtForClub(createCourtRequest, options);
1321
2248
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1322
2249
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ManagerClubCourtsApi.createCourtForClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1323
2250
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -1325,15 +2252,14 @@ const ManagerClubCourtsApiFp = function (configuration) {
1325
2252
  },
1326
2253
  /**
1327
2254
  *
1328
- * @summary Récupérer tous les terrains pour un club
1329
- * @param {string} id ID du club
2255
+ * @summary Récupérer tous les terrains du club courant
1330
2256
  * @param {*} [options] Override http request option.
1331
2257
  * @throws {RequiredError}
1332
2258
  */
1333
- getCourtsByClub(id, options) {
2259
+ getCourtsByClub(options) {
1334
2260
  return __awaiter(this, void 0, void 0, function* () {
1335
2261
  var _a, _b, _c;
1336
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getCourtsByClub(id, options);
2262
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getCourtsByClub(options);
1337
2263
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1338
2264
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ManagerClubCourtsApi.getCourtsByClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1339
2265
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -1351,23 +2277,22 @@ const ManagerClubCourtsApiFactory = function (configuration, basePath, axios) {
1351
2277
  return {
1352
2278
  /**
1353
2279
  *
1354
- * @summary Créer un terrain pour un club
2280
+ * @summary Créer un terrain pour le club courant
1355
2281
  * @param {ManagerClubCourtsApiCreateCourtForClubRequest} requestParameters Request parameters.
1356
2282
  * @param {*} [options] Override http request option.
1357
2283
  * @throws {RequiredError}
1358
2284
  */
1359
2285
  createCourtForClub(requestParameters, options) {
1360
- return localVarFp.createCourtForClub(requestParameters.id, requestParameters.createCourtRequest, options).then((request) => request(axios, basePath));
2286
+ return localVarFp.createCourtForClub(requestParameters.createCourtRequest, options).then((request) => request(axios, basePath));
1361
2287
  },
1362
2288
  /**
1363
2289
  *
1364
- * @summary Récupérer tous les terrains pour un club
1365
- * @param {ManagerClubCourtsApiGetCourtsByClubRequest} requestParameters Request parameters.
2290
+ * @summary Récupérer tous les terrains du club courant
1366
2291
  * @param {*} [options] Override http request option.
1367
2292
  * @throws {RequiredError}
1368
2293
  */
1369
- getCourtsByClub(requestParameters, options) {
1370
- return localVarFp.getCourtsByClub(requestParameters.id, options).then((request) => request(axios, basePath));
2294
+ getCourtsByClub(options) {
2295
+ return localVarFp.getCourtsByClub(options).then((request) => request(axios, basePath));
1371
2296
  },
1372
2297
  };
1373
2298
  };
@@ -1381,25 +2306,24 @@ exports.ManagerClubCourtsApiFactory = ManagerClubCourtsApiFactory;
1381
2306
  class ManagerClubCourtsApi extends base_1.BaseAPI {
1382
2307
  /**
1383
2308
  *
1384
- * @summary Créer un terrain pour un club
2309
+ * @summary Créer un terrain pour le club courant
1385
2310
  * @param {ManagerClubCourtsApiCreateCourtForClubRequest} requestParameters Request parameters.
1386
2311
  * @param {*} [options] Override http request option.
1387
2312
  * @throws {RequiredError}
1388
2313
  * @memberof ManagerClubCourtsApi
1389
2314
  */
1390
2315
  createCourtForClub(requestParameters, options) {
1391
- return (0, exports.ManagerClubCourtsApiFp)(this.configuration).createCourtForClub(requestParameters.id, requestParameters.createCourtRequest, options).then((request) => request(this.axios, this.basePath));
2316
+ return (0, exports.ManagerClubCourtsApiFp)(this.configuration).createCourtForClub(requestParameters.createCourtRequest, options).then((request) => request(this.axios, this.basePath));
1392
2317
  }
1393
2318
  /**
1394
2319
  *
1395
- * @summary Récupérer tous les terrains pour un club
1396
- * @param {ManagerClubCourtsApiGetCourtsByClubRequest} requestParameters Request parameters.
2320
+ * @summary Récupérer tous les terrains du club courant
1397
2321
  * @param {*} [options] Override http request option.
1398
2322
  * @throws {RequiredError}
1399
2323
  * @memberof ManagerClubCourtsApi
1400
2324
  */
1401
- getCourtsByClub(requestParameters, options) {
1402
- return (0, exports.ManagerClubCourtsApiFp)(this.configuration).getCourtsByClub(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
2325
+ getCourtsByClub(options) {
2326
+ return (0, exports.ManagerClubCourtsApiFp)(this.configuration).getCourtsByClub(options).then((request) => request(this.axios, this.basePath));
1403
2327
  }
1404
2328
  }
1405
2329
  exports.ManagerClubCourtsApi = ManagerClubCourtsApi;
@@ -1794,22 +2718,18 @@ const ManagerClubSlotsApiAxiosParamCreator = function (configuration) {
1794
2718
  return {
1795
2719
  /**
1796
2720
  *
1797
- * @summary Supprimer des créneaux pour un club sur une plage de dates
1798
- * @param {string} id ID du club
2721
+ * @summary Supprimer des créneaux pour le club courant sur une plage de dates
1799
2722
  * @param {string} start Date de début (format ISO)
1800
2723
  * @param {string} end Date de fin (format ISO)
1801
2724
  * @param {*} [options] Override http request option.
1802
2725
  * @throws {RequiredError}
1803
2726
  */
1804
- 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 = {}) {
1805
- // verify required parameter 'id' is not null or undefined
1806
- (0, common_1.assertParamExists)('deleteSlotsByClubInRange', 'id', id);
2727
+ deleteSlotsByClubInRange: (start_1, end_1, ...args_1) => __awaiter(this, [start_1, end_1, ...args_1], void 0, function* (start, end, options = {}) {
1807
2728
  // verify required parameter 'start' is not null or undefined
1808
2729
  (0, common_1.assertParamExists)('deleteSlotsByClubInRange', 'start', start);
1809
2730
  // verify required parameter 'end' is not null or undefined
1810
2731
  (0, common_1.assertParamExists)('deleteSlotsByClubInRange', 'end', end);
1811
- const localVarPath = `/api/clubs/{id}/slots`
1812
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
2732
+ const localVarPath = `/api/clubs/slots`;
1813
2733
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1814
2734
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1815
2735
  let baseOptions;
@@ -1842,18 +2762,14 @@ const ManagerClubSlotsApiAxiosParamCreator = function (configuration) {
1842
2762
  }),
1843
2763
  /**
1844
2764
  *
1845
- * @summary Récupérer tous les créneaux pour un club
1846
- * @param {string} id ID du club
2765
+ * @summary Récupérer tous les créneaux du club courant
1847
2766
  * @param {string} [start] Date de début (format ISO)
1848
2767
  * @param {string} [end] Date de fin (format ISO)
1849
2768
  * @param {*} [options] Override http request option.
1850
2769
  * @throws {RequiredError}
1851
2770
  */
1852
- 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 = {}) {
1853
- // verify required parameter 'id' is not null or undefined
1854
- (0, common_1.assertParamExists)('getSlotsByClub', 'id', id);
1855
- const localVarPath = `/api/clubs/{id}/slots`
1856
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
2771
+ getSlotsByClub: (start_1, end_1, ...args_1) => __awaiter(this, [start_1, end_1, ...args_1], void 0, function* (start, end, options = {}) {
2772
+ const localVarPath = `/api/clubs/slots`;
1857
2773
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1858
2774
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1859
2775
  let baseOptions;
@@ -1896,17 +2812,16 @@ const ManagerClubSlotsApiFp = function (configuration) {
1896
2812
  return {
1897
2813
  /**
1898
2814
  *
1899
- * @summary Supprimer des créneaux pour un club sur une plage de dates
1900
- * @param {string} id ID du club
2815
+ * @summary Supprimer des créneaux pour le club courant sur une plage de dates
1901
2816
  * @param {string} start Date de début (format ISO)
1902
2817
  * @param {string} end Date de fin (format ISO)
1903
2818
  * @param {*} [options] Override http request option.
1904
2819
  * @throws {RequiredError}
1905
2820
  */
1906
- deleteSlotsByClubInRange(id, start, end, options) {
2821
+ deleteSlotsByClubInRange(start, end, options) {
1907
2822
  return __awaiter(this, void 0, void 0, function* () {
1908
2823
  var _a, _b, _c;
1909
- const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteSlotsByClubInRange(id, start, end, options);
2824
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteSlotsByClubInRange(start, end, options);
1910
2825
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1911
2826
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ManagerClubSlotsApi.deleteSlotsByClubInRange']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1912
2827
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -1914,17 +2829,16 @@ const ManagerClubSlotsApiFp = function (configuration) {
1914
2829
  },
1915
2830
  /**
1916
2831
  *
1917
- * @summary Récupérer tous les créneaux pour un club
1918
- * @param {string} id ID du club
2832
+ * @summary Récupérer tous les créneaux du club courant
1919
2833
  * @param {string} [start] Date de début (format ISO)
1920
2834
  * @param {string} [end] Date de fin (format ISO)
1921
2835
  * @param {*} [options] Override http request option.
1922
2836
  * @throws {RequiredError}
1923
2837
  */
1924
- getSlotsByClub(id, start, end, options) {
2838
+ getSlotsByClub(start, end, options) {
1925
2839
  return __awaiter(this, void 0, void 0, function* () {
1926
2840
  var _a, _b, _c;
1927
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getSlotsByClub(id, start, end, options);
2841
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getSlotsByClub(start, end, options);
1928
2842
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1929
2843
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ManagerClubSlotsApi.getSlotsByClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1930
2844
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -1942,23 +2856,23 @@ const ManagerClubSlotsApiFactory = function (configuration, basePath, axios) {
1942
2856
  return {
1943
2857
  /**
1944
2858
  *
1945
- * @summary Supprimer des créneaux pour un club sur une plage de dates
2859
+ * @summary Supprimer des créneaux pour le club courant sur une plage de dates
1946
2860
  * @param {ManagerClubSlotsApiDeleteSlotsByClubInRangeRequest} requestParameters Request parameters.
1947
2861
  * @param {*} [options] Override http request option.
1948
2862
  * @throws {RequiredError}
1949
2863
  */
1950
2864
  deleteSlotsByClubInRange(requestParameters, options) {
1951
- return localVarFp.deleteSlotsByClubInRange(requestParameters.id, requestParameters.start, requestParameters.end, options).then((request) => request(axios, basePath));
2865
+ return localVarFp.deleteSlotsByClubInRange(requestParameters.start, requestParameters.end, options).then((request) => request(axios, basePath));
1952
2866
  },
1953
2867
  /**
1954
2868
  *
1955
- * @summary Récupérer tous les créneaux pour un club
2869
+ * @summary Récupérer tous les créneaux du club courant
1956
2870
  * @param {ManagerClubSlotsApiGetSlotsByClubRequest} requestParameters Request parameters.
1957
2871
  * @param {*} [options] Override http request option.
1958
2872
  * @throws {RequiredError}
1959
2873
  */
1960
- getSlotsByClub(requestParameters, options) {
1961
- return localVarFp.getSlotsByClub(requestParameters.id, requestParameters.start, requestParameters.end, options).then((request) => request(axios, basePath));
2874
+ getSlotsByClub(requestParameters = {}, options) {
2875
+ return localVarFp.getSlotsByClub(requestParameters.start, requestParameters.end, options).then((request) => request(axios, basePath));
1962
2876
  },
1963
2877
  };
1964
2878
  };
@@ -1972,25 +2886,25 @@ exports.ManagerClubSlotsApiFactory = ManagerClubSlotsApiFactory;
1972
2886
  class ManagerClubSlotsApi extends base_1.BaseAPI {
1973
2887
  /**
1974
2888
  *
1975
- * @summary Supprimer des créneaux pour un club sur une plage de dates
2889
+ * @summary Supprimer des créneaux pour le club courant sur une plage de dates
1976
2890
  * @param {ManagerClubSlotsApiDeleteSlotsByClubInRangeRequest} requestParameters Request parameters.
1977
2891
  * @param {*} [options] Override http request option.
1978
2892
  * @throws {RequiredError}
1979
2893
  * @memberof ManagerClubSlotsApi
1980
2894
  */
1981
2895
  deleteSlotsByClubInRange(requestParameters, options) {
1982
- return (0, exports.ManagerClubSlotsApiFp)(this.configuration).deleteSlotsByClubInRange(requestParameters.id, requestParameters.start, requestParameters.end, options).then((request) => request(this.axios, this.basePath));
2896
+ return (0, exports.ManagerClubSlotsApiFp)(this.configuration).deleteSlotsByClubInRange(requestParameters.start, requestParameters.end, options).then((request) => request(this.axios, this.basePath));
1983
2897
  }
1984
2898
  /**
1985
2899
  *
1986
- * @summary Récupérer tous les créneaux pour un club
2900
+ * @summary Récupérer tous les créneaux du club courant
1987
2901
  * @param {ManagerClubSlotsApiGetSlotsByClubRequest} requestParameters Request parameters.
1988
2902
  * @param {*} [options] Override http request option.
1989
2903
  * @throws {RequiredError}
1990
2904
  * @memberof ManagerClubSlotsApi
1991
2905
  */
1992
- getSlotsByClub(requestParameters, options) {
1993
- return (0, exports.ManagerClubSlotsApiFp)(this.configuration).getSlotsByClub(requestParameters.id, requestParameters.start, requestParameters.end, options).then((request) => request(this.axios, this.basePath));
2906
+ getSlotsByClub(requestParameters = {}, options) {
2907
+ return (0, exports.ManagerClubSlotsApiFp)(this.configuration).getSlotsByClub(requestParameters.start, requestParameters.end, options).then((request) => request(this.axios, this.basePath));
1994
2908
  }
1995
2909
  }
1996
2910
  exports.ManagerClubSlotsApi = ManagerClubSlotsApi;
@@ -2002,19 +2916,15 @@ const ManagerClubSubscriptionsApiAxiosParamCreator = function (configuration) {
2002
2916
  return {
2003
2917
  /**
2004
2918
  *
2005
- * @summary Archiver un prix
2006
- * @param {string} id ID du club
2919
+ * @summary Archiver un prix (club courant)
2007
2920
  * @param {string} priceId ID du prix Stripe
2008
2921
  * @param {*} [options] Override http request option.
2009
2922
  * @throws {RequiredError}
2010
2923
  */
2011
- archivePriceForSubscriptionPlan: (id_1, priceId_1, ...args_1) => __awaiter(this, [id_1, priceId_1, ...args_1], void 0, function* (id, priceId, options = {}) {
2012
- // verify required parameter 'id' is not null or undefined
2013
- (0, common_1.assertParamExists)('archivePriceForSubscriptionPlan', 'id', id);
2924
+ archivePriceForSubscriptionPlan: (priceId_1, ...args_1) => __awaiter(this, [priceId_1, ...args_1], void 0, function* (priceId, options = {}) {
2014
2925
  // verify required parameter 'priceId' is not null or undefined
2015
2926
  (0, common_1.assertParamExists)('archivePriceForSubscriptionPlan', 'priceId', priceId);
2016
- const localVarPath = `/api/clubs/{id}/subscription-plans/{priceId}/archive-price`
2017
- .replace(`{${"id"}}`, encodeURIComponent(String(id)))
2927
+ const localVarPath = `/api/clubs/subscription-plans/{priceId}/archive-price`
2018
2928
  .replace(`{${"priceId"}}`, encodeURIComponent(String(priceId)));
2019
2929
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2020
2930
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -2038,22 +2948,18 @@ const ManagerClubSubscriptionsApiAxiosParamCreator = function (configuration) {
2038
2948
  }),
2039
2949
  /**
2040
2950
  *
2041
- * @summary Créer un nouveau prix pour un plan
2042
- * @param {string} id ID du club
2951
+ * @summary Créer un nouveau prix pour un plan (club courant)
2043
2952
  * @param {string} productId ID du produit Stripe
2044
2953
  * @param {CreatePriceRequest} createPriceRequest
2045
2954
  * @param {*} [options] Override http request option.
2046
2955
  * @throws {RequiredError}
2047
2956
  */
2048
- 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 = {}) {
2049
- // verify required parameter 'id' is not null or undefined
2050
- (0, common_1.assertParamExists)('createPriceForSubscriptionPlan', 'id', id);
2957
+ createPriceForSubscriptionPlan: (productId_1, createPriceRequest_1, ...args_1) => __awaiter(this, [productId_1, createPriceRequest_1, ...args_1], void 0, function* (productId, createPriceRequest, options = {}) {
2051
2958
  // verify required parameter 'productId' is not null or undefined
2052
2959
  (0, common_1.assertParamExists)('createPriceForSubscriptionPlan', 'productId', productId);
2053
2960
  // verify required parameter 'createPriceRequest' is not null or undefined
2054
2961
  (0, common_1.assertParamExists)('createPriceForSubscriptionPlan', 'createPriceRequest', createPriceRequest);
2055
- const localVarPath = `/api/clubs/{id}/subscription-plans/{productId}/prices`
2056
- .replace(`{${"id"}}`, encodeURIComponent(String(id)))
2962
+ const localVarPath = `/api/clubs/subscription-plans/{productId}/prices`
2057
2963
  .replace(`{${"productId"}}`, encodeURIComponent(String(productId)));
2058
2964
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2059
2965
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -2079,19 +2985,15 @@ const ManagerClubSubscriptionsApiAxiosParamCreator = function (configuration) {
2079
2985
  }),
2080
2986
  /**
2081
2987
  *
2082
- * @summary Créer un plan d\'abonnement pour un club
2083
- * @param {string} id ID du club
2988
+ * @summary Créer un plan d\'abonnement pour le club courant
2084
2989
  * @param {CreateSubscriptionPlanRequest} createSubscriptionPlanRequest
2085
2990
  * @param {*} [options] Override http request option.
2086
2991
  * @throws {RequiredError}
2087
2992
  */
2088
- createSubscriptionPlanForClub: (id_1, createSubscriptionPlanRequest_1, ...args_1) => __awaiter(this, [id_1, createSubscriptionPlanRequest_1, ...args_1], void 0, function* (id, createSubscriptionPlanRequest, options = {}) {
2089
- // verify required parameter 'id' is not null or undefined
2090
- (0, common_1.assertParamExists)('createSubscriptionPlanForClub', 'id', id);
2993
+ createSubscriptionPlanForClub: (createSubscriptionPlanRequest_1, ...args_1) => __awaiter(this, [createSubscriptionPlanRequest_1, ...args_1], void 0, function* (createSubscriptionPlanRequest, options = {}) {
2091
2994
  // verify required parameter 'createSubscriptionPlanRequest' is not null or undefined
2092
2995
  (0, common_1.assertParamExists)('createSubscriptionPlanForClub', 'createSubscriptionPlanRequest', createSubscriptionPlanRequest);
2093
- const localVarPath = `/api/clubs/{id}/subscription-plans`
2094
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
2996
+ const localVarPath = `/api/clubs/subscription-plans`;
2095
2997
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2096
2998
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2097
2999
  let baseOptions;
@@ -2116,19 +3018,15 @@ const ManagerClubSubscriptionsApiAxiosParamCreator = function (configuration) {
2116
3018
  }),
2117
3019
  /**
2118
3020
  *
2119
- * @summary Supprimer un plan d\'abonnement pour un club
2120
- * @param {string} id ID du club
3021
+ * @summary Supprimer un plan d\'abonnement (club courant)
2121
3022
  * @param {string} productId ID du produit Stripe
2122
3023
  * @param {*} [options] Override http request option.
2123
3024
  * @throws {RequiredError}
2124
3025
  */
2125
- deleteSubscriptionPlanForClub: (id_1, productId_1, ...args_1) => __awaiter(this, [id_1, productId_1, ...args_1], void 0, function* (id, productId, options = {}) {
2126
- // verify required parameter 'id' is not null or undefined
2127
- (0, common_1.assertParamExists)('deleteSubscriptionPlanForClub', 'id', id);
3026
+ deleteSubscriptionPlanForClub: (productId_1, ...args_1) => __awaiter(this, [productId_1, ...args_1], void 0, function* (productId, options = {}) {
2128
3027
  // verify required parameter 'productId' is not null or undefined
2129
3028
  (0, common_1.assertParamExists)('deleteSubscriptionPlanForClub', 'productId', productId);
2130
- const localVarPath = `/api/clubs/{id}/subscription-plans/{productId}`
2131
- .replace(`{${"id"}}`, encodeURIComponent(String(id)))
3029
+ const localVarPath = `/api/clubs/subscription-plans/{productId}`
2132
3030
  .replace(`{${"productId"}}`, encodeURIComponent(String(productId)));
2133
3031
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2134
3032
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -2152,19 +3050,15 @@ const ManagerClubSubscriptionsApiAxiosParamCreator = function (configuration) {
2152
3050
  }),
2153
3051
  /**
2154
3052
  *
2155
- * @summary Réactiver un plan d\'abonnement
2156
- * @param {string} id ID du club
3053
+ * @summary Réactiver un plan d\'abonnement (club courant)
2157
3054
  * @param {string} productId ID du produit Stripe
2158
3055
  * @param {*} [options] Override http request option.
2159
3056
  * @throws {RequiredError}
2160
3057
  */
2161
- restoreSubscriptionPlanForClub: (id_1, productId_1, ...args_1) => __awaiter(this, [id_1, productId_1, ...args_1], void 0, function* (id, productId, options = {}) {
2162
- // verify required parameter 'id' is not null or undefined
2163
- (0, common_1.assertParamExists)('restoreSubscriptionPlanForClub', 'id', id);
3058
+ restoreSubscriptionPlanForClub: (productId_1, ...args_1) => __awaiter(this, [productId_1, ...args_1], void 0, function* (productId, options = {}) {
2164
3059
  // verify required parameter 'productId' is not null or undefined
2165
3060
  (0, common_1.assertParamExists)('restoreSubscriptionPlanForClub', 'productId', productId);
2166
- const localVarPath = `/api/clubs/{id}/subscription-plans/{productId}/restore`
2167
- .replace(`{${"id"}}`, encodeURIComponent(String(id)))
3061
+ const localVarPath = `/api/clubs/subscription-plans/{productId}/restore`
2168
3062
  .replace(`{${"productId"}}`, encodeURIComponent(String(productId)));
2169
3063
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2170
3064
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -2188,19 +3082,15 @@ const ManagerClubSubscriptionsApiAxiosParamCreator = function (configuration) {
2188
3082
  }),
2189
3083
  /**
2190
3084
  *
2191
- * @summary Réactiver un prix
2192
- * @param {string} id ID du club
3085
+ * @summary Réactiver un prix (club courant)
2193
3086
  * @param {string} priceId ID du prix Stripe
2194
3087
  * @param {*} [options] Override http request option.
2195
3088
  * @throws {RequiredError}
2196
3089
  */
2197
- restoreSubscriptionPriceForClub: (id_1, priceId_1, ...args_1) => __awaiter(this, [id_1, priceId_1, ...args_1], void 0, function* (id, priceId, options = {}) {
2198
- // verify required parameter 'id' is not null or undefined
2199
- (0, common_1.assertParamExists)('restoreSubscriptionPriceForClub', 'id', id);
3090
+ restoreSubscriptionPriceForClub: (priceId_1, ...args_1) => __awaiter(this, [priceId_1, ...args_1], void 0, function* (priceId, options = {}) {
2200
3091
  // verify required parameter 'priceId' is not null or undefined
2201
3092
  (0, common_1.assertParamExists)('restoreSubscriptionPriceForClub', 'priceId', priceId);
2202
- const localVarPath = `/api/clubs/{id}/subscription-plans/{priceId}/restore-price`
2203
- .replace(`{${"id"}}`, encodeURIComponent(String(id)))
3093
+ const localVarPath = `/api/clubs/subscription-plans/{priceId}/restore-price`
2204
3094
  .replace(`{${"priceId"}}`, encodeURIComponent(String(priceId)));
2205
3095
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2206
3096
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -2224,22 +3114,18 @@ const ManagerClubSubscriptionsApiAxiosParamCreator = function (configuration) {
2224
3114
  }),
2225
3115
  /**
2226
3116
  *
2227
- * @summary Mettre à jour un plan d\'abonnement
2228
- * @param {string} id ID du club
3117
+ * @summary Mettre à jour un plan d\'abonnement (club courant)
2229
3118
  * @param {string} priceId ID du prix Stripe
2230
3119
  * @param {UpdateSubscriptionPlanRequest} updateSubscriptionPlanRequest
2231
3120
  * @param {*} [options] Override http request option.
2232
3121
  * @throws {RequiredError}
2233
3122
  */
2234
- 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 = {}) {
2235
- // verify required parameter 'id' is not null or undefined
2236
- (0, common_1.assertParamExists)('updateSubscriptionPlanForClub', 'id', id);
3123
+ updateSubscriptionPlanForClub: (priceId_1, updateSubscriptionPlanRequest_1, ...args_1) => __awaiter(this, [priceId_1, updateSubscriptionPlanRequest_1, ...args_1], void 0, function* (priceId, updateSubscriptionPlanRequest, options = {}) {
2237
3124
  // verify required parameter 'priceId' is not null or undefined
2238
3125
  (0, common_1.assertParamExists)('updateSubscriptionPlanForClub', 'priceId', priceId);
2239
3126
  // verify required parameter 'updateSubscriptionPlanRequest' is not null or undefined
2240
3127
  (0, common_1.assertParamExists)('updateSubscriptionPlanForClub', 'updateSubscriptionPlanRequest', updateSubscriptionPlanRequest);
2241
- const localVarPath = `/api/clubs/{id}/subscription-plans/{priceId}`
2242
- .replace(`{${"id"}}`, encodeURIComponent(String(id)))
3128
+ const localVarPath = `/api/clubs/subscription-plans/{priceId}`
2243
3129
  .replace(`{${"priceId"}}`, encodeURIComponent(String(priceId)));
2244
3130
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2245
3131
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -2275,16 +3161,15 @@ const ManagerClubSubscriptionsApiFp = function (configuration) {
2275
3161
  return {
2276
3162
  /**
2277
3163
  *
2278
- * @summary Archiver un prix
2279
- * @param {string} id ID du club
3164
+ * @summary Archiver un prix (club courant)
2280
3165
  * @param {string} priceId ID du prix Stripe
2281
3166
  * @param {*} [options] Override http request option.
2282
3167
  * @throws {RequiredError}
2283
3168
  */
2284
- archivePriceForSubscriptionPlan(id, priceId, options) {
3169
+ archivePriceForSubscriptionPlan(priceId, options) {
2285
3170
  return __awaiter(this, void 0, void 0, function* () {
2286
3171
  var _a, _b, _c;
2287
- const localVarAxiosArgs = yield localVarAxiosParamCreator.archivePriceForSubscriptionPlan(id, priceId, options);
3172
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.archivePriceForSubscriptionPlan(priceId, options);
2288
3173
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2289
3174
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ManagerClubSubscriptionsApi.archivePriceForSubscriptionPlan']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2290
3175
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -2292,17 +3177,16 @@ const ManagerClubSubscriptionsApiFp = function (configuration) {
2292
3177
  },
2293
3178
  /**
2294
3179
  *
2295
- * @summary Créer un nouveau prix pour un plan
2296
- * @param {string} id ID du club
3180
+ * @summary Créer un nouveau prix pour un plan (club courant)
2297
3181
  * @param {string} productId ID du produit Stripe
2298
3182
  * @param {CreatePriceRequest} createPriceRequest
2299
3183
  * @param {*} [options] Override http request option.
2300
3184
  * @throws {RequiredError}
2301
3185
  */
2302
- createPriceForSubscriptionPlan(id, productId, createPriceRequest, options) {
3186
+ createPriceForSubscriptionPlan(productId, createPriceRequest, options) {
2303
3187
  return __awaiter(this, void 0, void 0, function* () {
2304
3188
  var _a, _b, _c;
2305
- const localVarAxiosArgs = yield localVarAxiosParamCreator.createPriceForSubscriptionPlan(id, productId, createPriceRequest, options);
3189
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createPriceForSubscriptionPlan(productId, createPriceRequest, options);
2306
3190
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2307
3191
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ManagerClubSubscriptionsApi.createPriceForSubscriptionPlan']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2308
3192
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -2310,16 +3194,15 @@ const ManagerClubSubscriptionsApiFp = function (configuration) {
2310
3194
  },
2311
3195
  /**
2312
3196
  *
2313
- * @summary Créer un plan d\'abonnement pour un club
2314
- * @param {string} id ID du club
3197
+ * @summary Créer un plan d\'abonnement pour le club courant
2315
3198
  * @param {CreateSubscriptionPlanRequest} createSubscriptionPlanRequest
2316
3199
  * @param {*} [options] Override http request option.
2317
3200
  * @throws {RequiredError}
2318
3201
  */
2319
- createSubscriptionPlanForClub(id, createSubscriptionPlanRequest, options) {
3202
+ createSubscriptionPlanForClub(createSubscriptionPlanRequest, options) {
2320
3203
  return __awaiter(this, void 0, void 0, function* () {
2321
3204
  var _a, _b, _c;
2322
- const localVarAxiosArgs = yield localVarAxiosParamCreator.createSubscriptionPlanForClub(id, createSubscriptionPlanRequest, options);
3205
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createSubscriptionPlanForClub(createSubscriptionPlanRequest, options);
2323
3206
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2324
3207
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ManagerClubSubscriptionsApi.createSubscriptionPlanForClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2325
3208
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -2327,16 +3210,15 @@ const ManagerClubSubscriptionsApiFp = function (configuration) {
2327
3210
  },
2328
3211
  /**
2329
3212
  *
2330
- * @summary Supprimer un plan d\'abonnement pour un club
2331
- * @param {string} id ID du club
3213
+ * @summary Supprimer un plan d\'abonnement (club courant)
2332
3214
  * @param {string} productId ID du produit Stripe
2333
3215
  * @param {*} [options] Override http request option.
2334
3216
  * @throws {RequiredError}
2335
3217
  */
2336
- deleteSubscriptionPlanForClub(id, productId, options) {
3218
+ deleteSubscriptionPlanForClub(productId, options) {
2337
3219
  return __awaiter(this, void 0, void 0, function* () {
2338
3220
  var _a, _b, _c;
2339
- const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteSubscriptionPlanForClub(id, productId, options);
3221
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteSubscriptionPlanForClub(productId, options);
2340
3222
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2341
3223
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ManagerClubSubscriptionsApi.deleteSubscriptionPlanForClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2342
3224
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -2344,16 +3226,15 @@ const ManagerClubSubscriptionsApiFp = function (configuration) {
2344
3226
  },
2345
3227
  /**
2346
3228
  *
2347
- * @summary Réactiver un plan d\'abonnement
2348
- * @param {string} id ID du club
3229
+ * @summary Réactiver un plan d\'abonnement (club courant)
2349
3230
  * @param {string} productId ID du produit Stripe
2350
3231
  * @param {*} [options] Override http request option.
2351
3232
  * @throws {RequiredError}
2352
3233
  */
2353
- restoreSubscriptionPlanForClub(id, productId, options) {
3234
+ restoreSubscriptionPlanForClub(productId, options) {
2354
3235
  return __awaiter(this, void 0, void 0, function* () {
2355
3236
  var _a, _b, _c;
2356
- const localVarAxiosArgs = yield localVarAxiosParamCreator.restoreSubscriptionPlanForClub(id, productId, options);
3237
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.restoreSubscriptionPlanForClub(productId, options);
2357
3238
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2358
3239
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ManagerClubSubscriptionsApi.restoreSubscriptionPlanForClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2359
3240
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -2361,16 +3242,15 @@ const ManagerClubSubscriptionsApiFp = function (configuration) {
2361
3242
  },
2362
3243
  /**
2363
3244
  *
2364
- * @summary Réactiver un prix
2365
- * @param {string} id ID du club
3245
+ * @summary Réactiver un prix (club courant)
2366
3246
  * @param {string} priceId ID du prix Stripe
2367
3247
  * @param {*} [options] Override http request option.
2368
3248
  * @throws {RequiredError}
2369
3249
  */
2370
- restoreSubscriptionPriceForClub(id, priceId, options) {
3250
+ restoreSubscriptionPriceForClub(priceId, options) {
2371
3251
  return __awaiter(this, void 0, void 0, function* () {
2372
3252
  var _a, _b, _c;
2373
- const localVarAxiosArgs = yield localVarAxiosParamCreator.restoreSubscriptionPriceForClub(id, priceId, options);
3253
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.restoreSubscriptionPriceForClub(priceId, options);
2374
3254
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2375
3255
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ManagerClubSubscriptionsApi.restoreSubscriptionPriceForClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2376
3256
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -2378,17 +3258,16 @@ const ManagerClubSubscriptionsApiFp = function (configuration) {
2378
3258
  },
2379
3259
  /**
2380
3260
  *
2381
- * @summary Mettre à jour un plan d\'abonnement
2382
- * @param {string} id ID du club
3261
+ * @summary Mettre à jour un plan d\'abonnement (club courant)
2383
3262
  * @param {string} priceId ID du prix Stripe
2384
3263
  * @param {UpdateSubscriptionPlanRequest} updateSubscriptionPlanRequest
2385
3264
  * @param {*} [options] Override http request option.
2386
3265
  * @throws {RequiredError}
2387
3266
  */
2388
- updateSubscriptionPlanForClub(id, priceId, updateSubscriptionPlanRequest, options) {
3267
+ updateSubscriptionPlanForClub(priceId, updateSubscriptionPlanRequest, options) {
2389
3268
  return __awaiter(this, void 0, void 0, function* () {
2390
3269
  var _a, _b, _c;
2391
- const localVarAxiosArgs = yield localVarAxiosParamCreator.updateSubscriptionPlanForClub(id, priceId, updateSubscriptionPlanRequest, options);
3270
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateSubscriptionPlanForClub(priceId, updateSubscriptionPlanRequest, options);
2392
3271
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2393
3272
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ManagerClubSubscriptionsApi.updateSubscriptionPlanForClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2394
3273
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -2406,73 +3285,73 @@ const ManagerClubSubscriptionsApiFactory = function (configuration, basePath, ax
2406
3285
  return {
2407
3286
  /**
2408
3287
  *
2409
- * @summary Archiver un prix
3288
+ * @summary Archiver un prix (club courant)
2410
3289
  * @param {ManagerClubSubscriptionsApiArchivePriceForSubscriptionPlanRequest} requestParameters Request parameters.
2411
3290
  * @param {*} [options] Override http request option.
2412
3291
  * @throws {RequiredError}
2413
3292
  */
2414
3293
  archivePriceForSubscriptionPlan(requestParameters, options) {
2415
- return localVarFp.archivePriceForSubscriptionPlan(requestParameters.id, requestParameters.priceId, options).then((request) => request(axios, basePath));
3294
+ return localVarFp.archivePriceForSubscriptionPlan(requestParameters.priceId, options).then((request) => request(axios, basePath));
2416
3295
  },
2417
3296
  /**
2418
3297
  *
2419
- * @summary Créer un nouveau prix pour un plan
3298
+ * @summary Créer un nouveau prix pour un plan (club courant)
2420
3299
  * @param {ManagerClubSubscriptionsApiCreatePriceForSubscriptionPlanRequest} requestParameters Request parameters.
2421
3300
  * @param {*} [options] Override http request option.
2422
3301
  * @throws {RequiredError}
2423
3302
  */
2424
3303
  createPriceForSubscriptionPlan(requestParameters, options) {
2425
- return localVarFp.createPriceForSubscriptionPlan(requestParameters.id, requestParameters.productId, requestParameters.createPriceRequest, options).then((request) => request(axios, basePath));
3304
+ return localVarFp.createPriceForSubscriptionPlan(requestParameters.productId, requestParameters.createPriceRequest, options).then((request) => request(axios, basePath));
2426
3305
  },
2427
3306
  /**
2428
3307
  *
2429
- * @summary Créer un plan d\'abonnement pour un club
3308
+ * @summary Créer un plan d\'abonnement pour le club courant
2430
3309
  * @param {ManagerClubSubscriptionsApiCreateSubscriptionPlanForClubRequest} requestParameters Request parameters.
2431
3310
  * @param {*} [options] Override http request option.
2432
3311
  * @throws {RequiredError}
2433
3312
  */
2434
3313
  createSubscriptionPlanForClub(requestParameters, options) {
2435
- return localVarFp.createSubscriptionPlanForClub(requestParameters.id, requestParameters.createSubscriptionPlanRequest, options).then((request) => request(axios, basePath));
3314
+ return localVarFp.createSubscriptionPlanForClub(requestParameters.createSubscriptionPlanRequest, options).then((request) => request(axios, basePath));
2436
3315
  },
2437
3316
  /**
2438
3317
  *
2439
- * @summary Supprimer un plan d\'abonnement pour un club
3318
+ * @summary Supprimer un plan d\'abonnement (club courant)
2440
3319
  * @param {ManagerClubSubscriptionsApiDeleteSubscriptionPlanForClubRequest} requestParameters Request parameters.
2441
3320
  * @param {*} [options] Override http request option.
2442
3321
  * @throws {RequiredError}
2443
3322
  */
2444
3323
  deleteSubscriptionPlanForClub(requestParameters, options) {
2445
- return localVarFp.deleteSubscriptionPlanForClub(requestParameters.id, requestParameters.productId, options).then((request) => request(axios, basePath));
3324
+ return localVarFp.deleteSubscriptionPlanForClub(requestParameters.productId, options).then((request) => request(axios, basePath));
2446
3325
  },
2447
3326
  /**
2448
3327
  *
2449
- * @summary Réactiver un plan d\'abonnement
3328
+ * @summary Réactiver un plan d\'abonnement (club courant)
2450
3329
  * @param {ManagerClubSubscriptionsApiRestoreSubscriptionPlanForClubRequest} requestParameters Request parameters.
2451
3330
  * @param {*} [options] Override http request option.
2452
3331
  * @throws {RequiredError}
2453
3332
  */
2454
3333
  restoreSubscriptionPlanForClub(requestParameters, options) {
2455
- return localVarFp.restoreSubscriptionPlanForClub(requestParameters.id, requestParameters.productId, options).then((request) => request(axios, basePath));
3334
+ return localVarFp.restoreSubscriptionPlanForClub(requestParameters.productId, options).then((request) => request(axios, basePath));
2456
3335
  },
2457
3336
  /**
2458
3337
  *
2459
- * @summary Réactiver un prix
3338
+ * @summary Réactiver un prix (club courant)
2460
3339
  * @param {ManagerClubSubscriptionsApiRestoreSubscriptionPriceForClubRequest} requestParameters Request parameters.
2461
3340
  * @param {*} [options] Override http request option.
2462
3341
  * @throws {RequiredError}
2463
3342
  */
2464
3343
  restoreSubscriptionPriceForClub(requestParameters, options) {
2465
- return localVarFp.restoreSubscriptionPriceForClub(requestParameters.id, requestParameters.priceId, options).then((request) => request(axios, basePath));
3344
+ return localVarFp.restoreSubscriptionPriceForClub(requestParameters.priceId, options).then((request) => request(axios, basePath));
2466
3345
  },
2467
3346
  /**
2468
3347
  *
2469
- * @summary Mettre à jour un plan d\'abonnement
3348
+ * @summary Mettre à jour un plan d\'abonnement (club courant)
2470
3349
  * @param {ManagerClubSubscriptionsApiUpdateSubscriptionPlanForClubRequest} requestParameters Request parameters.
2471
3350
  * @param {*} [options] Override http request option.
2472
3351
  * @throws {RequiredError}
2473
3352
  */
2474
3353
  updateSubscriptionPlanForClub(requestParameters, options) {
2475
- return localVarFp.updateSubscriptionPlanForClub(requestParameters.id, requestParameters.priceId, requestParameters.updateSubscriptionPlanRequest, options).then((request) => request(axios, basePath));
3354
+ return localVarFp.updateSubscriptionPlanForClub(requestParameters.priceId, requestParameters.updateSubscriptionPlanRequest, options).then((request) => request(axios, basePath));
2476
3355
  },
2477
3356
  };
2478
3357
  };
@@ -2486,80 +3365,80 @@ exports.ManagerClubSubscriptionsApiFactory = ManagerClubSubscriptionsApiFactory;
2486
3365
  class ManagerClubSubscriptionsApi extends base_1.BaseAPI {
2487
3366
  /**
2488
3367
  *
2489
- * @summary Archiver un prix
3368
+ * @summary Archiver un prix (club courant)
2490
3369
  * @param {ManagerClubSubscriptionsApiArchivePriceForSubscriptionPlanRequest} requestParameters Request parameters.
2491
3370
  * @param {*} [options] Override http request option.
2492
3371
  * @throws {RequiredError}
2493
3372
  * @memberof ManagerClubSubscriptionsApi
2494
3373
  */
2495
3374
  archivePriceForSubscriptionPlan(requestParameters, options) {
2496
- return (0, exports.ManagerClubSubscriptionsApiFp)(this.configuration).archivePriceForSubscriptionPlan(requestParameters.id, requestParameters.priceId, options).then((request) => request(this.axios, this.basePath));
3375
+ return (0, exports.ManagerClubSubscriptionsApiFp)(this.configuration).archivePriceForSubscriptionPlan(requestParameters.priceId, options).then((request) => request(this.axios, this.basePath));
2497
3376
  }
2498
3377
  /**
2499
3378
  *
2500
- * @summary Créer un nouveau prix pour un plan
3379
+ * @summary Créer un nouveau prix pour un plan (club courant)
2501
3380
  * @param {ManagerClubSubscriptionsApiCreatePriceForSubscriptionPlanRequest} requestParameters Request parameters.
2502
3381
  * @param {*} [options] Override http request option.
2503
3382
  * @throws {RequiredError}
2504
3383
  * @memberof ManagerClubSubscriptionsApi
2505
3384
  */
2506
3385
  createPriceForSubscriptionPlan(requestParameters, options) {
2507
- return (0, exports.ManagerClubSubscriptionsApiFp)(this.configuration).createPriceForSubscriptionPlan(requestParameters.id, requestParameters.productId, requestParameters.createPriceRequest, options).then((request) => request(this.axios, this.basePath));
3386
+ return (0, exports.ManagerClubSubscriptionsApiFp)(this.configuration).createPriceForSubscriptionPlan(requestParameters.productId, requestParameters.createPriceRequest, options).then((request) => request(this.axios, this.basePath));
2508
3387
  }
2509
3388
  /**
2510
3389
  *
2511
- * @summary Créer un plan d\'abonnement pour un club
3390
+ * @summary Créer un plan d\'abonnement pour le club courant
2512
3391
  * @param {ManagerClubSubscriptionsApiCreateSubscriptionPlanForClubRequest} requestParameters Request parameters.
2513
3392
  * @param {*} [options] Override http request option.
2514
3393
  * @throws {RequiredError}
2515
3394
  * @memberof ManagerClubSubscriptionsApi
2516
3395
  */
2517
3396
  createSubscriptionPlanForClub(requestParameters, options) {
2518
- return (0, exports.ManagerClubSubscriptionsApiFp)(this.configuration).createSubscriptionPlanForClub(requestParameters.id, requestParameters.createSubscriptionPlanRequest, options).then((request) => request(this.axios, this.basePath));
3397
+ return (0, exports.ManagerClubSubscriptionsApiFp)(this.configuration).createSubscriptionPlanForClub(requestParameters.createSubscriptionPlanRequest, options).then((request) => request(this.axios, this.basePath));
2519
3398
  }
2520
3399
  /**
2521
3400
  *
2522
- * @summary Supprimer un plan d\'abonnement pour un club
3401
+ * @summary Supprimer un plan d\'abonnement (club courant)
2523
3402
  * @param {ManagerClubSubscriptionsApiDeleteSubscriptionPlanForClubRequest} requestParameters Request parameters.
2524
3403
  * @param {*} [options] Override http request option.
2525
3404
  * @throws {RequiredError}
2526
3405
  * @memberof ManagerClubSubscriptionsApi
2527
3406
  */
2528
3407
  deleteSubscriptionPlanForClub(requestParameters, options) {
2529
- return (0, exports.ManagerClubSubscriptionsApiFp)(this.configuration).deleteSubscriptionPlanForClub(requestParameters.id, requestParameters.productId, options).then((request) => request(this.axios, this.basePath));
3408
+ return (0, exports.ManagerClubSubscriptionsApiFp)(this.configuration).deleteSubscriptionPlanForClub(requestParameters.productId, options).then((request) => request(this.axios, this.basePath));
2530
3409
  }
2531
3410
  /**
2532
3411
  *
2533
- * @summary Réactiver un plan d\'abonnement
3412
+ * @summary Réactiver un plan d\'abonnement (club courant)
2534
3413
  * @param {ManagerClubSubscriptionsApiRestoreSubscriptionPlanForClubRequest} requestParameters Request parameters.
2535
3414
  * @param {*} [options] Override http request option.
2536
3415
  * @throws {RequiredError}
2537
3416
  * @memberof ManagerClubSubscriptionsApi
2538
3417
  */
2539
3418
  restoreSubscriptionPlanForClub(requestParameters, options) {
2540
- return (0, exports.ManagerClubSubscriptionsApiFp)(this.configuration).restoreSubscriptionPlanForClub(requestParameters.id, requestParameters.productId, options).then((request) => request(this.axios, this.basePath));
3419
+ return (0, exports.ManagerClubSubscriptionsApiFp)(this.configuration).restoreSubscriptionPlanForClub(requestParameters.productId, options).then((request) => request(this.axios, this.basePath));
2541
3420
  }
2542
3421
  /**
2543
3422
  *
2544
- * @summary Réactiver un prix
3423
+ * @summary Réactiver un prix (club courant)
2545
3424
  * @param {ManagerClubSubscriptionsApiRestoreSubscriptionPriceForClubRequest} requestParameters Request parameters.
2546
3425
  * @param {*} [options] Override http request option.
2547
3426
  * @throws {RequiredError}
2548
3427
  * @memberof ManagerClubSubscriptionsApi
2549
3428
  */
2550
3429
  restoreSubscriptionPriceForClub(requestParameters, options) {
2551
- return (0, exports.ManagerClubSubscriptionsApiFp)(this.configuration).restoreSubscriptionPriceForClub(requestParameters.id, requestParameters.priceId, options).then((request) => request(this.axios, this.basePath));
3430
+ return (0, exports.ManagerClubSubscriptionsApiFp)(this.configuration).restoreSubscriptionPriceForClub(requestParameters.priceId, options).then((request) => request(this.axios, this.basePath));
2552
3431
  }
2553
3432
  /**
2554
3433
  *
2555
- * @summary Mettre à jour un plan d\'abonnement
3434
+ * @summary Mettre à jour un plan d\'abonnement (club courant)
2556
3435
  * @param {ManagerClubSubscriptionsApiUpdateSubscriptionPlanForClubRequest} requestParameters Request parameters.
2557
3436
  * @param {*} [options] Override http request option.
2558
3437
  * @throws {RequiredError}
2559
3438
  * @memberof ManagerClubSubscriptionsApi
2560
3439
  */
2561
3440
  updateSubscriptionPlanForClub(requestParameters, options) {
2562
- return (0, exports.ManagerClubSubscriptionsApiFp)(this.configuration).updateSubscriptionPlanForClub(requestParameters.id, requestParameters.priceId, requestParameters.updateSubscriptionPlanRequest, options).then((request) => request(this.axios, this.basePath));
3441
+ return (0, exports.ManagerClubSubscriptionsApiFp)(this.configuration).updateSubscriptionPlanForClub(requestParameters.priceId, requestParameters.updateSubscriptionPlanRequest, options).then((request) => request(this.axios, this.basePath));
2563
3442
  }
2564
3443
  }
2565
3444
  exports.ManagerClubSubscriptionsApi = ManagerClubSubscriptionsApi;
@@ -2571,19 +3450,15 @@ const ManagerClubsApiAxiosParamCreator = function (configuration) {
2571
3450
  return {
2572
3451
  /**
2573
3452
  *
2574
- * @summary Ajouter un membre à un club
2575
- * @param {string} id ID du club
3453
+ * @summary Ajouter un membre au club courant
2576
3454
  * @param {AddClubMemberRequest} addClubMemberRequest
2577
3455
  * @param {*} [options] Override http request option.
2578
3456
  * @throws {RequiredError}
2579
3457
  */
2580
- addClubMember: (id_1, addClubMemberRequest_1, ...args_1) => __awaiter(this, [id_1, addClubMemberRequest_1, ...args_1], void 0, function* (id, addClubMemberRequest, options = {}) {
2581
- // verify required parameter 'id' is not null or undefined
2582
- (0, common_1.assertParamExists)('addClubMember', 'id', id);
3458
+ addClubMember: (addClubMemberRequest_1, ...args_1) => __awaiter(this, [addClubMemberRequest_1, ...args_1], void 0, function* (addClubMemberRequest, options = {}) {
2583
3459
  // verify required parameter 'addClubMemberRequest' is not null or undefined
2584
3460
  (0, common_1.assertParamExists)('addClubMember', 'addClubMemberRequest', addClubMemberRequest);
2585
- const localVarPath = `/api/clubs/{id}/add_members`
2586
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
3461
+ const localVarPath = `/api/clubs/add_members`;
2587
3462
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2588
3463
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2589
3464
  let baseOptions;
@@ -2608,16 +3483,12 @@ const ManagerClubsApiAxiosParamCreator = function (configuration) {
2608
3483
  }),
2609
3484
  /**
2610
3485
  *
2611
- * @summary Récupérer les informations d\'un club
2612
- * @param {string} id ID du club
3486
+ * @summary Récupérer les informations du club courant
2613
3487
  * @param {*} [options] Override http request option.
2614
3488
  * @throws {RequiredError}
2615
3489
  */
2616
- getClubInfo: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
2617
- // verify required parameter 'id' is not null or undefined
2618
- (0, common_1.assertParamExists)('getClubInfo', 'id', id);
2619
- const localVarPath = `/api/clubs/{id}`
2620
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
3490
+ getClubInfo: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
3491
+ const localVarPath = `/api/clubs/me`;
2621
3492
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2622
3493
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2623
3494
  let baseOptions;
@@ -2640,16 +3511,12 @@ const ManagerClubsApiAxiosParamCreator = function (configuration) {
2640
3511
  }),
2641
3512
  /**
2642
3513
  *
2643
- * @summary Récupérer les membres d\'un club
2644
- * @param {string} id ID du club
3514
+ * @summary Récupérer les membres du club courant
2645
3515
  * @param {*} [options] Override http request option.
2646
3516
  * @throws {RequiredError}
2647
3517
  */
2648
- getClubMembers: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
2649
- // verify required parameter 'id' is not null or undefined
2650
- (0, common_1.assertParamExists)('getClubMembers', 'id', id);
2651
- const localVarPath = `/api/clubs/{id}/members`
2652
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
3518
+ getClubMembers: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
3519
+ const localVarPath = `/api/clubs/members`;
2653
3520
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2654
3521
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2655
3522
  let baseOptions;
@@ -2672,16 +3539,12 @@ const ManagerClubsApiAxiosParamCreator = function (configuration) {
2672
3539
  }),
2673
3540
  /**
2674
3541
  *
2675
- * @summary Récupérer les rôles d\'un club
2676
- * @param {string} id ID du club
3542
+ * @summary Récupérer les rôles du club courant
2677
3543
  * @param {*} [options] Override http request option.
2678
3544
  * @throws {RequiredError}
2679
3545
  */
2680
- getClubRoles: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
2681
- // verify required parameter 'id' is not null or undefined
2682
- (0, common_1.assertParamExists)('getClubRoles', 'id', id);
2683
- const localVarPath = `/api/clubs/{id}/roles`
2684
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
3546
+ getClubRoles: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
3547
+ const localVarPath = `/api/clubs/roles`;
2685
3548
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2686
3549
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2687
3550
  let baseOptions;
@@ -2704,19 +3567,15 @@ const ManagerClubsApiAxiosParamCreator = function (configuration) {
2704
3567
  }),
2705
3568
  /**
2706
3569
  *
2707
- * @summary Mettre à jour un club existant
2708
- * @param {string} id ID du club
3570
+ * @summary Mettre à jour un club existant (club courant)
2709
3571
  * @param {UpdateClubRequest} updateClubRequest
2710
3572
  * @param {*} [options] Override http request option.
2711
3573
  * @throws {RequiredError}
2712
3574
  */
2713
- updateClub: (id_1, updateClubRequest_1, ...args_1) => __awaiter(this, [id_1, updateClubRequest_1, ...args_1], void 0, function* (id, updateClubRequest, options = {}) {
2714
- // verify required parameter 'id' is not null or undefined
2715
- (0, common_1.assertParamExists)('updateClub', 'id', id);
3575
+ updateClubNoId: (updateClubRequest_1, ...args_1) => __awaiter(this, [updateClubRequest_1, ...args_1], void 0, function* (updateClubRequest, options = {}) {
2716
3576
  // verify required parameter 'updateClubRequest' is not null or undefined
2717
- (0, common_1.assertParamExists)('updateClub', 'updateClubRequest', updateClubRequest);
2718
- const localVarPath = `/api/clubs/{id}`
2719
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
3577
+ (0, common_1.assertParamExists)('updateClubNoId', 'updateClubRequest', updateClubRequest);
3578
+ const localVarPath = `/api/clubs`;
2720
3579
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2721
3580
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2722
3581
  let baseOptions;
@@ -2751,16 +3610,15 @@ const ManagerClubsApiFp = function (configuration) {
2751
3610
  return {
2752
3611
  /**
2753
3612
  *
2754
- * @summary Ajouter un membre à un club
2755
- * @param {string} id ID du club
3613
+ * @summary Ajouter un membre au club courant
2756
3614
  * @param {AddClubMemberRequest} addClubMemberRequest
2757
3615
  * @param {*} [options] Override http request option.
2758
3616
  * @throws {RequiredError}
2759
3617
  */
2760
- addClubMember(id, addClubMemberRequest, options) {
3618
+ addClubMember(addClubMemberRequest, options) {
2761
3619
  return __awaiter(this, void 0, void 0, function* () {
2762
3620
  var _a, _b, _c;
2763
- const localVarAxiosArgs = yield localVarAxiosParamCreator.addClubMember(id, addClubMemberRequest, options);
3621
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.addClubMember(addClubMemberRequest, options);
2764
3622
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2765
3623
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ManagerClubsApi.addClubMember']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2766
3624
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -2768,15 +3626,14 @@ const ManagerClubsApiFp = function (configuration) {
2768
3626
  },
2769
3627
  /**
2770
3628
  *
2771
- * @summary Récupérer les informations d\'un club
2772
- * @param {string} id ID du club
3629
+ * @summary Récupérer les informations du club courant
2773
3630
  * @param {*} [options] Override http request option.
2774
3631
  * @throws {RequiredError}
2775
3632
  */
2776
- getClubInfo(id, options) {
3633
+ getClubInfo(options) {
2777
3634
  return __awaiter(this, void 0, void 0, function* () {
2778
3635
  var _a, _b, _c;
2779
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubInfo(id, options);
3636
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubInfo(options);
2780
3637
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2781
3638
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ManagerClubsApi.getClubInfo']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2782
3639
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -2784,15 +3641,14 @@ const ManagerClubsApiFp = function (configuration) {
2784
3641
  },
2785
3642
  /**
2786
3643
  *
2787
- * @summary Récupérer les membres d\'un club
2788
- * @param {string} id ID du club
3644
+ * @summary Récupérer les membres du club courant
2789
3645
  * @param {*} [options] Override http request option.
2790
3646
  * @throws {RequiredError}
2791
3647
  */
2792
- getClubMembers(id, options) {
3648
+ getClubMembers(options) {
2793
3649
  return __awaiter(this, void 0, void 0, function* () {
2794
3650
  var _a, _b, _c;
2795
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubMembers(id, options);
3651
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubMembers(options);
2796
3652
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2797
3653
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ManagerClubsApi.getClubMembers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2798
3654
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -2800,15 +3656,14 @@ const ManagerClubsApiFp = function (configuration) {
2800
3656
  },
2801
3657
  /**
2802
3658
  *
2803
- * @summary Récupérer les rôles d\'un club
2804
- * @param {string} id ID du club
3659
+ * @summary Récupérer les rôles du club courant
2805
3660
  * @param {*} [options] Override http request option.
2806
3661
  * @throws {RequiredError}
2807
3662
  */
2808
- getClubRoles(id, options) {
3663
+ getClubRoles(options) {
2809
3664
  return __awaiter(this, void 0, void 0, function* () {
2810
3665
  var _a, _b, _c;
2811
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubRoles(id, options);
3666
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubRoles(options);
2812
3667
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2813
3668
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ManagerClubsApi.getClubRoles']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2814
3669
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -2816,18 +3671,17 @@ const ManagerClubsApiFp = function (configuration) {
2816
3671
  },
2817
3672
  /**
2818
3673
  *
2819
- * @summary Mettre à jour un club existant
2820
- * @param {string} id ID du club
3674
+ * @summary Mettre à jour un club existant (club courant)
2821
3675
  * @param {UpdateClubRequest} updateClubRequest
2822
3676
  * @param {*} [options] Override http request option.
2823
3677
  * @throws {RequiredError}
2824
3678
  */
2825
- updateClub(id, updateClubRequest, options) {
3679
+ updateClubNoId(updateClubRequest, options) {
2826
3680
  return __awaiter(this, void 0, void 0, function* () {
2827
3681
  var _a, _b, _c;
2828
- const localVarAxiosArgs = yield localVarAxiosParamCreator.updateClub(id, updateClubRequest, options);
3682
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateClubNoId(updateClubRequest, options);
2829
3683
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2830
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ManagerClubsApi.updateClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3684
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ManagerClubsApi.updateClubNoId']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2831
3685
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2832
3686
  });
2833
3687
  },
@@ -2843,53 +3697,50 @@ const ManagerClubsApiFactory = function (configuration, basePath, axios) {
2843
3697
  return {
2844
3698
  /**
2845
3699
  *
2846
- * @summary Ajouter un membre à un club
3700
+ * @summary Ajouter un membre au club courant
2847
3701
  * @param {ManagerClubsApiAddClubMemberRequest} requestParameters Request parameters.
2848
3702
  * @param {*} [options] Override http request option.
2849
3703
  * @throws {RequiredError}
2850
3704
  */
2851
3705
  addClubMember(requestParameters, options) {
2852
- return localVarFp.addClubMember(requestParameters.id, requestParameters.addClubMemberRequest, options).then((request) => request(axios, basePath));
3706
+ return localVarFp.addClubMember(requestParameters.addClubMemberRequest, options).then((request) => request(axios, basePath));
2853
3707
  },
2854
3708
  /**
2855
3709
  *
2856
- * @summary Récupérer les informations d\'un club
2857
- * @param {ManagerClubsApiGetClubInfoRequest} requestParameters Request parameters.
3710
+ * @summary Récupérer les informations du club courant
2858
3711
  * @param {*} [options] Override http request option.
2859
3712
  * @throws {RequiredError}
2860
3713
  */
2861
- getClubInfo(requestParameters, options) {
2862
- return localVarFp.getClubInfo(requestParameters.id, options).then((request) => request(axios, basePath));
3714
+ getClubInfo(options) {
3715
+ return localVarFp.getClubInfo(options).then((request) => request(axios, basePath));
2863
3716
  },
2864
3717
  /**
2865
3718
  *
2866
- * @summary Récupérer les membres d\'un club
2867
- * @param {ManagerClubsApiGetClubMembersRequest} requestParameters Request parameters.
3719
+ * @summary Récupérer les membres du club courant
2868
3720
  * @param {*} [options] Override http request option.
2869
3721
  * @throws {RequiredError}
2870
3722
  */
2871
- getClubMembers(requestParameters, options) {
2872
- return localVarFp.getClubMembers(requestParameters.id, options).then((request) => request(axios, basePath));
3723
+ getClubMembers(options) {
3724
+ return localVarFp.getClubMembers(options).then((request) => request(axios, basePath));
2873
3725
  },
2874
3726
  /**
2875
3727
  *
2876
- * @summary Récupérer les rôles d\'un club
2877
- * @param {ManagerClubsApiGetClubRolesRequest} requestParameters Request parameters.
3728
+ * @summary Récupérer les rôles du club courant
2878
3729
  * @param {*} [options] Override http request option.
2879
3730
  * @throws {RequiredError}
2880
3731
  */
2881
- getClubRoles(requestParameters, options) {
2882
- return localVarFp.getClubRoles(requestParameters.id, options).then((request) => request(axios, basePath));
3732
+ getClubRoles(options) {
3733
+ return localVarFp.getClubRoles(options).then((request) => request(axios, basePath));
2883
3734
  },
2884
3735
  /**
2885
3736
  *
2886
- * @summary Mettre à jour un club existant
2887
- * @param {ManagerClubsApiUpdateClubRequest} requestParameters Request parameters.
3737
+ * @summary Mettre à jour un club existant (club courant)
3738
+ * @param {ManagerClubsApiUpdateClubNoIdRequest} requestParameters Request parameters.
2888
3739
  * @param {*} [options] Override http request option.
2889
3740
  * @throws {RequiredError}
2890
3741
  */
2891
- updateClub(requestParameters, options) {
2892
- return localVarFp.updateClub(requestParameters.id, requestParameters.updateClubRequest, options).then((request) => request(axios, basePath));
3742
+ updateClubNoId(requestParameters, options) {
3743
+ return localVarFp.updateClubNoId(requestParameters.updateClubRequest, options).then((request) => request(axios, basePath));
2893
3744
  },
2894
3745
  };
2895
3746
  };
@@ -2903,58 +3754,55 @@ exports.ManagerClubsApiFactory = ManagerClubsApiFactory;
2903
3754
  class ManagerClubsApi extends base_1.BaseAPI {
2904
3755
  /**
2905
3756
  *
2906
- * @summary Ajouter un membre à un club
3757
+ * @summary Ajouter un membre au club courant
2907
3758
  * @param {ManagerClubsApiAddClubMemberRequest} requestParameters Request parameters.
2908
3759
  * @param {*} [options] Override http request option.
2909
3760
  * @throws {RequiredError}
2910
3761
  * @memberof ManagerClubsApi
2911
3762
  */
2912
3763
  addClubMember(requestParameters, options) {
2913
- return (0, exports.ManagerClubsApiFp)(this.configuration).addClubMember(requestParameters.id, requestParameters.addClubMemberRequest, options).then((request) => request(this.axios, this.basePath));
3764
+ return (0, exports.ManagerClubsApiFp)(this.configuration).addClubMember(requestParameters.addClubMemberRequest, options).then((request) => request(this.axios, this.basePath));
2914
3765
  }
2915
3766
  /**
2916
3767
  *
2917
- * @summary Récupérer les informations d\'un club
2918
- * @param {ManagerClubsApiGetClubInfoRequest} requestParameters Request parameters.
3768
+ * @summary Récupérer les informations du club courant
2919
3769
  * @param {*} [options] Override http request option.
2920
3770
  * @throws {RequiredError}
2921
3771
  * @memberof ManagerClubsApi
2922
3772
  */
2923
- getClubInfo(requestParameters, options) {
2924
- return (0, exports.ManagerClubsApiFp)(this.configuration).getClubInfo(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
3773
+ getClubInfo(options) {
3774
+ return (0, exports.ManagerClubsApiFp)(this.configuration).getClubInfo(options).then((request) => request(this.axios, this.basePath));
2925
3775
  }
2926
3776
  /**
2927
3777
  *
2928
- * @summary Récupérer les membres d\'un club
2929
- * @param {ManagerClubsApiGetClubMembersRequest} requestParameters Request parameters.
3778
+ * @summary Récupérer les membres du club courant
2930
3779
  * @param {*} [options] Override http request option.
2931
3780
  * @throws {RequiredError}
2932
3781
  * @memberof ManagerClubsApi
2933
3782
  */
2934
- getClubMembers(requestParameters, options) {
2935
- return (0, exports.ManagerClubsApiFp)(this.configuration).getClubMembers(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
3783
+ getClubMembers(options) {
3784
+ return (0, exports.ManagerClubsApiFp)(this.configuration).getClubMembers(options).then((request) => request(this.axios, this.basePath));
2936
3785
  }
2937
3786
  /**
2938
3787
  *
2939
- * @summary Récupérer les rôles d\'un club
2940
- * @param {ManagerClubsApiGetClubRolesRequest} requestParameters Request parameters.
3788
+ * @summary Récupérer les rôles du club courant
2941
3789
  * @param {*} [options] Override http request option.
2942
3790
  * @throws {RequiredError}
2943
3791
  * @memberof ManagerClubsApi
2944
3792
  */
2945
- getClubRoles(requestParameters, options) {
2946
- return (0, exports.ManagerClubsApiFp)(this.configuration).getClubRoles(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
3793
+ getClubRoles(options) {
3794
+ return (0, exports.ManagerClubsApiFp)(this.configuration).getClubRoles(options).then((request) => request(this.axios, this.basePath));
2947
3795
  }
2948
3796
  /**
2949
3797
  *
2950
- * @summary Mettre à jour un club existant
2951
- * @param {ManagerClubsApiUpdateClubRequest} requestParameters Request parameters.
3798
+ * @summary Mettre à jour un club existant (club courant)
3799
+ * @param {ManagerClubsApiUpdateClubNoIdRequest} requestParameters Request parameters.
2952
3800
  * @param {*} [options] Override http request option.
2953
3801
  * @throws {RequiredError}
2954
3802
  * @memberof ManagerClubsApi
2955
3803
  */
2956
- updateClub(requestParameters, options) {
2957
- return (0, exports.ManagerClubsApiFp)(this.configuration).updateClub(requestParameters.id, requestParameters.updateClubRequest, options).then((request) => request(this.axios, this.basePath));
3804
+ updateClubNoId(requestParameters, options) {
3805
+ return (0, exports.ManagerClubsApiFp)(this.configuration).updateClubNoId(requestParameters.updateClubRequest, options).then((request) => request(this.axios, this.basePath));
2958
3806
  }
2959
3807
  }
2960
3808
  exports.ManagerClubsApi = ManagerClubsApi;
@@ -2964,6 +3812,39 @@ exports.ManagerClubsApi = ManagerClubsApi;
2964
3812
  */
2965
3813
  const ManagerSportsApiAxiosParamCreator = function (configuration) {
2966
3814
  return {
3815
+ /**
3816
+ *
3817
+ * @summary Créer un sport dans un club
3818
+ * @param {CreateSportRequest} createSportRequest
3819
+ * @param {*} [options] Override http request option.
3820
+ * @throws {RequiredError}
3821
+ */
3822
+ createSport: (createSportRequest_1, ...args_1) => __awaiter(this, [createSportRequest_1, ...args_1], void 0, function* (createSportRequest, options = {}) {
3823
+ // verify required parameter 'createSportRequest' is not null or undefined
3824
+ (0, common_1.assertParamExists)('createSport', 'createSportRequest', createSportRequest);
3825
+ const localVarPath = `/api/sports`;
3826
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3827
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3828
+ let baseOptions;
3829
+ if (configuration) {
3830
+ baseOptions = configuration.baseOptions;
3831
+ }
3832
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
3833
+ const localVarHeaderParameter = {};
3834
+ const localVarQueryParameter = {};
3835
+ // authentication bearerAuth required
3836
+ // http bearer authentication required
3837
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
3838
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3839
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3840
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3841
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3842
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createSportRequest, localVarRequestOptions, configuration);
3843
+ return {
3844
+ url: (0, common_1.toPathString)(localVarUrlObj),
3845
+ options: localVarRequestOptions,
3846
+ };
3847
+ }),
2967
3848
  /**
2968
3849
  *
2969
3850
  * @summary Supprimer un sport
@@ -3043,6 +3924,22 @@ exports.ManagerSportsApiAxiosParamCreator = ManagerSportsApiAxiosParamCreator;
3043
3924
  const ManagerSportsApiFp = function (configuration) {
3044
3925
  const localVarAxiosParamCreator = (0, exports.ManagerSportsApiAxiosParamCreator)(configuration);
3045
3926
  return {
3927
+ /**
3928
+ *
3929
+ * @summary Créer un sport dans un club
3930
+ * @param {CreateSportRequest} createSportRequest
3931
+ * @param {*} [options] Override http request option.
3932
+ * @throws {RequiredError}
3933
+ */
3934
+ createSport(createSportRequest, options) {
3935
+ return __awaiter(this, void 0, void 0, function* () {
3936
+ var _a, _b, _c;
3937
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createSport(createSportRequest, options);
3938
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3939
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ManagerSportsApi.createSport']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3940
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3941
+ });
3942
+ },
3046
3943
  /**
3047
3944
  *
3048
3945
  * @summary Supprimer un sport
@@ -3086,6 +3983,16 @@ exports.ManagerSportsApiFp = ManagerSportsApiFp;
3086
3983
  const ManagerSportsApiFactory = function (configuration, basePath, axios) {
3087
3984
  const localVarFp = (0, exports.ManagerSportsApiFp)(configuration);
3088
3985
  return {
3986
+ /**
3987
+ *
3988
+ * @summary Créer un sport dans un club
3989
+ * @param {ManagerSportsApiCreateSportRequest} requestParameters Request parameters.
3990
+ * @param {*} [options] Override http request option.
3991
+ * @throws {RequiredError}
3992
+ */
3993
+ createSport(requestParameters, options) {
3994
+ return localVarFp.createSport(requestParameters.createSportRequest, options).then((request) => request(axios, basePath));
3995
+ },
3089
3996
  /**
3090
3997
  *
3091
3998
  * @summary Supprimer un sport
@@ -3116,6 +4023,17 @@ exports.ManagerSportsApiFactory = ManagerSportsApiFactory;
3116
4023
  * @extends {BaseAPI}
3117
4024
  */
3118
4025
  class ManagerSportsApi extends base_1.BaseAPI {
4026
+ /**
4027
+ *
4028
+ * @summary Créer un sport dans un club
4029
+ * @param {ManagerSportsApiCreateSportRequest} requestParameters Request parameters.
4030
+ * @param {*} [options] Override http request option.
4031
+ * @throws {RequiredError}
4032
+ * @memberof ManagerSportsApi
4033
+ */
4034
+ createSport(requestParameters, options) {
4035
+ return (0, exports.ManagerSportsApiFp)(this.configuration).createSport(requestParameters.createSportRequest, options).then((request) => request(this.axios, this.basePath));
4036
+ }
3119
4037
  /**
3120
4038
  *
3121
4039
  * @summary Supprimer un sport
@@ -3148,16 +4066,12 @@ const StaffClubAnalyticsApiAxiosParamCreator = function (configuration) {
3148
4066
  return {
3149
4067
  /**
3150
4068
  *
3151
- * @summary Get monthly turnover for the last six months
3152
- * @param {string} id ID du club
4069
+ * @summary Get monthly turnover for the last six months (club courant)
3153
4070
  * @param {*} [options] Override http request option.
3154
4071
  * @throws {RequiredError}
3155
4072
  */
3156
- getLastSixMonthsTurnover: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
3157
- // verify required parameter 'id' is not null or undefined
3158
- (0, common_1.assertParamExists)('getLastSixMonthsTurnover', 'id', id);
3159
- const localVarPath = `/api/clubs/{id}/turnover`
3160
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
4073
+ getLastSixMonthsTurnover: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
4074
+ const localVarPath = `/api/analytics/lastSixMonthsTurnover`;
3161
4075
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3162
4076
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3163
4077
  let baseOptions;
@@ -3181,11 +4095,13 @@ const StaffClubAnalyticsApiAxiosParamCreator = function (configuration) {
3181
4095
  /**
3182
4096
  *
3183
4097
  * @summary Get number of users subscribed to the club
4098
+ * @param {string} [id] ID du club (optionnel, si absent, pris depuis le token)
3184
4099
  * @param {*} [options] Override http request option.
3185
4100
  * @throws {RequiredError}
3186
4101
  */
3187
- getNumberOfClubUsers: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
3188
- const localVarPath = `/api/clubs/user-count`;
4102
+ getNumberOfClubUsers: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
4103
+ const localVarPath = `/api/analytics/user-count`
4104
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
3189
4105
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3190
4106
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3191
4107
  let baseOptions;
@@ -3218,15 +4134,14 @@ const StaffClubAnalyticsApiFp = function (configuration) {
3218
4134
  return {
3219
4135
  /**
3220
4136
  *
3221
- * @summary Get monthly turnover for the last six months
3222
- * @param {string} id ID du club
4137
+ * @summary Get monthly turnover for the last six months (club courant)
3223
4138
  * @param {*} [options] Override http request option.
3224
4139
  * @throws {RequiredError}
3225
4140
  */
3226
- getLastSixMonthsTurnover(id, options) {
4141
+ getLastSixMonthsTurnover(options) {
3227
4142
  return __awaiter(this, void 0, void 0, function* () {
3228
4143
  var _a, _b, _c;
3229
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getLastSixMonthsTurnover(id, options);
4144
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getLastSixMonthsTurnover(options);
3230
4145
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3231
4146
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['StaffClubAnalyticsApi.getLastSixMonthsTurnover']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3232
4147
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -3235,13 +4150,14 @@ const StaffClubAnalyticsApiFp = function (configuration) {
3235
4150
  /**
3236
4151
  *
3237
4152
  * @summary Get number of users subscribed to the club
4153
+ * @param {string} [id] ID du club (optionnel, si absent, pris depuis le token)
3238
4154
  * @param {*} [options] Override http request option.
3239
4155
  * @throws {RequiredError}
3240
4156
  */
3241
- getNumberOfClubUsers(options) {
4157
+ getNumberOfClubUsers(id, options) {
3242
4158
  return __awaiter(this, void 0, void 0, function* () {
3243
4159
  var _a, _b, _c;
3244
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getNumberOfClubUsers(options);
4160
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getNumberOfClubUsers(id, options);
3245
4161
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3246
4162
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['StaffClubAnalyticsApi.getNumberOfClubUsers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3247
4163
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -3259,22 +4175,22 @@ const StaffClubAnalyticsApiFactory = function (configuration, basePath, axios) {
3259
4175
  return {
3260
4176
  /**
3261
4177
  *
3262
- * @summary Get monthly turnover for the last six months
3263
- * @param {StaffClubAnalyticsApiGetLastSixMonthsTurnoverRequest} requestParameters Request parameters.
4178
+ * @summary Get monthly turnover for the last six months (club courant)
3264
4179
  * @param {*} [options] Override http request option.
3265
4180
  * @throws {RequiredError}
3266
4181
  */
3267
- getLastSixMonthsTurnover(requestParameters, options) {
3268
- return localVarFp.getLastSixMonthsTurnover(requestParameters.id, options).then((request) => request(axios, basePath));
4182
+ getLastSixMonthsTurnover(options) {
4183
+ return localVarFp.getLastSixMonthsTurnover(options).then((request) => request(axios, basePath));
3269
4184
  },
3270
4185
  /**
3271
4186
  *
3272
4187
  * @summary Get number of users subscribed to the club
4188
+ * @param {StaffClubAnalyticsApiGetNumberOfClubUsersRequest} requestParameters Request parameters.
3273
4189
  * @param {*} [options] Override http request option.
3274
4190
  * @throws {RequiredError}
3275
4191
  */
3276
- getNumberOfClubUsers(options) {
3277
- return localVarFp.getNumberOfClubUsers(options).then((request) => request(axios, basePath));
4192
+ getNumberOfClubUsers(requestParameters = {}, options) {
4193
+ return localVarFp.getNumberOfClubUsers(requestParameters.id, options).then((request) => request(axios, basePath));
3278
4194
  },
3279
4195
  };
3280
4196
  };
@@ -3288,24 +4204,24 @@ exports.StaffClubAnalyticsApiFactory = StaffClubAnalyticsApiFactory;
3288
4204
  class StaffClubAnalyticsApi extends base_1.BaseAPI {
3289
4205
  /**
3290
4206
  *
3291
- * @summary Get monthly turnover for the last six months
3292
- * @param {StaffClubAnalyticsApiGetLastSixMonthsTurnoverRequest} requestParameters Request parameters.
4207
+ * @summary Get monthly turnover for the last six months (club courant)
3293
4208
  * @param {*} [options] Override http request option.
3294
4209
  * @throws {RequiredError}
3295
4210
  * @memberof StaffClubAnalyticsApi
3296
4211
  */
3297
- getLastSixMonthsTurnover(requestParameters, options) {
3298
- return (0, exports.StaffClubAnalyticsApiFp)(this.configuration).getLastSixMonthsTurnover(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
4212
+ getLastSixMonthsTurnover(options) {
4213
+ return (0, exports.StaffClubAnalyticsApiFp)(this.configuration).getLastSixMonthsTurnover(options).then((request) => request(this.axios, this.basePath));
3299
4214
  }
3300
4215
  /**
3301
4216
  *
3302
4217
  * @summary Get number of users subscribed to the club
4218
+ * @param {StaffClubAnalyticsApiGetNumberOfClubUsersRequest} requestParameters Request parameters.
3303
4219
  * @param {*} [options] Override http request option.
3304
4220
  * @throws {RequiredError}
3305
4221
  * @memberof StaffClubAnalyticsApi
3306
4222
  */
3307
- getNumberOfClubUsers(options) {
3308
- return (0, exports.StaffClubAnalyticsApiFp)(this.configuration).getNumberOfClubUsers(options).then((request) => request(this.axios, this.basePath));
4223
+ getNumberOfClubUsers(requestParameters = {}, options) {
4224
+ return (0, exports.StaffClubAnalyticsApiFp)(this.configuration).getNumberOfClubUsers(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
3309
4225
  }
3310
4226
  }
3311
4227
  exports.StaffClubAnalyticsApi = StaffClubAnalyticsApi;
@@ -3317,16 +4233,12 @@ const StaffClubBookingsApiAxiosParamCreator = function (configuration) {
3317
4233
  return {
3318
4234
  /**
3319
4235
  *
3320
- * @summary Get the ten next bookings for the club
3321
- * @param {string} id ID du club
4236
+ * @summary Get the ten next bookings for the current club
3322
4237
  * @param {*} [options] Override http request option.
3323
4238
  * @throws {RequiredError}
3324
4239
  */
3325
- getTenNextBookings: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
3326
- // verify required parameter 'id' is not null or undefined
3327
- (0, common_1.assertParamExists)('getTenNextBookings', 'id', id);
3328
- const localVarPath = `/api/clubs/{id}/next-bookings`
3329
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
4240
+ getTenNextBookings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
4241
+ const localVarPath = `/api/analytics/next-bookings`;
3330
4242
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3331
4243
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3332
4244
  let baseOptions;
@@ -3359,15 +4271,14 @@ const StaffClubBookingsApiFp = function (configuration) {
3359
4271
  return {
3360
4272
  /**
3361
4273
  *
3362
- * @summary Get the ten next bookings for the club
3363
- * @param {string} id ID du club
4274
+ * @summary Get the ten next bookings for the current club
3364
4275
  * @param {*} [options] Override http request option.
3365
4276
  * @throws {RequiredError}
3366
4277
  */
3367
- getTenNextBookings(id, options) {
4278
+ getTenNextBookings(options) {
3368
4279
  return __awaiter(this, void 0, void 0, function* () {
3369
4280
  var _a, _b, _c;
3370
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getTenNextBookings(id, options);
4281
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getTenNextBookings(options);
3371
4282
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3372
4283
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['StaffClubBookingsApi.getTenNextBookings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3373
4284
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -3385,13 +4296,12 @@ const StaffClubBookingsApiFactory = function (configuration, basePath, axios) {
3385
4296
  return {
3386
4297
  /**
3387
4298
  *
3388
- * @summary Get the ten next bookings for the club
3389
- * @param {StaffClubBookingsApiGetTenNextBookingsRequest} requestParameters Request parameters.
4299
+ * @summary Get the ten next bookings for the current club
3390
4300
  * @param {*} [options] Override http request option.
3391
4301
  * @throws {RequiredError}
3392
4302
  */
3393
- getTenNextBookings(requestParameters, options) {
3394
- return localVarFp.getTenNextBookings(requestParameters.id, options).then((request) => request(axios, basePath));
4303
+ getTenNextBookings(options) {
4304
+ return localVarFp.getTenNextBookings(options).then((request) => request(axios, basePath));
3395
4305
  },
3396
4306
  };
3397
4307
  };
@@ -3405,31 +4315,30 @@ exports.StaffClubBookingsApiFactory = StaffClubBookingsApiFactory;
3405
4315
  class StaffClubBookingsApi extends base_1.BaseAPI {
3406
4316
  /**
3407
4317
  *
3408
- * @summary Get the ten next bookings for the club
3409
- * @param {StaffClubBookingsApiGetTenNextBookingsRequest} requestParameters Request parameters.
4318
+ * @summary Get the ten next bookings for the current club
3410
4319
  * @param {*} [options] Override http request option.
3411
4320
  * @throws {RequiredError}
3412
4321
  * @memberof StaffClubBookingsApi
3413
4322
  */
3414
- getTenNextBookings(requestParameters, options) {
3415
- return (0, exports.StaffClubBookingsApiFp)(this.configuration).getTenNextBookings(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
4323
+ getTenNextBookings(options) {
4324
+ return (0, exports.StaffClubBookingsApiFp)(this.configuration).getTenNextBookings(options).then((request) => request(this.axios, this.basePath));
3416
4325
  }
3417
4326
  }
3418
4327
  exports.StaffClubBookingsApi = StaffClubBookingsApi;
3419
4328
  /**
3420
- * StaffClubSettingsApi - axios parameter creator
4329
+ * StaffClubsApi - axios parameter creator
3421
4330
  * @export
3422
4331
  */
3423
- const StaffClubSettingsApiAxiosParamCreator = function (configuration) {
4332
+ const StaffClubsApiAxiosParamCreator = function (configuration) {
3424
4333
  return {
3425
4334
  /**
3426
4335
  *
3427
- * @summary Récupère les paramètres d\'un club
4336
+ * @summary Get current club information
3428
4337
  * @param {*} [options] Override http request option.
3429
4338
  * @throws {RequiredError}
3430
4339
  */
3431
- getClubSettings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
3432
- const localVarPath = `/api/club-settings`;
4340
+ getClubInfos: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
4341
+ const localVarPath = `/api/clubs/infos`;
3433
4342
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3434
4343
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3435
4344
  let baseOptions;
@@ -3450,90 +4359,17 @@ const StaffClubSettingsApiAxiosParamCreator = function (configuration) {
3450
4359
  options: localVarRequestOptions,
3451
4360
  };
3452
4361
  }),
3453
- };
3454
- };
3455
- exports.StaffClubSettingsApiAxiosParamCreator = StaffClubSettingsApiAxiosParamCreator;
3456
- /**
3457
- * StaffClubSettingsApi - functional programming interface
3458
- * @export
3459
- */
3460
- const StaffClubSettingsApiFp = function (configuration) {
3461
- const localVarAxiosParamCreator = (0, exports.StaffClubSettingsApiAxiosParamCreator)(configuration);
3462
- return {
3463
- /**
3464
- *
3465
- * @summary Récupère les paramètres d\'un club
3466
- * @param {*} [options] Override http request option.
3467
- * @throws {RequiredError}
3468
- */
3469
- getClubSettings(options) {
3470
- return __awaiter(this, void 0, void 0, function* () {
3471
- var _a, _b, _c;
3472
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubSettings(options);
3473
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3474
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['StaffClubSettingsApi.getClubSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3475
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3476
- });
3477
- },
3478
- };
3479
- };
3480
- exports.StaffClubSettingsApiFp = StaffClubSettingsApiFp;
3481
- /**
3482
- * StaffClubSettingsApi - factory interface
3483
- * @export
3484
- */
3485
- const StaffClubSettingsApiFactory = function (configuration, basePath, axios) {
3486
- const localVarFp = (0, exports.StaffClubSettingsApiFp)(configuration);
3487
- return {
3488
- /**
3489
- *
3490
- * @summary Récupère les paramètres d\'un club
3491
- * @param {*} [options] Override http request option.
3492
- * @throws {RequiredError}
3493
- */
3494
- getClubSettings(options) {
3495
- return localVarFp.getClubSettings(options).then((request) => request(axios, basePath));
3496
- },
3497
- };
3498
- };
3499
- exports.StaffClubSettingsApiFactory = StaffClubSettingsApiFactory;
3500
- /**
3501
- * StaffClubSettingsApi - object-oriented interface
3502
- * @export
3503
- * @class StaffClubSettingsApi
3504
- * @extends {BaseAPI}
3505
- */
3506
- class StaffClubSettingsApi extends base_1.BaseAPI {
3507
- /**
3508
- *
3509
- * @summary Récupère les paramètres d\'un club
3510
- * @param {*} [options] Override http request option.
3511
- * @throws {RequiredError}
3512
- * @memberof StaffClubSettingsApi
3513
- */
3514
- getClubSettings(options) {
3515
- return (0, exports.StaffClubSettingsApiFp)(this.configuration).getClubSettings(options).then((request) => request(this.axios, this.basePath));
3516
- }
3517
- }
3518
- exports.StaffClubSettingsApi = StaffClubSettingsApi;
3519
- /**
3520
- * StaffClubsApi - axios parameter creator
3521
- * @export
3522
- */
3523
- const StaffClubsApiAxiosParamCreator = function (configuration) {
3524
- return {
3525
4362
  /**
3526
4363
  *
3527
- * @summary Get club information (name, address, email, etc.)
3528
- * @param {string} id ID du club
4364
+ * @summary Récupère les paramètres d’un club
4365
+ * @param {GetClubSettingsRequest} getClubSettingsRequest
3529
4366
  * @param {*} [options] Override http request option.
3530
4367
  * @throws {RequiredError}
3531
4368
  */
3532
- getClubInfos: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
3533
- // verify required parameter 'id' is not null or undefined
3534
- (0, common_1.assertParamExists)('getClubInfos', 'id', id);
3535
- const localVarPath = `/api/clubs/{id}/infos`
3536
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
4369
+ getClubSettings: (getClubSettingsRequest_1, ...args_1) => __awaiter(this, [getClubSettingsRequest_1, ...args_1], void 0, function* (getClubSettingsRequest, options = {}) {
4370
+ // verify required parameter 'getClubSettingsRequest' is not null or undefined
4371
+ (0, common_1.assertParamExists)('getClubSettings', 'getClubSettingsRequest', getClubSettingsRequest);
4372
+ const localVarPath = `/api/club-settings`;
3537
4373
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3538
4374
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3539
4375
  let baseOptions;
@@ -3546,9 +4382,11 @@ const StaffClubsApiAxiosParamCreator = function (configuration) {
3546
4382
  // authentication bearerAuth required
3547
4383
  // http bearer authentication required
3548
4384
  yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
4385
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3549
4386
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3550
4387
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3551
4388
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4389
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(getClubSettingsRequest, localVarRequestOptions, configuration);
3552
4390
  return {
3553
4391
  url: (0, common_1.toPathString)(localVarUrlObj),
3554
4392
  options: localVarRequestOptions,
@@ -3566,20 +4404,35 @@ const StaffClubsApiFp = function (configuration) {
3566
4404
  return {
3567
4405
  /**
3568
4406
  *
3569
- * @summary Get club information (name, address, email, etc.)
3570
- * @param {string} id ID du club
4407
+ * @summary Get current club information
3571
4408
  * @param {*} [options] Override http request option.
3572
4409
  * @throws {RequiredError}
3573
4410
  */
3574
- getClubInfos(id, options) {
4411
+ getClubInfos(options) {
3575
4412
  return __awaiter(this, void 0, void 0, function* () {
3576
4413
  var _a, _b, _c;
3577
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubInfos(id, options);
4414
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubInfos(options);
3578
4415
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3579
4416
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['StaffClubsApi.getClubInfos']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3580
4417
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3581
4418
  });
3582
4419
  },
4420
+ /**
4421
+ *
4422
+ * @summary Récupère les paramètres d’un club
4423
+ * @param {GetClubSettingsRequest} getClubSettingsRequest
4424
+ * @param {*} [options] Override http request option.
4425
+ * @throws {RequiredError}
4426
+ */
4427
+ getClubSettings(getClubSettingsRequest, options) {
4428
+ return __awaiter(this, void 0, void 0, function* () {
4429
+ var _a, _b, _c;
4430
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubSettings(getClubSettingsRequest, options);
4431
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4432
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['StaffClubsApi.getClubSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4433
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4434
+ });
4435
+ },
3583
4436
  };
3584
4437
  };
3585
4438
  exports.StaffClubsApiFp = StaffClubsApiFp;
@@ -3592,13 +4445,22 @@ const StaffClubsApiFactory = function (configuration, basePath, axios) {
3592
4445
  return {
3593
4446
  /**
3594
4447
  *
3595
- * @summary Get club information (name, address, email, etc.)
3596
- * @param {StaffClubsApiGetClubInfosRequest} requestParameters Request parameters.
4448
+ * @summary Get current club information
4449
+ * @param {*} [options] Override http request option.
4450
+ * @throws {RequiredError}
4451
+ */
4452
+ getClubInfos(options) {
4453
+ return localVarFp.getClubInfos(options).then((request) => request(axios, basePath));
4454
+ },
4455
+ /**
4456
+ *
4457
+ * @summary Récupère les paramètres d’un club
4458
+ * @param {StaffClubsApiGetClubSettingsRequest} requestParameters Request parameters.
3597
4459
  * @param {*} [options] Override http request option.
3598
4460
  * @throws {RequiredError}
3599
4461
  */
3600
- getClubInfos(requestParameters, options) {
3601
- return localVarFp.getClubInfos(requestParameters.id, options).then((request) => request(axios, basePath));
4462
+ getClubSettings(requestParameters, options) {
4463
+ return localVarFp.getClubSettings(requestParameters.getClubSettingsRequest, options).then((request) => request(axios, basePath));
3602
4464
  },
3603
4465
  };
3604
4466
  };
@@ -3612,14 +4474,24 @@ exports.StaffClubsApiFactory = StaffClubsApiFactory;
3612
4474
  class StaffClubsApi extends base_1.BaseAPI {
3613
4475
  /**
3614
4476
  *
3615
- * @summary Get club information (name, address, email, etc.)
3616
- * @param {StaffClubsApiGetClubInfosRequest} requestParameters Request parameters.
4477
+ * @summary Get current club information
4478
+ * @param {*} [options] Override http request option.
4479
+ * @throws {RequiredError}
4480
+ * @memberof StaffClubsApi
4481
+ */
4482
+ getClubInfos(options) {
4483
+ return (0, exports.StaffClubsApiFp)(this.configuration).getClubInfos(options).then((request) => request(this.axios, this.basePath));
4484
+ }
4485
+ /**
4486
+ *
4487
+ * @summary Récupère les paramètres d’un club
4488
+ * @param {StaffClubsApiGetClubSettingsRequest} requestParameters Request parameters.
3617
4489
  * @param {*} [options] Override http request option.
3618
4490
  * @throws {RequiredError}
3619
4491
  * @memberof StaffClubsApi
3620
4492
  */
3621
- getClubInfos(requestParameters, options) {
3622
- return (0, exports.StaffClubsApiFp)(this.configuration).getClubInfos(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
4493
+ getClubSettings(requestParameters, options) {
4494
+ return (0, exports.StaffClubsApiFp)(this.configuration).getClubSettings(requestParameters.getClubSettingsRequest, options).then((request) => request(this.axios, this.basePath));
3623
4495
  }
3624
4496
  }
3625
4497
  exports.StaffClubsApi = StaffClubsApi;
@@ -3707,169 +4579,28 @@ exports.StaffProfileApiFactory = StaffProfileApiFactory;
3707
4579
  /**
3708
4580
  * StaffProfileApi - object-oriented interface
3709
4581
  * @export
3710
- * @class StaffProfileApi
3711
- * @extends {BaseAPI}
3712
- */
3713
- class StaffProfileApi extends base_1.BaseAPI {
3714
- /**
3715
- *
3716
- * @summary Récupère les rôles de l\'utilisateur dans les clubs
3717
- * @param {*} [options] Override http request option.
3718
- * @throws {RequiredError}
3719
- * @memberof StaffProfileApi
3720
- */
3721
- getUserRolesInClubs(options) {
3722
- return (0, exports.StaffProfileApiFp)(this.configuration).getUserRolesInClubs(options).then((request) => request(this.axios, this.basePath));
3723
- }
3724
- }
3725
- exports.StaffProfileApi = StaffProfileApi;
3726
- /**
3727
- * StaffSportsApi - axios parameter creator
3728
- * @export
3729
- */
3730
- const StaffSportsApiAxiosParamCreator = function (configuration) {
3731
- return {
3732
- /**
3733
- *
3734
- * @summary Récupère la liste des sports d\'un club
3735
- * @param {GetAllSportsRequest} getAllSportsRequest
3736
- * @param {*} [options] Override http request option.
3737
- * @throws {RequiredError}
3738
- */
3739
- getAllSports: (getAllSportsRequest_1, ...args_1) => __awaiter(this, [getAllSportsRequest_1, ...args_1], void 0, function* (getAllSportsRequest, options = {}) {
3740
- // verify required parameter 'getAllSportsRequest' is not null or undefined
3741
- (0, common_1.assertParamExists)('getAllSports', 'getAllSportsRequest', getAllSportsRequest);
3742
- const localVarPath = `/api/sports`;
3743
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
3744
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3745
- let baseOptions;
3746
- if (configuration) {
3747
- baseOptions = configuration.baseOptions;
3748
- }
3749
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3750
- const localVarHeaderParameter = {};
3751
- const localVarQueryParameter = {};
3752
- // authentication bearerAuth required
3753
- // http bearer authentication required
3754
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
3755
- localVarHeaderParameter['Content-Type'] = 'application/json';
3756
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3757
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3758
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3759
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(getAllSportsRequest, localVarRequestOptions, configuration);
3760
- return {
3761
- url: (0, common_1.toPathString)(localVarUrlObj),
3762
- options: localVarRequestOptions,
3763
- };
3764
- }),
3765
- };
3766
- };
3767
- exports.StaffSportsApiAxiosParamCreator = StaffSportsApiAxiosParamCreator;
3768
- /**
3769
- * StaffSportsApi - functional programming interface
3770
- * @export
3771
- */
3772
- const StaffSportsApiFp = function (configuration) {
3773
- const localVarAxiosParamCreator = (0, exports.StaffSportsApiAxiosParamCreator)(configuration);
3774
- return {
3775
- /**
3776
- *
3777
- * @summary Récupère la liste des sports d\'un club
3778
- * @param {GetAllSportsRequest} getAllSportsRequest
3779
- * @param {*} [options] Override http request option.
3780
- * @throws {RequiredError}
3781
- */
3782
- getAllSports(getAllSportsRequest, options) {
3783
- return __awaiter(this, void 0, void 0, function* () {
3784
- var _a, _b, _c;
3785
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getAllSports(getAllSportsRequest, options);
3786
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3787
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['StaffSportsApi.getAllSports']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3788
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3789
- });
3790
- },
3791
- };
3792
- };
3793
- exports.StaffSportsApiFp = StaffSportsApiFp;
3794
- /**
3795
- * StaffSportsApi - factory interface
3796
- * @export
3797
- */
3798
- const StaffSportsApiFactory = function (configuration, basePath, axios) {
3799
- const localVarFp = (0, exports.StaffSportsApiFp)(configuration);
3800
- return {
3801
- /**
3802
- *
3803
- * @summary Récupère la liste des sports d\'un club
3804
- * @param {StaffSportsApiGetAllSportsRequest} requestParameters Request parameters.
3805
- * @param {*} [options] Override http request option.
3806
- * @throws {RequiredError}
3807
- */
3808
- getAllSports(requestParameters, options) {
3809
- return localVarFp.getAllSports(requestParameters.getAllSportsRequest, options).then((request) => request(axios, basePath));
3810
- },
3811
- };
3812
- };
3813
- exports.StaffSportsApiFactory = StaffSportsApiFactory;
3814
- /**
3815
- * StaffSportsApi - object-oriented interface
3816
- * @export
3817
- * @class StaffSportsApi
4582
+ * @class StaffProfileApi
3818
4583
  * @extends {BaseAPI}
3819
4584
  */
3820
- class StaffSportsApi extends base_1.BaseAPI {
4585
+ class StaffProfileApi extends base_1.BaseAPI {
3821
4586
  /**
3822
4587
  *
3823
- * @summary Récupère la liste des sports d\'un club
3824
- * @param {StaffSportsApiGetAllSportsRequest} requestParameters Request parameters.
4588
+ * @summary Récupère les rôles de l\'utilisateur dans les clubs
3825
4589
  * @param {*} [options] Override http request option.
3826
4590
  * @throws {RequiredError}
3827
- * @memberof StaffSportsApi
4591
+ * @memberof StaffProfileApi
3828
4592
  */
3829
- getAllSports(requestParameters, options) {
3830
- return (0, exports.StaffSportsApiFp)(this.configuration).getAllSports(requestParameters.getAllSportsRequest, options).then((request) => request(this.axios, this.basePath));
4593
+ getUserRolesInClubs(options) {
4594
+ return (0, exports.StaffProfileApiFp)(this.configuration).getUserRolesInClubs(options).then((request) => request(this.axios, this.basePath));
3831
4595
  }
3832
4596
  }
3833
- exports.StaffSportsApi = StaffSportsApi;
4597
+ exports.StaffProfileApi = StaffProfileApi;
3834
4598
  /**
3835
4599
  * UserApi - axios parameter creator
3836
4600
  * @export
3837
4601
  */
3838
4602
  const UserApiAxiosParamCreator = function (configuration) {
3839
4603
  return {
3840
- /**
3841
- *
3842
- * @summary Abonne l\'utilisateur connecté à un club
3843
- * @param {SubscribeToClubRequestBody} subscribeToClubRequestBody
3844
- * @param {*} [options] Override http request option.
3845
- * @throws {RequiredError}
3846
- */
3847
- subscribeToClub: (subscribeToClubRequestBody_1, ...args_1) => __awaiter(this, [subscribeToClubRequestBody_1, ...args_1], void 0, function* (subscribeToClubRequestBody, options = {}) {
3848
- // verify required parameter 'subscribeToClubRequestBody' is not null or undefined
3849
- (0, common_1.assertParamExists)('subscribeToClub', 'subscribeToClubRequestBody', subscribeToClubRequestBody);
3850
- const localVarPath = `/api/users/me/subscribe`;
3851
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
3852
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3853
- let baseOptions;
3854
- if (configuration) {
3855
- baseOptions = configuration.baseOptions;
3856
- }
3857
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
3858
- const localVarHeaderParameter = {};
3859
- const localVarQueryParameter = {};
3860
- // authentication bearerAuth required
3861
- // http bearer authentication required
3862
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
3863
- localVarHeaderParameter['Content-Type'] = 'application/json';
3864
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3865
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3866
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3867
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(subscribeToClubRequestBody, localVarRequestOptions, configuration);
3868
- return {
3869
- url: (0, common_1.toPathString)(localVarUrlObj),
3870
- options: localVarRequestOptions,
3871
- };
3872
- }),
3873
4604
  /**
3874
4605
  *
3875
4606
  * @summary Met à jour le Customer Stripe de l\'utilisateur
@@ -3913,22 +4644,6 @@ exports.UserApiAxiosParamCreator = UserApiAxiosParamCreator;
3913
4644
  const UserApiFp = function (configuration) {
3914
4645
  const localVarAxiosParamCreator = (0, exports.UserApiAxiosParamCreator)(configuration);
3915
4646
  return {
3916
- /**
3917
- *
3918
- * @summary Abonne l\'utilisateur connecté à un club
3919
- * @param {SubscribeToClubRequestBody} subscribeToClubRequestBody
3920
- * @param {*} [options] Override http request option.
3921
- * @throws {RequiredError}
3922
- */
3923
- subscribeToClub(subscribeToClubRequestBody, options) {
3924
- return __awaiter(this, void 0, void 0, function* () {
3925
- var _a, _b, _c;
3926
- const localVarAxiosArgs = yield localVarAxiosParamCreator.subscribeToClub(subscribeToClubRequestBody, options);
3927
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3928
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserApi.subscribeToClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3929
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3930
- });
3931
- },
3932
4647
  /**
3933
4648
  *
3934
4649
  * @summary Met à jour le Customer Stripe de l\'utilisateur
@@ -3955,16 +4670,6 @@ exports.UserApiFp = UserApiFp;
3955
4670
  const UserApiFactory = function (configuration, basePath, axios) {
3956
4671
  const localVarFp = (0, exports.UserApiFp)(configuration);
3957
4672
  return {
3958
- /**
3959
- *
3960
- * @summary Abonne l\'utilisateur connecté à un club
3961
- * @param {UserApiSubscribeToClubRequest} requestParameters Request parameters.
3962
- * @param {*} [options] Override http request option.
3963
- * @throws {RequiredError}
3964
- */
3965
- subscribeToClub(requestParameters, options) {
3966
- return localVarFp.subscribeToClub(requestParameters.subscribeToClubRequestBody, options).then((request) => request(axios, basePath));
3967
- },
3968
4673
  /**
3969
4674
  *
3970
4675
  * @summary Met à jour le Customer Stripe de l\'utilisateur
@@ -3985,17 +4690,6 @@ exports.UserApiFactory = UserApiFactory;
3985
4690
  * @extends {BaseAPI}
3986
4691
  */
3987
4692
  class UserApi extends base_1.BaseAPI {
3988
- /**
3989
- *
3990
- * @summary Abonne l\'utilisateur connecté à un club
3991
- * @param {UserApiSubscribeToClubRequest} requestParameters Request parameters.
3992
- * @param {*} [options] Override http request option.
3993
- * @throws {RequiredError}
3994
- * @memberof UserApi
3995
- */
3996
- subscribeToClub(requestParameters, options) {
3997
- return (0, exports.UserApiFp)(this.configuration).subscribeToClub(requestParameters.subscribeToClubRequestBody, options).then((request) => request(this.axios, this.basePath));
3998
- }
3999
4693
  /**
4000
4694
  *
4001
4695
  * @summary Met à jour le Customer Stripe de l\'utilisateur
@@ -5103,6 +5797,39 @@ exports.UserClubsApi = UserClubsApi;
5103
5797
  */
5104
5798
  const UserPaymentApiAxiosParamCreator = function (configuration) {
5105
5799
  return {
5800
+ /**
5801
+ *
5802
+ * @summary Ajoute une méthode de paiement Stripe à la liste de l\'utilisateur
5803
+ * @param {AddPaymentMethodSetupRequestBody} addPaymentMethodSetupRequestBody
5804
+ * @param {*} [options] Override http request option.
5805
+ * @throws {RequiredError}
5806
+ */
5807
+ addPaymentMethodSetup: (addPaymentMethodSetupRequestBody_1, ...args_1) => __awaiter(this, [addPaymentMethodSetupRequestBody_1, ...args_1], void 0, function* (addPaymentMethodSetupRequestBody, options = {}) {
5808
+ // verify required parameter 'addPaymentMethodSetupRequestBody' is not null or undefined
5809
+ (0, common_1.assertParamExists)('addPaymentMethodSetup', 'addPaymentMethodSetupRequestBody', addPaymentMethodSetupRequestBody);
5810
+ const localVarPath = `/api/users/addPaymentMethodSetup`;
5811
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5812
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
5813
+ let baseOptions;
5814
+ if (configuration) {
5815
+ baseOptions = configuration.baseOptions;
5816
+ }
5817
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
5818
+ const localVarHeaderParameter = {};
5819
+ const localVarQueryParameter = {};
5820
+ // authentication bearerAuth required
5821
+ // http bearer authentication required
5822
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
5823
+ localVarHeaderParameter['Content-Type'] = 'application/json';
5824
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
5825
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5826
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5827
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(addPaymentMethodSetupRequestBody, localVarRequestOptions, configuration);
5828
+ return {
5829
+ url: (0, common_1.toPathString)(localVarUrlObj),
5830
+ options: localVarRequestOptions,
5831
+ };
5832
+ }),
5106
5833
  /**
5107
5834
  * Confirme que la méthode de paiement a été configurée avec succès et la sauvegarde pour l\'utilisateur
5108
5835
  * @summary Confirme la configuration d\'une méthode de paiement
@@ -5179,6 +5906,22 @@ exports.UserPaymentApiAxiosParamCreator = UserPaymentApiAxiosParamCreator;
5179
5906
  const UserPaymentApiFp = function (configuration) {
5180
5907
  const localVarAxiosParamCreator = (0, exports.UserPaymentApiAxiosParamCreator)(configuration);
5181
5908
  return {
5909
+ /**
5910
+ *
5911
+ * @summary Ajoute une méthode de paiement Stripe à la liste de l\'utilisateur
5912
+ * @param {AddPaymentMethodSetupRequestBody} addPaymentMethodSetupRequestBody
5913
+ * @param {*} [options] Override http request option.
5914
+ * @throws {RequiredError}
5915
+ */
5916
+ addPaymentMethodSetup(addPaymentMethodSetupRequestBody, options) {
5917
+ return __awaiter(this, void 0, void 0, function* () {
5918
+ var _a, _b, _c;
5919
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.addPaymentMethodSetup(addPaymentMethodSetupRequestBody, options);
5920
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5921
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserPaymentApi.addPaymentMethodSetup']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5922
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5923
+ });
5924
+ },
5182
5925
  /**
5183
5926
  * Confirme que la méthode de paiement a été configurée avec succès et la sauvegarde pour l\'utilisateur
5184
5927
  * @summary Confirme la configuration d\'une méthode de paiement
@@ -5221,6 +5964,16 @@ exports.UserPaymentApiFp = UserPaymentApiFp;
5221
5964
  const UserPaymentApiFactory = function (configuration, basePath, axios) {
5222
5965
  const localVarFp = (0, exports.UserPaymentApiFp)(configuration);
5223
5966
  return {
5967
+ /**
5968
+ *
5969
+ * @summary Ajoute une méthode de paiement Stripe à la liste de l\'utilisateur
5970
+ * @param {UserPaymentApiAddPaymentMethodSetupRequest} requestParameters Request parameters.
5971
+ * @param {*} [options] Override http request option.
5972
+ * @throws {RequiredError}
5973
+ */
5974
+ addPaymentMethodSetup(requestParameters, options) {
5975
+ return localVarFp.addPaymentMethodSetup(requestParameters.addPaymentMethodSetupRequestBody, options).then((request) => request(axios, basePath));
5976
+ },
5224
5977
  /**
5225
5978
  * Confirme que la méthode de paiement a été configurée avec succès et la sauvegarde pour l\'utilisateur
5226
5979
  * @summary Confirme la configuration d\'une méthode de paiement
@@ -5251,6 +6004,17 @@ exports.UserPaymentApiFactory = UserPaymentApiFactory;
5251
6004
  * @extends {BaseAPI}
5252
6005
  */
5253
6006
  class UserPaymentApi extends base_1.BaseAPI {
6007
+ /**
6008
+ *
6009
+ * @summary Ajoute une méthode de paiement Stripe à la liste de l\'utilisateur
6010
+ * @param {UserPaymentApiAddPaymentMethodSetupRequest} requestParameters Request parameters.
6011
+ * @param {*} [options] Override http request option.
6012
+ * @throws {RequiredError}
6013
+ * @memberof UserPaymentApi
6014
+ */
6015
+ addPaymentMethodSetup(requestParameters, options) {
6016
+ return (0, exports.UserPaymentApiFp)(this.configuration).addPaymentMethodSetup(requestParameters.addPaymentMethodSetupRequestBody, options).then((request) => request(this.axios, this.basePath));
6017
+ }
5254
6018
  /**
5255
6019
  * Confirme que la méthode de paiement a été configurée avec succès et la sauvegarde pour l\'utilisateur
5256
6020
  * @summary Confirme la configuration d\'une méthode de paiement
@@ -5354,6 +6118,34 @@ const UserProfileApiAxiosParamCreator = function (configuration) {
5354
6118
  options: localVarRequestOptions,
5355
6119
  };
5356
6120
  }),
6121
+ /**
6122
+ *
6123
+ * @summary Récupère l\'URL de la photo de profil de l\'utilisateur connecté
6124
+ * @param {*} [options] Override http request option.
6125
+ * @throws {RequiredError}
6126
+ */
6127
+ getProfilePicture: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
6128
+ const localVarPath = `/api/users/me/profile-picture`;
6129
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6130
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
6131
+ let baseOptions;
6132
+ if (configuration) {
6133
+ baseOptions = configuration.baseOptions;
6134
+ }
6135
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
6136
+ const localVarHeaderParameter = {};
6137
+ const localVarQueryParameter = {};
6138
+ // authentication bearerAuth required
6139
+ // http bearer authentication required
6140
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
6141
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
6142
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6143
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6144
+ return {
6145
+ url: (0, common_1.toPathString)(localVarUrlObj),
6146
+ options: localVarRequestOptions,
6147
+ };
6148
+ }),
5357
6149
  /**
5358
6150
  *
5359
6151
  * @summary Récupère les informations de l\'utilisateur connecté
@@ -5382,6 +6174,72 @@ const UserProfileApiAxiosParamCreator = function (configuration) {
5382
6174
  options: localVarRequestOptions,
5383
6175
  };
5384
6176
  }),
6177
+ /**
6178
+ *
6179
+ * @summary Met à jour le tableau levelBySports de l\'utilisateur connecté
6180
+ * @param {UpdateLevelBySportsRequestBody} updateLevelBySportsRequestBody
6181
+ * @param {*} [options] Override http request option.
6182
+ * @throws {RequiredError}
6183
+ */
6184
+ updateLevelBySports: (updateLevelBySportsRequestBody_1, ...args_1) => __awaiter(this, [updateLevelBySportsRequestBody_1, ...args_1], void 0, function* (updateLevelBySportsRequestBody, options = {}) {
6185
+ // verify required parameter 'updateLevelBySportsRequestBody' is not null or undefined
6186
+ (0, common_1.assertParamExists)('updateLevelBySports', 'updateLevelBySportsRequestBody', updateLevelBySportsRequestBody);
6187
+ const localVarPath = `/api/users/me/level-by-sports`;
6188
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6189
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
6190
+ let baseOptions;
6191
+ if (configuration) {
6192
+ baseOptions = configuration.baseOptions;
6193
+ }
6194
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
6195
+ const localVarHeaderParameter = {};
6196
+ const localVarQueryParameter = {};
6197
+ // authentication bearerAuth required
6198
+ // http bearer authentication required
6199
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
6200
+ localVarHeaderParameter['Content-Type'] = 'application/json';
6201
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
6202
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6203
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6204
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateLevelBySportsRequestBody, localVarRequestOptions, configuration);
6205
+ return {
6206
+ url: (0, common_1.toPathString)(localVarUrlObj),
6207
+ options: localVarRequestOptions,
6208
+ };
6209
+ }),
6210
+ /**
6211
+ *
6212
+ * @summary Met à jour l\'URL de la photo de profil de l\'utilisateur connecté
6213
+ * @param {UpdateProfilePictureRequestBody} updateProfilePictureRequestBody
6214
+ * @param {*} [options] Override http request option.
6215
+ * @throws {RequiredError}
6216
+ */
6217
+ updateProfilePicture: (updateProfilePictureRequestBody_1, ...args_1) => __awaiter(this, [updateProfilePictureRequestBody_1, ...args_1], void 0, function* (updateProfilePictureRequestBody, options = {}) {
6218
+ // verify required parameter 'updateProfilePictureRequestBody' is not null or undefined
6219
+ (0, common_1.assertParamExists)('updateProfilePicture', 'updateProfilePictureRequestBody', updateProfilePictureRequestBody);
6220
+ const localVarPath = `/api/users/me/profile-picture`;
6221
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6222
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
6223
+ let baseOptions;
6224
+ if (configuration) {
6225
+ baseOptions = configuration.baseOptions;
6226
+ }
6227
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
6228
+ const localVarHeaderParameter = {};
6229
+ const localVarQueryParameter = {};
6230
+ // authentication bearerAuth required
6231
+ // http bearer authentication required
6232
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
6233
+ localVarHeaderParameter['Content-Type'] = 'application/json';
6234
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
6235
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6236
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6237
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateProfilePictureRequestBody, localVarRequestOptions, configuration);
6238
+ return {
6239
+ url: (0, common_1.toPathString)(localVarUrlObj),
6240
+ options: localVarRequestOptions,
6241
+ };
6242
+ }),
5385
6243
  /**
5386
6244
  *
5387
6245
  * @summary Met à jour les données de l\'utilisateur connecté
@@ -5459,6 +6317,21 @@ const UserProfileApiFp = function (configuration) {
5459
6317
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5460
6318
  });
5461
6319
  },
6320
+ /**
6321
+ *
6322
+ * @summary Récupère l\'URL de la photo de profil de l\'utilisateur connecté
6323
+ * @param {*} [options] Override http request option.
6324
+ * @throws {RequiredError}
6325
+ */
6326
+ getProfilePicture(options) {
6327
+ return __awaiter(this, void 0, void 0, function* () {
6328
+ var _a, _b, _c;
6329
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getProfilePicture(options);
6330
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
6331
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserProfileApi.getProfilePicture']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
6332
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6333
+ });
6334
+ },
5462
6335
  /**
5463
6336
  *
5464
6337
  * @summary Récupère les informations de l\'utilisateur connecté
@@ -5474,6 +6347,38 @@ const UserProfileApiFp = function (configuration) {
5474
6347
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5475
6348
  });
5476
6349
  },
6350
+ /**
6351
+ *
6352
+ * @summary Met à jour le tableau levelBySports de l\'utilisateur connecté
6353
+ * @param {UpdateLevelBySportsRequestBody} updateLevelBySportsRequestBody
6354
+ * @param {*} [options] Override http request option.
6355
+ * @throws {RequiredError}
6356
+ */
6357
+ updateLevelBySports(updateLevelBySportsRequestBody, options) {
6358
+ return __awaiter(this, void 0, void 0, function* () {
6359
+ var _a, _b, _c;
6360
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateLevelBySports(updateLevelBySportsRequestBody, options);
6361
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
6362
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserProfileApi.updateLevelBySports']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
6363
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6364
+ });
6365
+ },
6366
+ /**
6367
+ *
6368
+ * @summary Met à jour l\'URL de la photo de profil de l\'utilisateur connecté
6369
+ * @param {UpdateProfilePictureRequestBody} updateProfilePictureRequestBody
6370
+ * @param {*} [options] Override http request option.
6371
+ * @throws {RequiredError}
6372
+ */
6373
+ updateProfilePicture(updateProfilePictureRequestBody, options) {
6374
+ return __awaiter(this, void 0, void 0, function* () {
6375
+ var _a, _b, _c;
6376
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateProfilePicture(updateProfilePictureRequestBody, options);
6377
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
6378
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserProfileApi.updateProfilePicture']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
6379
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6380
+ });
6381
+ },
5477
6382
  /**
5478
6383
  *
5479
6384
  * @summary Met à jour les données de l\'utilisateur connecté
@@ -5520,6 +6425,15 @@ const UserProfileApiFactory = function (configuration, basePath, axios) {
5520
6425
  getAllUsers(requestParameters = {}, options) {
5521
6426
  return localVarFp.getAllUsers(requestParameters.limit, requestParameters.skip, requestParameters.search, options).then((request) => request(axios, basePath));
5522
6427
  },
6428
+ /**
6429
+ *
6430
+ * @summary Récupère l\'URL de la photo de profil de l\'utilisateur connecté
6431
+ * @param {*} [options] Override http request option.
6432
+ * @throws {RequiredError}
6433
+ */
6434
+ getProfilePicture(options) {
6435
+ return localVarFp.getProfilePicture(options).then((request) => request(axios, basePath));
6436
+ },
5523
6437
  /**
5524
6438
  *
5525
6439
  * @summary Récupère les informations de l\'utilisateur connecté
@@ -5529,6 +6443,26 @@ const UserProfileApiFactory = function (configuration, basePath, axios) {
5529
6443
  getUserInfo(options) {
5530
6444
  return localVarFp.getUserInfo(options).then((request) => request(axios, basePath));
5531
6445
  },
6446
+ /**
6447
+ *
6448
+ * @summary Met à jour le tableau levelBySports de l\'utilisateur connecté
6449
+ * @param {UserProfileApiUpdateLevelBySportsRequest} requestParameters Request parameters.
6450
+ * @param {*} [options] Override http request option.
6451
+ * @throws {RequiredError}
6452
+ */
6453
+ updateLevelBySports(requestParameters, options) {
6454
+ return localVarFp.updateLevelBySports(requestParameters.updateLevelBySportsRequestBody, options).then((request) => request(axios, basePath));
6455
+ },
6456
+ /**
6457
+ *
6458
+ * @summary Met à jour l\'URL de la photo de profil de l\'utilisateur connecté
6459
+ * @param {UserProfileApiUpdateProfilePictureRequest} requestParameters Request parameters.
6460
+ * @param {*} [options] Override http request option.
6461
+ * @throws {RequiredError}
6462
+ */
6463
+ updateProfilePicture(requestParameters, options) {
6464
+ return localVarFp.updateProfilePicture(requestParameters.updateProfilePictureRequestBody, options).then((request) => request(axios, basePath));
6465
+ },
5532
6466
  /**
5533
6467
  *
5534
6468
  * @summary Met à jour les données de l\'utilisateur connecté
@@ -5571,6 +6505,16 @@ class UserProfileApi extends base_1.BaseAPI {
5571
6505
  getAllUsers(requestParameters = {}, options) {
5572
6506
  return (0, exports.UserProfileApiFp)(this.configuration).getAllUsers(requestParameters.limit, requestParameters.skip, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
5573
6507
  }
6508
+ /**
6509
+ *
6510
+ * @summary Récupère l\'URL de la photo de profil de l\'utilisateur connecté
6511
+ * @param {*} [options] Override http request option.
6512
+ * @throws {RequiredError}
6513
+ * @memberof UserProfileApi
6514
+ */
6515
+ getProfilePicture(options) {
6516
+ return (0, exports.UserProfileApiFp)(this.configuration).getProfilePicture(options).then((request) => request(this.axios, this.basePath));
6517
+ }
5574
6518
  /**
5575
6519
  *
5576
6520
  * @summary Récupère les informations de l\'utilisateur connecté
@@ -5581,6 +6525,28 @@ class UserProfileApi extends base_1.BaseAPI {
5581
6525
  getUserInfo(options) {
5582
6526
  return (0, exports.UserProfileApiFp)(this.configuration).getUserInfo(options).then((request) => request(this.axios, this.basePath));
5583
6527
  }
6528
+ /**
6529
+ *
6530
+ * @summary Met à jour le tableau levelBySports de l\'utilisateur connecté
6531
+ * @param {UserProfileApiUpdateLevelBySportsRequest} requestParameters Request parameters.
6532
+ * @param {*} [options] Override http request option.
6533
+ * @throws {RequiredError}
6534
+ * @memberof UserProfileApi
6535
+ */
6536
+ updateLevelBySports(requestParameters, options) {
6537
+ return (0, exports.UserProfileApiFp)(this.configuration).updateLevelBySports(requestParameters.updateLevelBySportsRequestBody, options).then((request) => request(this.axios, this.basePath));
6538
+ }
6539
+ /**
6540
+ *
6541
+ * @summary Met à jour l\'URL de la photo de profil de l\'utilisateur connecté
6542
+ * @param {UserProfileApiUpdateProfilePictureRequest} requestParameters Request parameters.
6543
+ * @param {*} [options] Override http request option.
6544
+ * @throws {RequiredError}
6545
+ * @memberof UserProfileApi
6546
+ */
6547
+ updateProfilePicture(requestParameters, options) {
6548
+ return (0, exports.UserProfileApiFp)(this.configuration).updateProfilePicture(requestParameters.updateProfilePictureRequestBody, options).then((request) => request(this.axios, this.basePath));
6549
+ }
5584
6550
  /**
5585
6551
  *
5586
6552
  * @summary Met à jour les données de l\'utilisateur connecté