@tennac-booking/sdk 1.0.11 → 1.0.13

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 (81) hide show
  1. package/.openapi-generator/FILES +71 -0
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +111 -1
  4. package/api.ts +7434 -279
  5. package/common.ts +4 -4
  6. package/dist/api.d.ts +5034 -236
  7. package/dist/api.js +4004 -49
  8. package/dist/esm/api.d.ts +5034 -236
  9. package/dist/esm/api.js +3967 -48
  10. package/docs/ActiveClub.md +22 -0
  11. package/docs/ActiveClubListResponse.md +20 -0
  12. package/docs/AddClubMemberRequest.md +22 -0
  13. package/docs/AddClubMemberResponse.md +22 -0
  14. package/docs/BlockSlotResponse.md +22 -0
  15. package/docs/BookingResponse.md +28 -0
  16. package/docs/BookingsApi.md +120 -0
  17. package/docs/Club.md +46 -0
  18. package/docs/ClubCourtsApi.md +118 -0
  19. package/docs/ClubInfoResponse.md +46 -0
  20. package/docs/ClubListResponse.md +22 -0
  21. package/docs/ClubMember.md +34 -0
  22. package/docs/ClubMembersResponse.md +22 -0
  23. package/docs/ClubResponse.md +46 -0
  24. package/docs/ClubRole.md +30 -0
  25. package/docs/ClubRoleResponse.md +30 -0
  26. package/docs/ClubRolesApi.md +268 -0
  27. package/docs/ClubRolesResponse.md +22 -0
  28. package/docs/ClubSettings.md +28 -0
  29. package/docs/ClubSettingsApi.md +227 -0
  30. package/docs/ClubSlotsApi.md +353 -0
  31. package/docs/ClubSportsApi.md +118 -0
  32. package/docs/ClubSubscriptionsApi.md +408 -0
  33. package/docs/ClubsApi.md +478 -0
  34. package/docs/CourtResponse.md +44 -0
  35. package/docs/CourtsResponse.md +22 -0
  36. package/docs/CreateBookingRequest.md +28 -0
  37. package/docs/CreateClubRequest.md +38 -0
  38. package/docs/CreateClubRoleRequestBody.md +24 -0
  39. package/docs/CreateCourtRequest.md +34 -0
  40. package/docs/CreatePriceRequest.md +26 -0
  41. package/docs/CreateSportRequest.md +22 -0
  42. package/docs/CreateSubscriptionPlanRequest.md +24 -0
  43. package/docs/DeleteClub200Response.md +20 -0
  44. package/docs/DeleteClubRole200Response.md +20 -0
  45. package/docs/DeleteSlotsByClubInRange200Response.md +20 -0
  46. package/docs/GenerateSlotsForNextThreeWeeks201Response.md +20 -0
  47. package/docs/GetActiveClubs200Response.md +20 -0
  48. package/docs/GetAllSportsRequest.md +20 -0
  49. package/docs/GetClubSettingsRequest.md +20 -0
  50. package/docs/GetUserRolesResponse.md +20 -0
  51. package/docs/GetUserRolesResponseRolesInner.md +28 -0
  52. package/docs/GetUserSubscriptionsResponse.md +22 -0
  53. package/docs/GoogleSignInRequestBody.md +20 -0
  54. package/docs/GoogleSignInResponse.md +30 -0
  55. package/docs/InitiateSubscriptionSessionRequestBody.md +26 -0
  56. package/docs/InitiateSubscriptionSessionResponse.md +22 -0
  57. package/docs/PaymentMethod.md +11 -0
  58. package/docs/PlayerWithPaymentMethod.md +22 -0
  59. package/docs/PriceResponse.md +38 -0
  60. package/docs/RestoreSubscriptionPlanForClub200Response.md +20 -0
  61. package/docs/SlotResponse.md +40 -0
  62. package/docs/SlotsResponse.md +22 -0
  63. package/docs/Sport.md +24 -0
  64. package/docs/SportResponse.md +34 -0
  65. package/docs/SportsApi.md +229 -0
  66. package/docs/SportsResponse.md +22 -0
  67. package/docs/SubscribeToClubRequestBody.md +22 -0
  68. package/docs/SubscriptionPlan.md +36 -0
  69. package/docs/SubscriptionPlanResponse.md +36 -0
  70. package/docs/SubscriptionResponse.md +36 -0
  71. package/docs/UpdateClubRequest.md +40 -0
  72. package/docs/UpdateClubRoleRequestBody.md +24 -0
  73. package/docs/UpdateCustomerRequestBody.md +26 -0
  74. package/docs/UpdateCustomerRequestBodyAddress.md +30 -0
  75. package/docs/UpdateCustomerResponse.md +22 -0
  76. package/docs/UpdateCustomerResponseCustomer.md +28 -0
  77. package/docs/UpdateSportRequest.md +20 -0
  78. package/docs/UpdateSubscriptionPlanRequest.md +24 -0
  79. package/docs/UpdateSubscriptionPlanResponse.md +22 -0
  80. package/docs/UsersApi.md +491 -21
  81. package/package.json +1 -33
package/dist/api.js CHANGED
@@ -22,7 +22,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
22
22
  });
23
23
  };
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
- exports.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = exports.StripeStatus = exports.CourtStatus = exports.BookingStatus = void 0;
25
+ exports.GetAllUsersIsLookingForPartnerEnum = exports.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = exports.SportsApi = exports.SportsApiFactory = exports.SportsApiFp = exports.SportsApiAxiosParamCreator = exports.ClubsApi = exports.ClubsApiFactory = exports.ClubsApiFp = exports.ClubsApiAxiosParamCreator = exports.ClubSubscriptionsApi = exports.ClubSubscriptionsApiFactory = exports.ClubSubscriptionsApiFp = exports.ClubSubscriptionsApiAxiosParamCreator = exports.ClubSportsApi = exports.ClubSportsApiFactory = exports.ClubSportsApiFp = exports.ClubSportsApiAxiosParamCreator = exports.ClubSlotsApi = exports.ClubSlotsApiFactory = exports.ClubSlotsApiFp = exports.ClubSlotsApiAxiosParamCreator = exports.ClubSettingsApi = exports.ClubSettingsApiFactory = exports.ClubSettingsApiFp = exports.ClubSettingsApiAxiosParamCreator = exports.ClubRolesApi = exports.ClubRolesApiFactory = exports.ClubRolesApiFp = exports.ClubRolesApiAxiosParamCreator = exports.ClubCourtsApi = exports.ClubCourtsApiFactory = exports.ClubCourtsApiFp = exports.ClubCourtsApiAxiosParamCreator = exports.BookingsApi = exports.BookingsApiFactory = exports.BookingsApiFp = exports.BookingsApiAxiosParamCreator = exports.SubscriptionResponseStatusEnum = exports.StripeStatus = exports.PriceResponseIntervalEnum = exports.PaymentMethod = exports.CreatePriceRequestIntervalEnum = exports.CourtStatus = exports.BookingStatus = void 0;
26
26
  const axios_1 = require("axios");
27
27
  // Some imports not used depending on template conditions
28
28
  // @ts-ignore
@@ -47,6 +47,27 @@ exports.CourtStatus = {
47
47
  Available: 'available',
48
48
  Unavailable: 'unavailable'
49
49
  };
50
+ exports.CreatePriceRequestIntervalEnum = {
51
+ Day: 'day',
52
+ Week: 'week',
53
+ Month: 'month',
54
+ Year: 'year'
55
+ };
56
+ /**
57
+ * Méthode de paiement
58
+ * @export
59
+ * @enum {string}
60
+ */
61
+ exports.PaymentMethod = {
62
+ Online: 'online',
63
+ Onsite: 'onsite'
64
+ };
65
+ exports.PriceResponseIntervalEnum = {
66
+ Day: 'day',
67
+ Week: 'week',
68
+ Month: 'month',
69
+ Year: 'year'
70
+ };
50
71
  /**
51
72
  *
52
73
  * @export
@@ -59,30 +80,3638 @@ exports.StripeStatus = {
59
80
  Refunded: 'refunded',
60
81
  Canceled: 'canceled'
61
82
  };
83
+ exports.SubscriptionResponseStatusEnum = {
84
+ Active: 'active',
85
+ Canceled: 'canceled',
86
+ Incomplete: 'incomplete',
87
+ IncompleteExpired: 'incomplete_expired',
88
+ PastDue: 'past_due',
89
+ Trialing: 'trialing',
90
+ Unpaid: 'unpaid'
91
+ };
62
92
  /**
63
- * UsersApi - axios parameter creator
93
+ * BookingsApi - axios parameter creator
64
94
  * @export
65
95
  */
66
- const UsersApiAxiosParamCreator = function (configuration) {
96
+ const BookingsApiAxiosParamCreator = function (configuration) {
97
+ return {
98
+ /**
99
+ * Crée une nouvelle réservation avec gestion des paiements (créateur paie tout ou paiement divisé)
100
+ * @summary Créer une réservation
101
+ * @param {CreateBookingRequest} createBookingRequest
102
+ * @param {*} [options] Override http request option.
103
+ * @throws {RequiredError}
104
+ */
105
+ bookingsPost: (createBookingRequest_1, ...args_1) => __awaiter(this, [createBookingRequest_1, ...args_1], void 0, function* (createBookingRequest, options = {}) {
106
+ // verify required parameter 'createBookingRequest' is not null or undefined
107
+ (0, common_1.assertParamExists)('bookingsPost', 'createBookingRequest', createBookingRequest);
108
+ const localVarPath = `/bookings`;
109
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
110
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
111
+ let baseOptions;
112
+ if (configuration) {
113
+ baseOptions = configuration.baseOptions;
114
+ }
115
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
116
+ const localVarHeaderParameter = {};
117
+ const localVarQueryParameter = {};
118
+ // authentication bearerAuth required
119
+ // http bearer authentication required
120
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
121
+ localVarHeaderParameter['Content-Type'] = 'application/json';
122
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
123
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
124
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
125
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createBookingRequest, localVarRequestOptions, configuration);
126
+ return {
127
+ url: (0, common_1.toPathString)(localVarUrlObj),
128
+ options: localVarRequestOptions,
129
+ };
130
+ }),
131
+ /**
132
+ * Bloque temporairement un créneau pour éviter les réservations simultanées pendant le processus de réservation
133
+ * @summary Bloquer un créneau
134
+ * @param {string} slotId ID MongoDB du créneau à bloquer
135
+ * @param {*} [options] Override http request option.
136
+ * @throws {RequiredError}
137
+ */
138
+ bookingsPreBookSlotIdPatch: (slotId_1, ...args_1) => __awaiter(this, [slotId_1, ...args_1], void 0, function* (slotId, options = {}) {
139
+ // verify required parameter 'slotId' is not null or undefined
140
+ (0, common_1.assertParamExists)('bookingsPreBookSlotIdPatch', 'slotId', slotId);
141
+ const localVarPath = `/bookings/pre-book/{slotId}`
142
+ .replace(`{${"slotId"}}`, encodeURIComponent(String(slotId)));
143
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
144
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
145
+ let baseOptions;
146
+ if (configuration) {
147
+ baseOptions = configuration.baseOptions;
148
+ }
149
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
150
+ const localVarHeaderParameter = {};
151
+ const localVarQueryParameter = {};
152
+ // authentication bearerAuth required
153
+ // http bearer authentication required
154
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
155
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
156
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
157
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
158
+ return {
159
+ url: (0, common_1.toPathString)(localVarUrlObj),
160
+ options: localVarRequestOptions,
161
+ };
162
+ }),
163
+ };
164
+ };
165
+ exports.BookingsApiAxiosParamCreator = BookingsApiAxiosParamCreator;
166
+ /**
167
+ * BookingsApi - functional programming interface
168
+ * @export
169
+ */
170
+ const BookingsApiFp = function (configuration) {
171
+ const localVarAxiosParamCreator = (0, exports.BookingsApiAxiosParamCreator)(configuration);
172
+ return {
173
+ /**
174
+ * Crée une nouvelle réservation avec gestion des paiements (créateur paie tout ou paiement divisé)
175
+ * @summary Créer une réservation
176
+ * @param {CreateBookingRequest} createBookingRequest
177
+ * @param {*} [options] Override http request option.
178
+ * @throws {RequiredError}
179
+ */
180
+ bookingsPost(createBookingRequest, options) {
181
+ return __awaiter(this, void 0, void 0, function* () {
182
+ var _a, _b, _c;
183
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.bookingsPost(createBookingRequest, options);
184
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
185
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsApi.bookingsPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
186
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
187
+ });
188
+ },
189
+ /**
190
+ * Bloque temporairement un créneau pour éviter les réservations simultanées pendant le processus de réservation
191
+ * @summary Bloquer un créneau
192
+ * @param {string} slotId ID MongoDB du créneau à bloquer
193
+ * @param {*} [options] Override http request option.
194
+ * @throws {RequiredError}
195
+ */
196
+ bookingsPreBookSlotIdPatch(slotId, options) {
197
+ return __awaiter(this, void 0, void 0, function* () {
198
+ var _a, _b, _c;
199
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.bookingsPreBookSlotIdPatch(slotId, options);
200
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
201
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsApi.bookingsPreBookSlotIdPatch']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
202
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
203
+ });
204
+ },
205
+ };
206
+ };
207
+ exports.BookingsApiFp = BookingsApiFp;
208
+ /**
209
+ * BookingsApi - factory interface
210
+ * @export
211
+ */
212
+ const BookingsApiFactory = function (configuration, basePath, axios) {
213
+ const localVarFp = (0, exports.BookingsApiFp)(configuration);
214
+ return {
215
+ /**
216
+ * Crée une nouvelle réservation avec gestion des paiements (créateur paie tout ou paiement divisé)
217
+ * @summary Créer une réservation
218
+ * @param {BookingsApiBookingsPostRequest} requestParameters Request parameters.
219
+ * @param {*} [options] Override http request option.
220
+ * @throws {RequiredError}
221
+ */
222
+ bookingsPost(requestParameters, options) {
223
+ return localVarFp.bookingsPost(requestParameters.createBookingRequest, options).then((request) => request(axios, basePath));
224
+ },
225
+ /**
226
+ * Bloque temporairement un créneau pour éviter les réservations simultanées pendant le processus de réservation
227
+ * @summary Bloquer un créneau
228
+ * @param {BookingsApiBookingsPreBookSlotIdPatchRequest} requestParameters Request parameters.
229
+ * @param {*} [options] Override http request option.
230
+ * @throws {RequiredError}
231
+ */
232
+ bookingsPreBookSlotIdPatch(requestParameters, options) {
233
+ return localVarFp.bookingsPreBookSlotIdPatch(requestParameters.slotId, options).then((request) => request(axios, basePath));
234
+ },
235
+ };
236
+ };
237
+ exports.BookingsApiFactory = BookingsApiFactory;
238
+ /**
239
+ * BookingsApi - object-oriented interface
240
+ * @export
241
+ * @class BookingsApi
242
+ * @extends {BaseAPI}
243
+ */
244
+ class BookingsApi extends base_1.BaseAPI {
245
+ /**
246
+ * Crée une nouvelle réservation avec gestion des paiements (créateur paie tout ou paiement divisé)
247
+ * @summary Créer une réservation
248
+ * @param {BookingsApiBookingsPostRequest} requestParameters Request parameters.
249
+ * @param {*} [options] Override http request option.
250
+ * @throws {RequiredError}
251
+ * @memberof BookingsApi
252
+ */
253
+ bookingsPost(requestParameters, options) {
254
+ return (0, exports.BookingsApiFp)(this.configuration).bookingsPost(requestParameters.createBookingRequest, options).then((request) => request(this.axios, this.basePath));
255
+ }
256
+ /**
257
+ * Bloque temporairement un créneau pour éviter les réservations simultanées pendant le processus de réservation
258
+ * @summary Bloquer un créneau
259
+ * @param {BookingsApiBookingsPreBookSlotIdPatchRequest} requestParameters Request parameters.
260
+ * @param {*} [options] Override http request option.
261
+ * @throws {RequiredError}
262
+ * @memberof BookingsApi
263
+ */
264
+ bookingsPreBookSlotIdPatch(requestParameters, options) {
265
+ return (0, exports.BookingsApiFp)(this.configuration).bookingsPreBookSlotIdPatch(requestParameters.slotId, options).then((request) => request(this.axios, this.basePath));
266
+ }
267
+ }
268
+ exports.BookingsApi = BookingsApi;
269
+ /**
270
+ * ClubCourtsApi - axios parameter creator
271
+ * @export
272
+ */
273
+ const ClubCourtsApiAxiosParamCreator = function (configuration) {
274
+ return {
275
+ /**
276
+ *
277
+ * @summary Créer un terrain pour un club
278
+ * @param {string} id ID du club
279
+ * @param {CreateCourtRequest} createCourtRequest
280
+ * @param {*} [options] Override http request option.
281
+ * @throws {RequiredError}
282
+ */
283
+ createCourtForClub: (id_1, createCourtRequest_1, ...args_1) => __awaiter(this, [id_1, createCourtRequest_1, ...args_1], void 0, function* (id, createCourtRequest, options = {}) {
284
+ // verify required parameter 'id' is not null or undefined
285
+ (0, common_1.assertParamExists)('createCourtForClub', 'id', id);
286
+ // verify required parameter 'createCourtRequest' is not null or undefined
287
+ (0, common_1.assertParamExists)('createCourtForClub', 'createCourtRequest', createCourtRequest);
288
+ const localVarPath = `/api/clubs/{id}/courts`
289
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
290
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
291
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
292
+ let baseOptions;
293
+ if (configuration) {
294
+ baseOptions = configuration.baseOptions;
295
+ }
296
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
297
+ const localVarHeaderParameter = {};
298
+ const localVarQueryParameter = {};
299
+ // authentication bearerAuth required
300
+ // http bearer authentication required
301
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
302
+ localVarHeaderParameter['Content-Type'] = 'application/json';
303
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
304
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
305
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
306
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createCourtRequest, localVarRequestOptions, configuration);
307
+ return {
308
+ url: (0, common_1.toPathString)(localVarUrlObj),
309
+ options: localVarRequestOptions,
310
+ };
311
+ }),
312
+ /**
313
+ *
314
+ * @summary Récupérer tous les terrains pour un club
315
+ * @param {string} id ID du club
316
+ * @param {*} [options] Override http request option.
317
+ * @throws {RequiredError}
318
+ */
319
+ getCourtsByClub: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
320
+ // verify required parameter 'id' is not null or undefined
321
+ (0, common_1.assertParamExists)('getCourtsByClub', 'id', id);
322
+ const localVarPath = `/api/clubs/{id}/courts`
323
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
324
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
325
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
326
+ let baseOptions;
327
+ if (configuration) {
328
+ baseOptions = configuration.baseOptions;
329
+ }
330
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
331
+ const localVarHeaderParameter = {};
332
+ const localVarQueryParameter = {};
333
+ // authentication bearerAuth required
334
+ // http bearer authentication required
335
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
336
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
337
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
338
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
339
+ return {
340
+ url: (0, common_1.toPathString)(localVarUrlObj),
341
+ options: localVarRequestOptions,
342
+ };
343
+ }),
344
+ };
345
+ };
346
+ exports.ClubCourtsApiAxiosParamCreator = ClubCourtsApiAxiosParamCreator;
347
+ /**
348
+ * ClubCourtsApi - functional programming interface
349
+ * @export
350
+ */
351
+ const ClubCourtsApiFp = function (configuration) {
352
+ const localVarAxiosParamCreator = (0, exports.ClubCourtsApiAxiosParamCreator)(configuration);
353
+ return {
354
+ /**
355
+ *
356
+ * @summary Créer un terrain pour un club
357
+ * @param {string} id ID du club
358
+ * @param {CreateCourtRequest} createCourtRequest
359
+ * @param {*} [options] Override http request option.
360
+ * @throws {RequiredError}
361
+ */
362
+ createCourtForClub(id, createCourtRequest, options) {
363
+ return __awaiter(this, void 0, void 0, function* () {
364
+ var _a, _b, _c;
365
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createCourtForClub(id, createCourtRequest, options);
366
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
367
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubCourtsApi.createCourtForClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
368
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
369
+ });
370
+ },
371
+ /**
372
+ *
373
+ * @summary Récupérer tous les terrains pour un club
374
+ * @param {string} id ID du club
375
+ * @param {*} [options] Override http request option.
376
+ * @throws {RequiredError}
377
+ */
378
+ getCourtsByClub(id, options) {
379
+ return __awaiter(this, void 0, void 0, function* () {
380
+ var _a, _b, _c;
381
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getCourtsByClub(id, options);
382
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
383
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubCourtsApi.getCourtsByClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
384
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
385
+ });
386
+ },
387
+ };
388
+ };
389
+ exports.ClubCourtsApiFp = ClubCourtsApiFp;
390
+ /**
391
+ * ClubCourtsApi - factory interface
392
+ * @export
393
+ */
394
+ const ClubCourtsApiFactory = function (configuration, basePath, axios) {
395
+ const localVarFp = (0, exports.ClubCourtsApiFp)(configuration);
396
+ return {
397
+ /**
398
+ *
399
+ * @summary Créer un terrain pour un club
400
+ * @param {ClubCourtsApiCreateCourtForClubRequest} requestParameters Request parameters.
401
+ * @param {*} [options] Override http request option.
402
+ * @throws {RequiredError}
403
+ */
404
+ createCourtForClub(requestParameters, options) {
405
+ return localVarFp.createCourtForClub(requestParameters.id, requestParameters.createCourtRequest, options).then((request) => request(axios, basePath));
406
+ },
407
+ /**
408
+ *
409
+ * @summary Récupérer tous les terrains pour un club
410
+ * @param {ClubCourtsApiGetCourtsByClubRequest} requestParameters Request parameters.
411
+ * @param {*} [options] Override http request option.
412
+ * @throws {RequiredError}
413
+ */
414
+ getCourtsByClub(requestParameters, options) {
415
+ return localVarFp.getCourtsByClub(requestParameters.id, options).then((request) => request(axios, basePath));
416
+ },
417
+ };
418
+ };
419
+ exports.ClubCourtsApiFactory = ClubCourtsApiFactory;
420
+ /**
421
+ * ClubCourtsApi - object-oriented interface
422
+ * @export
423
+ * @class ClubCourtsApi
424
+ * @extends {BaseAPI}
425
+ */
426
+ class ClubCourtsApi extends base_1.BaseAPI {
427
+ /**
428
+ *
429
+ * @summary Créer un terrain pour un club
430
+ * @param {ClubCourtsApiCreateCourtForClubRequest} requestParameters Request parameters.
431
+ * @param {*} [options] Override http request option.
432
+ * @throws {RequiredError}
433
+ * @memberof ClubCourtsApi
434
+ */
435
+ createCourtForClub(requestParameters, options) {
436
+ return (0, exports.ClubCourtsApiFp)(this.configuration).createCourtForClub(requestParameters.id, requestParameters.createCourtRequest, options).then((request) => request(this.axios, this.basePath));
437
+ }
438
+ /**
439
+ *
440
+ * @summary Récupérer tous les terrains pour un club
441
+ * @param {ClubCourtsApiGetCourtsByClubRequest} requestParameters Request parameters.
442
+ * @param {*} [options] Override http request option.
443
+ * @throws {RequiredError}
444
+ * @memberof ClubCourtsApi
445
+ */
446
+ getCourtsByClub(requestParameters, options) {
447
+ return (0, exports.ClubCourtsApiFp)(this.configuration).getCourtsByClub(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
448
+ }
449
+ }
450
+ exports.ClubCourtsApi = ClubCourtsApi;
451
+ /**
452
+ * ClubRolesApi - axios parameter creator
453
+ * @export
454
+ */
455
+ const ClubRolesApiAxiosParamCreator = function (configuration) {
67
456
  return {
68
457
  /**
69
458
  *
70
- * @summary Modifie le mot de passe de l\'utilisateur connecté
71
- * @param {ChangePasswordRequestBody} changePasswordRequestBody
459
+ * @summary Crée un nouveau rôle de club
460
+ * @param {CreateClubRoleRequestBody} createClubRoleRequestBody
461
+ * @param {*} [options] Override http request option.
462
+ * @throws {RequiredError}
463
+ */
464
+ createClubRole: (createClubRoleRequestBody_1, ...args_1) => __awaiter(this, [createClubRoleRequestBody_1, ...args_1], void 0, function* (createClubRoleRequestBody, options = {}) {
465
+ // verify required parameter 'createClubRoleRequestBody' is not null or undefined
466
+ (0, common_1.assertParamExists)('createClubRole', 'createClubRoleRequestBody', createClubRoleRequestBody);
467
+ const localVarPath = `/api/club-roles`;
468
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
469
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
470
+ let baseOptions;
471
+ if (configuration) {
472
+ baseOptions = configuration.baseOptions;
473
+ }
474
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
475
+ const localVarHeaderParameter = {};
476
+ const localVarQueryParameter = {};
477
+ // authentication bearerAuth required
478
+ // http bearer authentication required
479
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
480
+ localVarHeaderParameter['Content-Type'] = 'application/json';
481
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
482
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
483
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
484
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createClubRoleRequestBody, localVarRequestOptions, configuration);
485
+ return {
486
+ url: (0, common_1.toPathString)(localVarUrlObj),
487
+ options: localVarRequestOptions,
488
+ };
489
+ }),
490
+ /**
491
+ *
492
+ * @summary Supprime un rôle de club
493
+ * @param {string} id ID du rôle de club
494
+ * @param {*} [options] Override http request option.
495
+ * @throws {RequiredError}
496
+ */
497
+ deleteClubRole: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
498
+ // verify required parameter 'id' is not null or undefined
499
+ (0, common_1.assertParamExists)('deleteClubRole', 'id', id);
500
+ const localVarPath = `/api/club-roles/{id}`
501
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
502
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
503
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
504
+ let baseOptions;
505
+ if (configuration) {
506
+ baseOptions = configuration.baseOptions;
507
+ }
508
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
509
+ const localVarHeaderParameter = {};
510
+ const localVarQueryParameter = {};
511
+ // authentication bearerAuth required
512
+ // http bearer authentication required
513
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
514
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
515
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
516
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
517
+ return {
518
+ url: (0, common_1.toPathString)(localVarUrlObj),
519
+ options: localVarRequestOptions,
520
+ };
521
+ }),
522
+ /**
523
+ *
524
+ * @summary Récupère tous les rôles de clubs
525
+ * @param {*} [options] Override http request option.
526
+ * @throws {RequiredError}
527
+ */
528
+ getAllClubRoles: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
529
+ const localVarPath = `/api/club-roles`;
530
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
531
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
532
+ let baseOptions;
533
+ if (configuration) {
534
+ baseOptions = configuration.baseOptions;
535
+ }
536
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
537
+ const localVarHeaderParameter = {};
538
+ const localVarQueryParameter = {};
539
+ // authentication bearerAuth required
540
+ // http bearer authentication required
541
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
542
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
543
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
544
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
545
+ return {
546
+ url: (0, common_1.toPathString)(localVarUrlObj),
547
+ options: localVarRequestOptions,
548
+ };
549
+ }),
550
+ /**
551
+ *
552
+ * @summary Récupère un rôle de club par son ID
553
+ * @param {string} id ID du rôle de club
554
+ * @param {*} [options] Override http request option.
555
+ * @throws {RequiredError}
556
+ */
557
+ getClubRoleById: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
558
+ // verify required parameter 'id' is not null or undefined
559
+ (0, common_1.assertParamExists)('getClubRoleById', 'id', id);
560
+ const localVarPath = `/api/club-roles/{id}`
561
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
562
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
563
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
564
+ let baseOptions;
565
+ if (configuration) {
566
+ baseOptions = configuration.baseOptions;
567
+ }
568
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
569
+ const localVarHeaderParameter = {};
570
+ const localVarQueryParameter = {};
571
+ // authentication bearerAuth required
572
+ // http bearer authentication required
573
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
574
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
575
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
576
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
577
+ return {
578
+ url: (0, common_1.toPathString)(localVarUrlObj),
579
+ options: localVarRequestOptions,
580
+ };
581
+ }),
582
+ /**
583
+ *
584
+ * @summary Met à jour un rôle de club
585
+ * @param {string} id ID du rôle de club
586
+ * @param {UpdateClubRoleRequestBody} updateClubRoleRequestBody
587
+ * @param {*} [options] Override http request option.
588
+ * @throws {RequiredError}
589
+ */
590
+ updateClubRole: (id_1, updateClubRoleRequestBody_1, ...args_1) => __awaiter(this, [id_1, updateClubRoleRequestBody_1, ...args_1], void 0, function* (id, updateClubRoleRequestBody, options = {}) {
591
+ // verify required parameter 'id' is not null or undefined
592
+ (0, common_1.assertParamExists)('updateClubRole', 'id', id);
593
+ // verify required parameter 'updateClubRoleRequestBody' is not null or undefined
594
+ (0, common_1.assertParamExists)('updateClubRole', 'updateClubRoleRequestBody', updateClubRoleRequestBody);
595
+ const localVarPath = `/api/club-roles/{id}`
596
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
597
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
598
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
599
+ let baseOptions;
600
+ if (configuration) {
601
+ baseOptions = configuration.baseOptions;
602
+ }
603
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
604
+ const localVarHeaderParameter = {};
605
+ const localVarQueryParameter = {};
606
+ // authentication bearerAuth required
607
+ // http bearer authentication required
608
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
609
+ localVarHeaderParameter['Content-Type'] = 'application/json';
610
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
611
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
612
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
613
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateClubRoleRequestBody, localVarRequestOptions, configuration);
614
+ return {
615
+ url: (0, common_1.toPathString)(localVarUrlObj),
616
+ options: localVarRequestOptions,
617
+ };
618
+ }),
619
+ };
620
+ };
621
+ exports.ClubRolesApiAxiosParamCreator = ClubRolesApiAxiosParamCreator;
622
+ /**
623
+ * ClubRolesApi - functional programming interface
624
+ * @export
625
+ */
626
+ const ClubRolesApiFp = function (configuration) {
627
+ const localVarAxiosParamCreator = (0, exports.ClubRolesApiAxiosParamCreator)(configuration);
628
+ return {
629
+ /**
630
+ *
631
+ * @summary Crée un nouveau rôle de club
632
+ * @param {CreateClubRoleRequestBody} createClubRoleRequestBody
633
+ * @param {*} [options] Override http request option.
634
+ * @throws {RequiredError}
635
+ */
636
+ createClubRole(createClubRoleRequestBody, options) {
637
+ return __awaiter(this, void 0, void 0, function* () {
638
+ var _a, _b, _c;
639
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createClubRole(createClubRoleRequestBody, options);
640
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
641
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubRolesApi.createClubRole']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
642
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
643
+ });
644
+ },
645
+ /**
646
+ *
647
+ * @summary Supprime un rôle de club
648
+ * @param {string} id ID du rôle de club
649
+ * @param {*} [options] Override http request option.
650
+ * @throws {RequiredError}
651
+ */
652
+ deleteClubRole(id, options) {
653
+ return __awaiter(this, void 0, void 0, function* () {
654
+ var _a, _b, _c;
655
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteClubRole(id, options);
656
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
657
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubRolesApi.deleteClubRole']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
658
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
659
+ });
660
+ },
661
+ /**
662
+ *
663
+ * @summary Récupère tous les rôles de clubs
664
+ * @param {*} [options] Override http request option.
665
+ * @throws {RequiredError}
666
+ */
667
+ getAllClubRoles(options) {
668
+ return __awaiter(this, void 0, void 0, function* () {
669
+ var _a, _b, _c;
670
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getAllClubRoles(options);
671
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
672
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubRolesApi.getAllClubRoles']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
673
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
674
+ });
675
+ },
676
+ /**
677
+ *
678
+ * @summary Récupère un rôle de club par son ID
679
+ * @param {string} id ID du rôle de club
680
+ * @param {*} [options] Override http request option.
681
+ * @throws {RequiredError}
682
+ */
683
+ getClubRoleById(id, options) {
684
+ return __awaiter(this, void 0, void 0, function* () {
685
+ var _a, _b, _c;
686
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubRoleById(id, options);
687
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
688
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubRolesApi.getClubRoleById']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
689
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
690
+ });
691
+ },
692
+ /**
693
+ *
694
+ * @summary Met à jour un rôle de club
695
+ * @param {string} id ID du rôle de club
696
+ * @param {UpdateClubRoleRequestBody} updateClubRoleRequestBody
697
+ * @param {*} [options] Override http request option.
698
+ * @throws {RequiredError}
699
+ */
700
+ updateClubRole(id, updateClubRoleRequestBody, options) {
701
+ return __awaiter(this, void 0, void 0, function* () {
702
+ var _a, _b, _c;
703
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateClubRole(id, updateClubRoleRequestBody, 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['ClubRolesApi.updateClubRole']) === 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.ClubRolesApiFp = ClubRolesApiFp;
712
+ /**
713
+ * ClubRolesApi - factory interface
714
+ * @export
715
+ */
716
+ const ClubRolesApiFactory = function (configuration, basePath, axios) {
717
+ const localVarFp = (0, exports.ClubRolesApiFp)(configuration);
718
+ return {
719
+ /**
720
+ *
721
+ * @summary Crée un nouveau rôle de club
722
+ * @param {ClubRolesApiCreateClubRoleRequest} requestParameters Request parameters.
723
+ * @param {*} [options] Override http request option.
724
+ * @throws {RequiredError}
725
+ */
726
+ createClubRole(requestParameters, options) {
727
+ return localVarFp.createClubRole(requestParameters.createClubRoleRequestBody, options).then((request) => request(axios, basePath));
728
+ },
729
+ /**
730
+ *
731
+ * @summary Supprime un rôle de club
732
+ * @param {ClubRolesApiDeleteClubRoleRequest} requestParameters Request parameters.
733
+ * @param {*} [options] Override http request option.
734
+ * @throws {RequiredError}
735
+ */
736
+ deleteClubRole(requestParameters, options) {
737
+ return localVarFp.deleteClubRole(requestParameters.id, options).then((request) => request(axios, basePath));
738
+ },
739
+ /**
740
+ *
741
+ * @summary Récupère tous les rôles de clubs
742
+ * @param {*} [options] Override http request option.
743
+ * @throws {RequiredError}
744
+ */
745
+ getAllClubRoles(options) {
746
+ return localVarFp.getAllClubRoles(options).then((request) => request(axios, basePath));
747
+ },
748
+ /**
749
+ *
750
+ * @summary Récupère un rôle de club par son ID
751
+ * @param {ClubRolesApiGetClubRoleByIdRequest} requestParameters Request parameters.
752
+ * @param {*} [options] Override http request option.
753
+ * @throws {RequiredError}
754
+ */
755
+ getClubRoleById(requestParameters, options) {
756
+ return localVarFp.getClubRoleById(requestParameters.id, options).then((request) => request(axios, basePath));
757
+ },
758
+ /**
759
+ *
760
+ * @summary Met à jour un rôle de club
761
+ * @param {ClubRolesApiUpdateClubRoleRequest} requestParameters Request parameters.
762
+ * @param {*} [options] Override http request option.
763
+ * @throws {RequiredError}
764
+ */
765
+ updateClubRole(requestParameters, options) {
766
+ return localVarFp.updateClubRole(requestParameters.id, requestParameters.updateClubRoleRequestBody, options).then((request) => request(axios, basePath));
767
+ },
768
+ };
769
+ };
770
+ exports.ClubRolesApiFactory = ClubRolesApiFactory;
771
+ /**
772
+ * ClubRolesApi - object-oriented interface
773
+ * @export
774
+ * @class ClubRolesApi
775
+ * @extends {BaseAPI}
776
+ */
777
+ class ClubRolesApi extends base_1.BaseAPI {
778
+ /**
779
+ *
780
+ * @summary Crée un nouveau rôle de club
781
+ * @param {ClubRolesApiCreateClubRoleRequest} requestParameters Request parameters.
782
+ * @param {*} [options] Override http request option.
783
+ * @throws {RequiredError}
784
+ * @memberof ClubRolesApi
785
+ */
786
+ createClubRole(requestParameters, options) {
787
+ return (0, exports.ClubRolesApiFp)(this.configuration).createClubRole(requestParameters.createClubRoleRequestBody, options).then((request) => request(this.axios, this.basePath));
788
+ }
789
+ /**
790
+ *
791
+ * @summary Supprime un rôle de club
792
+ * @param {ClubRolesApiDeleteClubRoleRequest} requestParameters Request parameters.
793
+ * @param {*} [options] Override http request option.
794
+ * @throws {RequiredError}
795
+ * @memberof ClubRolesApi
796
+ */
797
+ deleteClubRole(requestParameters, options) {
798
+ return (0, exports.ClubRolesApiFp)(this.configuration).deleteClubRole(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
799
+ }
800
+ /**
801
+ *
802
+ * @summary Récupère tous les rôles de clubs
803
+ * @param {*} [options] Override http request option.
804
+ * @throws {RequiredError}
805
+ * @memberof ClubRolesApi
806
+ */
807
+ getAllClubRoles(options) {
808
+ return (0, exports.ClubRolesApiFp)(this.configuration).getAllClubRoles(options).then((request) => request(this.axios, this.basePath));
809
+ }
810
+ /**
811
+ *
812
+ * @summary Récupère un rôle de club par son ID
813
+ * @param {ClubRolesApiGetClubRoleByIdRequest} requestParameters Request parameters.
814
+ * @param {*} [options] Override http request option.
815
+ * @throws {RequiredError}
816
+ * @memberof ClubRolesApi
817
+ */
818
+ getClubRoleById(requestParameters, options) {
819
+ return (0, exports.ClubRolesApiFp)(this.configuration).getClubRoleById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
820
+ }
821
+ /**
822
+ *
823
+ * @summary Met à jour un rôle de club
824
+ * @param {ClubRolesApiUpdateClubRoleRequest} requestParameters Request parameters.
825
+ * @param {*} [options] Override http request option.
826
+ * @throws {RequiredError}
827
+ * @memberof ClubRolesApi
828
+ */
829
+ updateClubRole(requestParameters, options) {
830
+ return (0, exports.ClubRolesApiFp)(this.configuration).updateClubRole(requestParameters.id, requestParameters.updateClubRoleRequestBody, options).then((request) => request(this.axios, this.basePath));
831
+ }
832
+ }
833
+ exports.ClubRolesApi = ClubRolesApi;
834
+ /**
835
+ * ClubSettingsApi - axios parameter creator
836
+ * @export
837
+ */
838
+ const ClubSettingsApiAxiosParamCreator = function (configuration) {
839
+ return {
840
+ /**
841
+ *
842
+ * @summary Crée les paramètres d’un club
843
+ * @param {ClubSettings} clubSettings
844
+ * @param {*} [options] Override http request option.
845
+ * @throws {RequiredError}
846
+ */
847
+ createClubSettings: (clubSettings_1, ...args_1) => __awaiter(this, [clubSettings_1, ...args_1], void 0, function* (clubSettings, options = {}) {
848
+ // verify required parameter 'clubSettings' is not null or undefined
849
+ (0, common_1.assertParamExists)('createClubSettings', 'clubSettings', clubSettings);
850
+ const localVarPath = `/api/club-settings`;
851
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
852
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
853
+ let baseOptions;
854
+ if (configuration) {
855
+ baseOptions = configuration.baseOptions;
856
+ }
857
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
858
+ const localVarHeaderParameter = {};
859
+ const localVarQueryParameter = {};
860
+ // authentication bearerAuth required
861
+ // http bearer authentication required
862
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
863
+ localVarHeaderParameter['Content-Type'] = 'application/json';
864
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
865
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
866
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
867
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(clubSettings, localVarRequestOptions, configuration);
868
+ return {
869
+ url: (0, common_1.toPathString)(localVarUrlObj),
870
+ options: localVarRequestOptions,
871
+ };
872
+ }),
873
+ /**
874
+ *
875
+ * @summary Supprime les paramètres d’un club
876
+ * @param {GetClubSettingsRequest} getClubSettingsRequest
877
+ * @param {*} [options] Override http request option.
878
+ * @throws {RequiredError}
879
+ */
880
+ deleteClubSettings: (getClubSettingsRequest_1, ...args_1) => __awaiter(this, [getClubSettingsRequest_1, ...args_1], void 0, function* (getClubSettingsRequest, options = {}) {
881
+ // verify required parameter 'getClubSettingsRequest' is not null or undefined
882
+ (0, common_1.assertParamExists)('deleteClubSettings', 'getClubSettingsRequest', getClubSettingsRequest);
883
+ const localVarPath = `/api/club-settings`;
884
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
885
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
886
+ let baseOptions;
887
+ if (configuration) {
888
+ baseOptions = configuration.baseOptions;
889
+ }
890
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
891
+ const localVarHeaderParameter = {};
892
+ const localVarQueryParameter = {};
893
+ // authentication bearerAuth required
894
+ // http bearer authentication required
895
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
896
+ localVarHeaderParameter['Content-Type'] = 'application/json';
897
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
898
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
899
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
900
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(getClubSettingsRequest, localVarRequestOptions, configuration);
901
+ return {
902
+ url: (0, common_1.toPathString)(localVarUrlObj),
903
+ options: localVarRequestOptions,
904
+ };
905
+ }),
906
+ /**
907
+ *
908
+ * @summary Récupère les paramètres d’un club
909
+ * @param {GetClubSettingsRequest} getClubSettingsRequest
910
+ * @param {*} [options] Override http request option.
911
+ * @throws {RequiredError}
912
+ */
913
+ getClubSettings: (getClubSettingsRequest_1, ...args_1) => __awaiter(this, [getClubSettingsRequest_1, ...args_1], void 0, function* (getClubSettingsRequest, options = {}) {
914
+ // verify required parameter 'getClubSettingsRequest' is not null or undefined
915
+ (0, common_1.assertParamExists)('getClubSettings', 'getClubSettingsRequest', getClubSettingsRequest);
916
+ const localVarPath = `/api/club-settings`;
917
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
918
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
919
+ let baseOptions;
920
+ if (configuration) {
921
+ baseOptions = configuration.baseOptions;
922
+ }
923
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
924
+ const localVarHeaderParameter = {};
925
+ const localVarQueryParameter = {};
926
+ // authentication bearerAuth required
927
+ // http bearer authentication required
928
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
929
+ localVarHeaderParameter['Content-Type'] = 'application/json';
930
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
931
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
932
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
933
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(getClubSettingsRequest, localVarRequestOptions, configuration);
934
+ return {
935
+ url: (0, common_1.toPathString)(localVarUrlObj),
936
+ options: localVarRequestOptions,
937
+ };
938
+ }),
939
+ /**
940
+ *
941
+ * @summary Met à jour les paramètres d’un club
942
+ * @param {ClubSettings} clubSettings
943
+ * @param {*} [options] Override http request option.
944
+ * @throws {RequiredError}
945
+ */
946
+ updateClubSettings: (clubSettings_1, ...args_1) => __awaiter(this, [clubSettings_1, ...args_1], void 0, function* (clubSettings, options = {}) {
947
+ // verify required parameter 'clubSettings' is not null or undefined
948
+ (0, common_1.assertParamExists)('updateClubSettings', 'clubSettings', clubSettings);
949
+ const localVarPath = `/api/club-settings`;
950
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
951
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
952
+ let baseOptions;
953
+ if (configuration) {
954
+ baseOptions = configuration.baseOptions;
955
+ }
956
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
957
+ const localVarHeaderParameter = {};
958
+ const localVarQueryParameter = {};
959
+ // authentication bearerAuth required
960
+ // http bearer authentication required
961
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
962
+ localVarHeaderParameter['Content-Type'] = 'application/json';
963
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
964
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
965
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
966
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(clubSettings, localVarRequestOptions, configuration);
967
+ return {
968
+ url: (0, common_1.toPathString)(localVarUrlObj),
969
+ options: localVarRequestOptions,
970
+ };
971
+ }),
972
+ };
973
+ };
974
+ exports.ClubSettingsApiAxiosParamCreator = ClubSettingsApiAxiosParamCreator;
975
+ /**
976
+ * ClubSettingsApi - functional programming interface
977
+ * @export
978
+ */
979
+ const ClubSettingsApiFp = function (configuration) {
980
+ const localVarAxiosParamCreator = (0, exports.ClubSettingsApiAxiosParamCreator)(configuration);
981
+ return {
982
+ /**
983
+ *
984
+ * @summary Crée les paramètres d’un club
985
+ * @param {ClubSettings} clubSettings
986
+ * @param {*} [options] Override http request option.
987
+ * @throws {RequiredError}
988
+ */
989
+ createClubSettings(clubSettings, options) {
990
+ return __awaiter(this, void 0, void 0, function* () {
991
+ var _a, _b, _c;
992
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createClubSettings(clubSettings, options);
993
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
994
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubSettingsApi.createClubSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
995
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
996
+ });
997
+ },
998
+ /**
999
+ *
1000
+ * @summary Supprime les paramètres d’un club
1001
+ * @param {GetClubSettingsRequest} getClubSettingsRequest
1002
+ * @param {*} [options] Override http request option.
1003
+ * @throws {RequiredError}
1004
+ */
1005
+ deleteClubSettings(getClubSettingsRequest, options) {
1006
+ return __awaiter(this, void 0, void 0, function* () {
1007
+ var _a, _b, _c;
1008
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteClubSettings(getClubSettingsRequest, options);
1009
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1010
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubSettingsApi.deleteClubSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1011
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1012
+ });
1013
+ },
1014
+ /**
1015
+ *
1016
+ * @summary Récupère les paramètres d’un club
1017
+ * @param {GetClubSettingsRequest} getClubSettingsRequest
1018
+ * @param {*} [options] Override http request option.
1019
+ * @throws {RequiredError}
1020
+ */
1021
+ getClubSettings(getClubSettingsRequest, options) {
1022
+ return __awaiter(this, void 0, void 0, function* () {
1023
+ var _a, _b, _c;
1024
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubSettings(getClubSettingsRequest, options);
1025
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1026
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubSettingsApi.getClubSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1027
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1028
+ });
1029
+ },
1030
+ /**
1031
+ *
1032
+ * @summary Met à jour les paramètres d’un club
1033
+ * @param {ClubSettings} clubSettings
1034
+ * @param {*} [options] Override http request option.
1035
+ * @throws {RequiredError}
1036
+ */
1037
+ updateClubSettings(clubSettings, options) {
1038
+ return __awaiter(this, void 0, void 0, function* () {
1039
+ var _a, _b, _c;
1040
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateClubSettings(clubSettings, options);
1041
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1042
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubSettingsApi.updateClubSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1043
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1044
+ });
1045
+ },
1046
+ };
1047
+ };
1048
+ exports.ClubSettingsApiFp = ClubSettingsApiFp;
1049
+ /**
1050
+ * ClubSettingsApi - factory interface
1051
+ * @export
1052
+ */
1053
+ const ClubSettingsApiFactory = function (configuration, basePath, axios) {
1054
+ const localVarFp = (0, exports.ClubSettingsApiFp)(configuration);
1055
+ return {
1056
+ /**
1057
+ *
1058
+ * @summary Crée les paramètres d’un club
1059
+ * @param {ClubSettingsApiCreateClubSettingsRequest} requestParameters Request parameters.
1060
+ * @param {*} [options] Override http request option.
1061
+ * @throws {RequiredError}
1062
+ */
1063
+ createClubSettings(requestParameters, options) {
1064
+ return localVarFp.createClubSettings(requestParameters.clubSettings, options).then((request) => request(axios, basePath));
1065
+ },
1066
+ /**
1067
+ *
1068
+ * @summary Supprime les paramètres d’un club
1069
+ * @param {ClubSettingsApiDeleteClubSettingsRequest} requestParameters Request parameters.
1070
+ * @param {*} [options] Override http request option.
1071
+ * @throws {RequiredError}
1072
+ */
1073
+ deleteClubSettings(requestParameters, options) {
1074
+ return localVarFp.deleteClubSettings(requestParameters.getClubSettingsRequest, options).then((request) => request(axios, basePath));
1075
+ },
1076
+ /**
1077
+ *
1078
+ * @summary Récupère les paramètres d’un club
1079
+ * @param {ClubSettingsApiGetClubSettingsRequest} requestParameters Request parameters.
1080
+ * @param {*} [options] Override http request option.
1081
+ * @throws {RequiredError}
1082
+ */
1083
+ getClubSettings(requestParameters, options) {
1084
+ return localVarFp.getClubSettings(requestParameters.getClubSettingsRequest, options).then((request) => request(axios, basePath));
1085
+ },
1086
+ /**
1087
+ *
1088
+ * @summary Met à jour les paramètres d’un club
1089
+ * @param {ClubSettingsApiUpdateClubSettingsRequest} requestParameters Request parameters.
1090
+ * @param {*} [options] Override http request option.
1091
+ * @throws {RequiredError}
1092
+ */
1093
+ updateClubSettings(requestParameters, options) {
1094
+ return localVarFp.updateClubSettings(requestParameters.clubSettings, options).then((request) => request(axios, basePath));
1095
+ },
1096
+ };
1097
+ };
1098
+ exports.ClubSettingsApiFactory = ClubSettingsApiFactory;
1099
+ /**
1100
+ * ClubSettingsApi - object-oriented interface
1101
+ * @export
1102
+ * @class ClubSettingsApi
1103
+ * @extends {BaseAPI}
1104
+ */
1105
+ class ClubSettingsApi extends base_1.BaseAPI {
1106
+ /**
1107
+ *
1108
+ * @summary Crée les paramètres d’un club
1109
+ * @param {ClubSettingsApiCreateClubSettingsRequest} requestParameters Request parameters.
1110
+ * @param {*} [options] Override http request option.
1111
+ * @throws {RequiredError}
1112
+ * @memberof ClubSettingsApi
1113
+ */
1114
+ createClubSettings(requestParameters, options) {
1115
+ return (0, exports.ClubSettingsApiFp)(this.configuration).createClubSettings(requestParameters.clubSettings, options).then((request) => request(this.axios, this.basePath));
1116
+ }
1117
+ /**
1118
+ *
1119
+ * @summary Supprime les paramètres d’un club
1120
+ * @param {ClubSettingsApiDeleteClubSettingsRequest} requestParameters Request parameters.
1121
+ * @param {*} [options] Override http request option.
1122
+ * @throws {RequiredError}
1123
+ * @memberof ClubSettingsApi
1124
+ */
1125
+ deleteClubSettings(requestParameters, options) {
1126
+ return (0, exports.ClubSettingsApiFp)(this.configuration).deleteClubSettings(requestParameters.getClubSettingsRequest, options).then((request) => request(this.axios, this.basePath));
1127
+ }
1128
+ /**
1129
+ *
1130
+ * @summary Récupère les paramètres d’un club
1131
+ * @param {ClubSettingsApiGetClubSettingsRequest} requestParameters Request parameters.
1132
+ * @param {*} [options] Override http request option.
1133
+ * @throws {RequiredError}
1134
+ * @memberof ClubSettingsApi
1135
+ */
1136
+ getClubSettings(requestParameters, options) {
1137
+ return (0, exports.ClubSettingsApiFp)(this.configuration).getClubSettings(requestParameters.getClubSettingsRequest, options).then((request) => request(this.axios, this.basePath));
1138
+ }
1139
+ /**
1140
+ *
1141
+ * @summary Met à jour les paramètres d’un club
1142
+ * @param {ClubSettingsApiUpdateClubSettingsRequest} requestParameters Request parameters.
1143
+ * @param {*} [options] Override http request option.
1144
+ * @throws {RequiredError}
1145
+ * @memberof ClubSettingsApi
1146
+ */
1147
+ updateClubSettings(requestParameters, options) {
1148
+ return (0, exports.ClubSettingsApiFp)(this.configuration).updateClubSettings(requestParameters.clubSettings, options).then((request) => request(this.axios, this.basePath));
1149
+ }
1150
+ }
1151
+ exports.ClubSettingsApi = ClubSettingsApi;
1152
+ /**
1153
+ * ClubSlotsApi - axios parameter creator
1154
+ * @export
1155
+ */
1156
+ const ClubSlotsApiAxiosParamCreator = function (configuration) {
1157
+ return {
1158
+ /**
1159
+ *
1160
+ * @summary Supprimer des créneaux pour un club sur une plage de dates
1161
+ * @param {string} id ID du club
1162
+ * @param {string} start Date de début (format ISO)
1163
+ * @param {string} end Date de fin (format ISO)
1164
+ * @param {*} [options] Override http request option.
1165
+ * @throws {RequiredError}
1166
+ */
1167
+ 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 = {}) {
1168
+ // verify required parameter 'id' is not null or undefined
1169
+ (0, common_1.assertParamExists)('deleteSlotsByClubInRange', 'id', id);
1170
+ // verify required parameter 'start' is not null or undefined
1171
+ (0, common_1.assertParamExists)('deleteSlotsByClubInRange', 'start', start);
1172
+ // verify required parameter 'end' is not null or undefined
1173
+ (0, common_1.assertParamExists)('deleteSlotsByClubInRange', 'end', end);
1174
+ const localVarPath = `/api/clubs/{id}/slots`
1175
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
1176
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1177
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1178
+ let baseOptions;
1179
+ if (configuration) {
1180
+ baseOptions = configuration.baseOptions;
1181
+ }
1182
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
1183
+ const localVarHeaderParameter = {};
1184
+ const localVarQueryParameter = {};
1185
+ // authentication bearerAuth required
1186
+ // http bearer authentication required
1187
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1188
+ if (start !== undefined) {
1189
+ localVarQueryParameter['start'] = (start instanceof Date) ?
1190
+ start.toISOString() :
1191
+ start;
1192
+ }
1193
+ if (end !== undefined) {
1194
+ localVarQueryParameter['end'] = (end instanceof Date) ?
1195
+ end.toISOString() :
1196
+ end;
1197
+ }
1198
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1199
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1200
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1201
+ return {
1202
+ url: (0, common_1.toPathString)(localVarUrlObj),
1203
+ options: localVarRequestOptions,
1204
+ };
1205
+ }),
1206
+ /**
1207
+ *
1208
+ * @summary Générer les créneaux pour les 3 semaines à venir
1209
+ * @param {string} id ID du club
1210
+ * @param {*} [options] Override http request option.
1211
+ * @throws {RequiredError}
1212
+ */
1213
+ generateSlotsForNextThreeWeeks: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
1214
+ // verify required parameter 'id' is not null or undefined
1215
+ (0, common_1.assertParamExists)('generateSlotsForNextThreeWeeks', 'id', id);
1216
+ const localVarPath = `/api/clubs/{id}/generate-slots`
1217
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
1218
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1219
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1220
+ let baseOptions;
1221
+ if (configuration) {
1222
+ baseOptions = configuration.baseOptions;
1223
+ }
1224
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1225
+ const localVarHeaderParameter = {};
1226
+ const localVarQueryParameter = {};
1227
+ // authentication bearerAuth required
1228
+ // http bearer authentication required
1229
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1230
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1231
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1232
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1233
+ return {
1234
+ url: (0, common_1.toPathString)(localVarUrlObj),
1235
+ options: localVarRequestOptions,
1236
+ };
1237
+ }),
1238
+ /**
1239
+ *
1240
+ * @summary Obtenir tous les créneaux disponibles pour un club
1241
+ * @param {string} clubID ID du club
1242
+ * @param {*} [options] Override http request option.
1243
+ * @throws {RequiredError}
1244
+ */
1245
+ getAvailableSlotsByClub: (clubID_1, ...args_1) => __awaiter(this, [clubID_1, ...args_1], void 0, function* (clubID, options = {}) {
1246
+ // verify required parameter 'clubID' is not null or undefined
1247
+ (0, common_1.assertParamExists)('getAvailableSlotsByClub', 'clubID', clubID);
1248
+ const localVarPath = `/api/clubs/{clubID}/availableSlots/`
1249
+ .replace(`{${"clubID"}}`, encodeURIComponent(String(clubID)));
1250
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1251
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1252
+ let baseOptions;
1253
+ if (configuration) {
1254
+ baseOptions = configuration.baseOptions;
1255
+ }
1256
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1257
+ const localVarHeaderParameter = {};
1258
+ const localVarQueryParameter = {};
1259
+ // authentication bearerAuth required
1260
+ // http bearer authentication required
1261
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1262
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1263
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1264
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1265
+ return {
1266
+ url: (0, common_1.toPathString)(localVarUrlObj),
1267
+ options: localVarRequestOptions,
1268
+ };
1269
+ }),
1270
+ /**
1271
+ *
1272
+ * @summary Obtenir tous les slots disponibles pour un sport dans un club
1273
+ * @param {string} id ID du club
1274
+ * @param {string} sportId ID du sport
1275
+ * @param {string} [start] Date de début (format ISO)
1276
+ * @param {string} [end] Date de fin (format ISO)
1277
+ * @param {*} [options] Override http request option.
1278
+ * @throws {RequiredError}
1279
+ */
1280
+ getAvailableSlotsBySports: (id_1, sportId_1, start_1, end_1, ...args_1) => __awaiter(this, [id_1, sportId_1, start_1, end_1, ...args_1], void 0, function* (id, sportId, start, end, options = {}) {
1281
+ // verify required parameter 'id' is not null or undefined
1282
+ (0, common_1.assertParamExists)('getAvailableSlotsBySports', 'id', id);
1283
+ // verify required parameter 'sportId' is not null or undefined
1284
+ (0, common_1.assertParamExists)('getAvailableSlotsBySports', 'sportId', sportId);
1285
+ const localVarPath = `/api/clubs/{id}/sports/{sportId}/slots`
1286
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)))
1287
+ .replace(`{${"sportId"}}`, encodeURIComponent(String(sportId)));
1288
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1289
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1290
+ let baseOptions;
1291
+ if (configuration) {
1292
+ baseOptions = configuration.baseOptions;
1293
+ }
1294
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1295
+ const localVarHeaderParameter = {};
1296
+ const localVarQueryParameter = {};
1297
+ // authentication bearerAuth required
1298
+ // http bearer authentication required
1299
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1300
+ if (start !== undefined) {
1301
+ localVarQueryParameter['start'] = (start instanceof Date) ?
1302
+ start.toISOString() :
1303
+ start;
1304
+ }
1305
+ if (end !== undefined) {
1306
+ localVarQueryParameter['end'] = (end instanceof Date) ?
1307
+ end.toISOString() :
1308
+ end;
1309
+ }
1310
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1311
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1312
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1313
+ return {
1314
+ url: (0, common_1.toPathString)(localVarUrlObj),
1315
+ options: localVarRequestOptions,
1316
+ };
1317
+ }),
1318
+ /**
1319
+ *
1320
+ * @summary Obtenir les slots disponibles pour un jour donné
1321
+ * @param {string} id ID du club
1322
+ * @param {string} sportId ID du sport
1323
+ * @param {string} day Date du jour (format YYYY-MM-DD)
1324
+ * @param {*} [options] Override http request option.
1325
+ * @throws {RequiredError}
1326
+ */
1327
+ getAvailableSlotsBySportsAndDay: (id_1, sportId_1, day_1, ...args_1) => __awaiter(this, [id_1, sportId_1, day_1, ...args_1], void 0, function* (id, sportId, day, options = {}) {
1328
+ // verify required parameter 'id' is not null or undefined
1329
+ (0, common_1.assertParamExists)('getAvailableSlotsBySportsAndDay', 'id', id);
1330
+ // verify required parameter 'sportId' is not null or undefined
1331
+ (0, common_1.assertParamExists)('getAvailableSlotsBySportsAndDay', 'sportId', sportId);
1332
+ // verify required parameter 'day' is not null or undefined
1333
+ (0, common_1.assertParamExists)('getAvailableSlotsBySportsAndDay', 'day', day);
1334
+ const localVarPath = `/api/clubs/{id}/sports/{sportId}/slots/{day}`
1335
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)))
1336
+ .replace(`{${"sportId"}}`, encodeURIComponent(String(sportId)))
1337
+ .replace(`{${"day"}}`, encodeURIComponent(String(day)));
1338
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1339
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1340
+ let baseOptions;
1341
+ if (configuration) {
1342
+ baseOptions = configuration.baseOptions;
1343
+ }
1344
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1345
+ const localVarHeaderParameter = {};
1346
+ const localVarQueryParameter = {};
1347
+ // authentication bearerAuth required
1348
+ // http bearer authentication required
1349
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1350
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1351
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1352
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1353
+ return {
1354
+ url: (0, common_1.toPathString)(localVarUrlObj),
1355
+ options: localVarRequestOptions,
1356
+ };
1357
+ }),
1358
+ /**
1359
+ *
1360
+ * @summary Récupérer tous les créneaux pour un club
1361
+ * @param {string} id ID du club
1362
+ * @param {string} [start] Date de début (format ISO)
1363
+ * @param {string} [end] Date de fin (format ISO)
1364
+ * @param {*} [options] Override http request option.
1365
+ * @throws {RequiredError}
1366
+ */
1367
+ 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 = {}) {
1368
+ // verify required parameter 'id' is not null or undefined
1369
+ (0, common_1.assertParamExists)('getSlotsByClub', 'id', id);
1370
+ const localVarPath = `/api/clubs/{id}/slots`
1371
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
1372
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1373
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1374
+ let baseOptions;
1375
+ if (configuration) {
1376
+ baseOptions = configuration.baseOptions;
1377
+ }
1378
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1379
+ const localVarHeaderParameter = {};
1380
+ const localVarQueryParameter = {};
1381
+ // authentication bearerAuth required
1382
+ // http bearer authentication required
1383
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1384
+ if (start !== undefined) {
1385
+ localVarQueryParameter['start'] = (start instanceof Date) ?
1386
+ start.toISOString() :
1387
+ start;
1388
+ }
1389
+ if (end !== undefined) {
1390
+ localVarQueryParameter['end'] = (end instanceof Date) ?
1391
+ end.toISOString() :
1392
+ end;
1393
+ }
1394
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1395
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1396
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1397
+ return {
1398
+ url: (0, common_1.toPathString)(localVarUrlObj),
1399
+ options: localVarRequestOptions,
1400
+ };
1401
+ }),
1402
+ };
1403
+ };
1404
+ exports.ClubSlotsApiAxiosParamCreator = ClubSlotsApiAxiosParamCreator;
1405
+ /**
1406
+ * ClubSlotsApi - functional programming interface
1407
+ * @export
1408
+ */
1409
+ const ClubSlotsApiFp = function (configuration) {
1410
+ const localVarAxiosParamCreator = (0, exports.ClubSlotsApiAxiosParamCreator)(configuration);
1411
+ return {
1412
+ /**
1413
+ *
1414
+ * @summary Supprimer des créneaux pour un club sur une plage de dates
1415
+ * @param {string} id ID du club
1416
+ * @param {string} start Date de début (format ISO)
1417
+ * @param {string} end Date de fin (format ISO)
1418
+ * @param {*} [options] Override http request option.
1419
+ * @throws {RequiredError}
1420
+ */
1421
+ deleteSlotsByClubInRange(id, start, end, options) {
1422
+ return __awaiter(this, void 0, void 0, function* () {
1423
+ var _a, _b, _c;
1424
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteSlotsByClubInRange(id, start, end, options);
1425
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1426
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubSlotsApi.deleteSlotsByClubInRange']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1427
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1428
+ });
1429
+ },
1430
+ /**
1431
+ *
1432
+ * @summary Générer les créneaux pour les 3 semaines à venir
1433
+ * @param {string} id ID du club
1434
+ * @param {*} [options] Override http request option.
1435
+ * @throws {RequiredError}
1436
+ */
1437
+ generateSlotsForNextThreeWeeks(id, options) {
1438
+ return __awaiter(this, void 0, void 0, function* () {
1439
+ var _a, _b, _c;
1440
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.generateSlotsForNextThreeWeeks(id, options);
1441
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1442
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubSlotsApi.generateSlotsForNextThreeWeeks']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1443
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1444
+ });
1445
+ },
1446
+ /**
1447
+ *
1448
+ * @summary Obtenir tous les créneaux disponibles pour un club
1449
+ * @param {string} clubID ID du club
1450
+ * @param {*} [options] Override http request option.
1451
+ * @throws {RequiredError}
1452
+ */
1453
+ getAvailableSlotsByClub(clubID, options) {
1454
+ return __awaiter(this, void 0, void 0, function* () {
1455
+ var _a, _b, _c;
1456
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getAvailableSlotsByClub(clubID, options);
1457
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1458
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubSlotsApi.getAvailableSlotsByClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1459
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1460
+ });
1461
+ },
1462
+ /**
1463
+ *
1464
+ * @summary Obtenir tous les slots disponibles pour un sport dans un club
1465
+ * @param {string} id ID du club
1466
+ * @param {string} sportId ID du sport
1467
+ * @param {string} [start] Date de début (format ISO)
1468
+ * @param {string} [end] Date de fin (format ISO)
1469
+ * @param {*} [options] Override http request option.
1470
+ * @throws {RequiredError}
1471
+ */
1472
+ getAvailableSlotsBySports(id, sportId, start, end, options) {
1473
+ return __awaiter(this, void 0, void 0, function* () {
1474
+ var _a, _b, _c;
1475
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getAvailableSlotsBySports(id, sportId, start, end, options);
1476
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1477
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubSlotsApi.getAvailableSlotsBySports']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1478
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1479
+ });
1480
+ },
1481
+ /**
1482
+ *
1483
+ * @summary Obtenir les slots disponibles pour un jour donné
1484
+ * @param {string} id ID du club
1485
+ * @param {string} sportId ID du sport
1486
+ * @param {string} day Date du jour (format YYYY-MM-DD)
1487
+ * @param {*} [options] Override http request option.
1488
+ * @throws {RequiredError}
1489
+ */
1490
+ getAvailableSlotsBySportsAndDay(id, sportId, day, options) {
1491
+ return __awaiter(this, void 0, void 0, function* () {
1492
+ var _a, _b, _c;
1493
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getAvailableSlotsBySportsAndDay(id, sportId, day, options);
1494
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1495
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubSlotsApi.getAvailableSlotsBySportsAndDay']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1496
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1497
+ });
1498
+ },
1499
+ /**
1500
+ *
1501
+ * @summary Récupérer tous les créneaux pour un club
1502
+ * @param {string} id ID du club
1503
+ * @param {string} [start] Date de début (format ISO)
1504
+ * @param {string} [end] Date de fin (format ISO)
1505
+ * @param {*} [options] Override http request option.
1506
+ * @throws {RequiredError}
1507
+ */
1508
+ getSlotsByClub(id, start, end, options) {
1509
+ return __awaiter(this, void 0, void 0, function* () {
1510
+ var _a, _b, _c;
1511
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getSlotsByClub(id, start, end, options);
1512
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1513
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubSlotsApi.getSlotsByClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1514
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1515
+ });
1516
+ },
1517
+ };
1518
+ };
1519
+ exports.ClubSlotsApiFp = ClubSlotsApiFp;
1520
+ /**
1521
+ * ClubSlotsApi - factory interface
1522
+ * @export
1523
+ */
1524
+ const ClubSlotsApiFactory = function (configuration, basePath, axios) {
1525
+ const localVarFp = (0, exports.ClubSlotsApiFp)(configuration);
1526
+ return {
1527
+ /**
1528
+ *
1529
+ * @summary Supprimer des créneaux pour un club sur une plage de dates
1530
+ * @param {ClubSlotsApiDeleteSlotsByClubInRangeRequest} requestParameters Request parameters.
1531
+ * @param {*} [options] Override http request option.
1532
+ * @throws {RequiredError}
1533
+ */
1534
+ deleteSlotsByClubInRange(requestParameters, options) {
1535
+ return localVarFp.deleteSlotsByClubInRange(requestParameters.id, requestParameters.start, requestParameters.end, options).then((request) => request(axios, basePath));
1536
+ },
1537
+ /**
1538
+ *
1539
+ * @summary Générer les créneaux pour les 3 semaines à venir
1540
+ * @param {ClubSlotsApiGenerateSlotsForNextThreeWeeksRequest} requestParameters Request parameters.
1541
+ * @param {*} [options] Override http request option.
1542
+ * @throws {RequiredError}
1543
+ */
1544
+ generateSlotsForNextThreeWeeks(requestParameters, options) {
1545
+ return localVarFp.generateSlotsForNextThreeWeeks(requestParameters.id, options).then((request) => request(axios, basePath));
1546
+ },
1547
+ /**
1548
+ *
1549
+ * @summary Obtenir tous les créneaux disponibles pour un club
1550
+ * @param {ClubSlotsApiGetAvailableSlotsByClubRequest} requestParameters Request parameters.
1551
+ * @param {*} [options] Override http request option.
1552
+ * @throws {RequiredError}
1553
+ */
1554
+ getAvailableSlotsByClub(requestParameters, options) {
1555
+ return localVarFp.getAvailableSlotsByClub(requestParameters.clubID, options).then((request) => request(axios, basePath));
1556
+ },
1557
+ /**
1558
+ *
1559
+ * @summary Obtenir tous les slots disponibles pour un sport dans un club
1560
+ * @param {ClubSlotsApiGetAvailableSlotsBySportsRequest} requestParameters Request parameters.
1561
+ * @param {*} [options] Override http request option.
1562
+ * @throws {RequiredError}
1563
+ */
1564
+ getAvailableSlotsBySports(requestParameters, options) {
1565
+ return localVarFp.getAvailableSlotsBySports(requestParameters.id, requestParameters.sportId, requestParameters.start, requestParameters.end, options).then((request) => request(axios, basePath));
1566
+ },
1567
+ /**
1568
+ *
1569
+ * @summary Obtenir les slots disponibles pour un jour donné
1570
+ * @param {ClubSlotsApiGetAvailableSlotsBySportsAndDayRequest} requestParameters Request parameters.
1571
+ * @param {*} [options] Override http request option.
1572
+ * @throws {RequiredError}
1573
+ */
1574
+ getAvailableSlotsBySportsAndDay(requestParameters, options) {
1575
+ return localVarFp.getAvailableSlotsBySportsAndDay(requestParameters.id, requestParameters.sportId, requestParameters.day, options).then((request) => request(axios, basePath));
1576
+ },
1577
+ /**
1578
+ *
1579
+ * @summary Récupérer tous les créneaux pour un club
1580
+ * @param {ClubSlotsApiGetSlotsByClubRequest} requestParameters Request parameters.
1581
+ * @param {*} [options] Override http request option.
1582
+ * @throws {RequiredError}
1583
+ */
1584
+ getSlotsByClub(requestParameters, options) {
1585
+ return localVarFp.getSlotsByClub(requestParameters.id, requestParameters.start, requestParameters.end, options).then((request) => request(axios, basePath));
1586
+ },
1587
+ };
1588
+ };
1589
+ exports.ClubSlotsApiFactory = ClubSlotsApiFactory;
1590
+ /**
1591
+ * ClubSlotsApi - object-oriented interface
1592
+ * @export
1593
+ * @class ClubSlotsApi
1594
+ * @extends {BaseAPI}
1595
+ */
1596
+ class ClubSlotsApi extends base_1.BaseAPI {
1597
+ /**
1598
+ *
1599
+ * @summary Supprimer des créneaux pour un club sur une plage de dates
1600
+ * @param {ClubSlotsApiDeleteSlotsByClubInRangeRequest} requestParameters Request parameters.
1601
+ * @param {*} [options] Override http request option.
1602
+ * @throws {RequiredError}
1603
+ * @memberof ClubSlotsApi
1604
+ */
1605
+ deleteSlotsByClubInRange(requestParameters, options) {
1606
+ return (0, exports.ClubSlotsApiFp)(this.configuration).deleteSlotsByClubInRange(requestParameters.id, requestParameters.start, requestParameters.end, options).then((request) => request(this.axios, this.basePath));
1607
+ }
1608
+ /**
1609
+ *
1610
+ * @summary Générer les créneaux pour les 3 semaines à venir
1611
+ * @param {ClubSlotsApiGenerateSlotsForNextThreeWeeksRequest} requestParameters Request parameters.
1612
+ * @param {*} [options] Override http request option.
1613
+ * @throws {RequiredError}
1614
+ * @memberof ClubSlotsApi
1615
+ */
1616
+ generateSlotsForNextThreeWeeks(requestParameters, options) {
1617
+ return (0, exports.ClubSlotsApiFp)(this.configuration).generateSlotsForNextThreeWeeks(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
1618
+ }
1619
+ /**
1620
+ *
1621
+ * @summary Obtenir tous les créneaux disponibles pour un club
1622
+ * @param {ClubSlotsApiGetAvailableSlotsByClubRequest} requestParameters Request parameters.
1623
+ * @param {*} [options] Override http request option.
1624
+ * @throws {RequiredError}
1625
+ * @memberof ClubSlotsApi
1626
+ */
1627
+ getAvailableSlotsByClub(requestParameters, options) {
1628
+ return (0, exports.ClubSlotsApiFp)(this.configuration).getAvailableSlotsByClub(requestParameters.clubID, options).then((request) => request(this.axios, this.basePath));
1629
+ }
1630
+ /**
1631
+ *
1632
+ * @summary Obtenir tous les slots disponibles pour un sport dans un club
1633
+ * @param {ClubSlotsApiGetAvailableSlotsBySportsRequest} requestParameters Request parameters.
1634
+ * @param {*} [options] Override http request option.
1635
+ * @throws {RequiredError}
1636
+ * @memberof ClubSlotsApi
1637
+ */
1638
+ getAvailableSlotsBySports(requestParameters, options) {
1639
+ return (0, exports.ClubSlotsApiFp)(this.configuration).getAvailableSlotsBySports(requestParameters.id, requestParameters.sportId, requestParameters.start, requestParameters.end, options).then((request) => request(this.axios, this.basePath));
1640
+ }
1641
+ /**
1642
+ *
1643
+ * @summary Obtenir les slots disponibles pour un jour donné
1644
+ * @param {ClubSlotsApiGetAvailableSlotsBySportsAndDayRequest} requestParameters Request parameters.
1645
+ * @param {*} [options] Override http request option.
1646
+ * @throws {RequiredError}
1647
+ * @memberof ClubSlotsApi
1648
+ */
1649
+ getAvailableSlotsBySportsAndDay(requestParameters, options) {
1650
+ return (0, exports.ClubSlotsApiFp)(this.configuration).getAvailableSlotsBySportsAndDay(requestParameters.id, requestParameters.sportId, requestParameters.day, options).then((request) => request(this.axios, this.basePath));
1651
+ }
1652
+ /**
1653
+ *
1654
+ * @summary Récupérer tous les créneaux pour un club
1655
+ * @param {ClubSlotsApiGetSlotsByClubRequest} requestParameters Request parameters.
1656
+ * @param {*} [options] Override http request option.
1657
+ * @throws {RequiredError}
1658
+ * @memberof ClubSlotsApi
1659
+ */
1660
+ getSlotsByClub(requestParameters, options) {
1661
+ return (0, exports.ClubSlotsApiFp)(this.configuration).getSlotsByClub(requestParameters.id, requestParameters.start, requestParameters.end, options).then((request) => request(this.axios, this.basePath));
1662
+ }
1663
+ }
1664
+ exports.ClubSlotsApi = ClubSlotsApi;
1665
+ /**
1666
+ * ClubSportsApi - axios parameter creator
1667
+ * @export
1668
+ */
1669
+ const ClubSportsApiAxiosParamCreator = function (configuration) {
1670
+ return {
1671
+ /**
1672
+ *
1673
+ * @summary Créer un sport pour un club
1674
+ * @param {string} id ID du club
1675
+ * @param {CreateSportRequest} createSportRequest
1676
+ * @param {*} [options] Override http request option.
1677
+ * @throws {RequiredError}
1678
+ */
1679
+ createSportForClub: (id_1, createSportRequest_1, ...args_1) => __awaiter(this, [id_1, createSportRequest_1, ...args_1], void 0, function* (id, createSportRequest, options = {}) {
1680
+ // verify required parameter 'id' is not null or undefined
1681
+ (0, common_1.assertParamExists)('createSportForClub', 'id', id);
1682
+ // verify required parameter 'createSportRequest' is not null or undefined
1683
+ (0, common_1.assertParamExists)('createSportForClub', 'createSportRequest', createSportRequest);
1684
+ const localVarPath = `/api/clubs/{id}/sports`
1685
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
1686
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1687
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1688
+ let baseOptions;
1689
+ if (configuration) {
1690
+ baseOptions = configuration.baseOptions;
1691
+ }
1692
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1693
+ const localVarHeaderParameter = {};
1694
+ const localVarQueryParameter = {};
1695
+ // authentication bearerAuth required
1696
+ // http bearer authentication required
1697
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1698
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1699
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1700
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1701
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1702
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createSportRequest, localVarRequestOptions, configuration);
1703
+ return {
1704
+ url: (0, common_1.toPathString)(localVarUrlObj),
1705
+ options: localVarRequestOptions,
1706
+ };
1707
+ }),
1708
+ /**
1709
+ *
1710
+ * @summary Récupérer tous les sports pour un club
1711
+ * @param {string} id ID du club
1712
+ * @param {*} [options] Override http request option.
1713
+ * @throws {RequiredError}
1714
+ */
1715
+ getSportsByClub: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
1716
+ // verify required parameter 'id' is not null or undefined
1717
+ (0, common_1.assertParamExists)('getSportsByClub', 'id', id);
1718
+ const localVarPath = `/api/clubs/{id}/sports`
1719
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
1720
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1721
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1722
+ let baseOptions;
1723
+ if (configuration) {
1724
+ baseOptions = configuration.baseOptions;
1725
+ }
1726
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1727
+ const localVarHeaderParameter = {};
1728
+ const localVarQueryParameter = {};
1729
+ // authentication bearerAuth required
1730
+ // http bearer authentication required
1731
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1732
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1733
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1734
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1735
+ return {
1736
+ url: (0, common_1.toPathString)(localVarUrlObj),
1737
+ options: localVarRequestOptions,
1738
+ };
1739
+ }),
1740
+ };
1741
+ };
1742
+ exports.ClubSportsApiAxiosParamCreator = ClubSportsApiAxiosParamCreator;
1743
+ /**
1744
+ * ClubSportsApi - functional programming interface
1745
+ * @export
1746
+ */
1747
+ const ClubSportsApiFp = function (configuration) {
1748
+ const localVarAxiosParamCreator = (0, exports.ClubSportsApiAxiosParamCreator)(configuration);
1749
+ return {
1750
+ /**
1751
+ *
1752
+ * @summary Créer un sport pour un club
1753
+ * @param {string} id ID du club
1754
+ * @param {CreateSportRequest} createSportRequest
1755
+ * @param {*} [options] Override http request option.
1756
+ * @throws {RequiredError}
1757
+ */
1758
+ createSportForClub(id, createSportRequest, options) {
1759
+ return __awaiter(this, void 0, void 0, function* () {
1760
+ var _a, _b, _c;
1761
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createSportForClub(id, createSportRequest, options);
1762
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1763
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubSportsApi.createSportForClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1764
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1765
+ });
1766
+ },
1767
+ /**
1768
+ *
1769
+ * @summary Récupérer tous les sports pour un club
1770
+ * @param {string} id ID du club
1771
+ * @param {*} [options] Override http request option.
1772
+ * @throws {RequiredError}
1773
+ */
1774
+ getSportsByClub(id, options) {
1775
+ return __awaiter(this, void 0, void 0, function* () {
1776
+ var _a, _b, _c;
1777
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getSportsByClub(id, options);
1778
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1779
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubSportsApi.getSportsByClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1780
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1781
+ });
1782
+ },
1783
+ };
1784
+ };
1785
+ exports.ClubSportsApiFp = ClubSportsApiFp;
1786
+ /**
1787
+ * ClubSportsApi - factory interface
1788
+ * @export
1789
+ */
1790
+ const ClubSportsApiFactory = function (configuration, basePath, axios) {
1791
+ const localVarFp = (0, exports.ClubSportsApiFp)(configuration);
1792
+ return {
1793
+ /**
1794
+ *
1795
+ * @summary Créer un sport pour un club
1796
+ * @param {ClubSportsApiCreateSportForClubRequest} requestParameters Request parameters.
1797
+ * @param {*} [options] Override http request option.
1798
+ * @throws {RequiredError}
1799
+ */
1800
+ createSportForClub(requestParameters, options) {
1801
+ return localVarFp.createSportForClub(requestParameters.id, requestParameters.createSportRequest, options).then((request) => request(axios, basePath));
1802
+ },
1803
+ /**
1804
+ *
1805
+ * @summary Récupérer tous les sports pour un club
1806
+ * @param {ClubSportsApiGetSportsByClubRequest} requestParameters Request parameters.
1807
+ * @param {*} [options] Override http request option.
1808
+ * @throws {RequiredError}
1809
+ */
1810
+ getSportsByClub(requestParameters, options) {
1811
+ return localVarFp.getSportsByClub(requestParameters.id, options).then((request) => request(axios, basePath));
1812
+ },
1813
+ };
1814
+ };
1815
+ exports.ClubSportsApiFactory = ClubSportsApiFactory;
1816
+ /**
1817
+ * ClubSportsApi - object-oriented interface
1818
+ * @export
1819
+ * @class ClubSportsApi
1820
+ * @extends {BaseAPI}
1821
+ */
1822
+ class ClubSportsApi extends base_1.BaseAPI {
1823
+ /**
1824
+ *
1825
+ * @summary Créer un sport pour un club
1826
+ * @param {ClubSportsApiCreateSportForClubRequest} requestParameters Request parameters.
1827
+ * @param {*} [options] Override http request option.
1828
+ * @throws {RequiredError}
1829
+ * @memberof ClubSportsApi
1830
+ */
1831
+ createSportForClub(requestParameters, options) {
1832
+ return (0, exports.ClubSportsApiFp)(this.configuration).createSportForClub(requestParameters.id, requestParameters.createSportRequest, options).then((request) => request(this.axios, this.basePath));
1833
+ }
1834
+ /**
1835
+ *
1836
+ * @summary Récupérer tous les sports pour un club
1837
+ * @param {ClubSportsApiGetSportsByClubRequest} requestParameters Request parameters.
1838
+ * @param {*} [options] Override http request option.
1839
+ * @throws {RequiredError}
1840
+ * @memberof ClubSportsApi
1841
+ */
1842
+ getSportsByClub(requestParameters, options) {
1843
+ return (0, exports.ClubSportsApiFp)(this.configuration).getSportsByClub(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
1844
+ }
1845
+ }
1846
+ exports.ClubSportsApi = ClubSportsApi;
1847
+ /**
1848
+ * ClubSubscriptionsApi - axios parameter creator
1849
+ * @export
1850
+ */
1851
+ const ClubSubscriptionsApiAxiosParamCreator = function (configuration) {
1852
+ return {
1853
+ /**
1854
+ *
1855
+ * @summary Archiver un prix
1856
+ * @param {string} id ID du club
1857
+ * @param {string} priceId ID du prix Stripe
1858
+ * @param {*} [options] Override http request option.
1859
+ * @throws {RequiredError}
1860
+ */
1861
+ archivePriceForSubscriptionPlan: (id_1, priceId_1, ...args_1) => __awaiter(this, [id_1, priceId_1, ...args_1], void 0, function* (id, priceId, options = {}) {
1862
+ // verify required parameter 'id' is not null or undefined
1863
+ (0, common_1.assertParamExists)('archivePriceForSubscriptionPlan', 'id', id);
1864
+ // verify required parameter 'priceId' is not null or undefined
1865
+ (0, common_1.assertParamExists)('archivePriceForSubscriptionPlan', 'priceId', priceId);
1866
+ const localVarPath = `/api/clubs/{id}/subscription-plans/{priceId}/archive-price`
1867
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)))
1868
+ .replace(`{${"priceId"}}`, encodeURIComponent(String(priceId)));
1869
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1870
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1871
+ let baseOptions;
1872
+ if (configuration) {
1873
+ baseOptions = configuration.baseOptions;
1874
+ }
1875
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
1876
+ const localVarHeaderParameter = {};
1877
+ const localVarQueryParameter = {};
1878
+ // authentication bearerAuth required
1879
+ // http bearer authentication required
1880
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1881
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1882
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1883
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1884
+ return {
1885
+ url: (0, common_1.toPathString)(localVarUrlObj),
1886
+ options: localVarRequestOptions,
1887
+ };
1888
+ }),
1889
+ /**
1890
+ *
1891
+ * @summary Créer un nouveau prix pour un plan
1892
+ * @param {string} id ID du club
1893
+ * @param {string} productId ID du produit Stripe
1894
+ * @param {CreatePriceRequest} createPriceRequest
1895
+ * @param {*} [options] Override http request option.
1896
+ * @throws {RequiredError}
1897
+ */
1898
+ 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 = {}) {
1899
+ // verify required parameter 'id' is not null or undefined
1900
+ (0, common_1.assertParamExists)('createPriceForSubscriptionPlan', 'id', id);
1901
+ // verify required parameter 'productId' is not null or undefined
1902
+ (0, common_1.assertParamExists)('createPriceForSubscriptionPlan', 'productId', productId);
1903
+ // verify required parameter 'createPriceRequest' is not null or undefined
1904
+ (0, common_1.assertParamExists)('createPriceForSubscriptionPlan', 'createPriceRequest', createPriceRequest);
1905
+ const localVarPath = `/api/clubs/{id}/subscription-plans/{productId}/prices`
1906
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)))
1907
+ .replace(`{${"productId"}}`, encodeURIComponent(String(productId)));
1908
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1909
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1910
+ let baseOptions;
1911
+ if (configuration) {
1912
+ baseOptions = configuration.baseOptions;
1913
+ }
1914
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1915
+ const localVarHeaderParameter = {};
1916
+ const localVarQueryParameter = {};
1917
+ // authentication bearerAuth required
1918
+ // http bearer authentication required
1919
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1920
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1921
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1922
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1923
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1924
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createPriceRequest, localVarRequestOptions, configuration);
1925
+ return {
1926
+ url: (0, common_1.toPathString)(localVarUrlObj),
1927
+ options: localVarRequestOptions,
1928
+ };
1929
+ }),
1930
+ /**
1931
+ *
1932
+ * @summary Créer un plan d\'abonnement pour un club
1933
+ * @param {string} id ID du club
1934
+ * @param {CreateSubscriptionPlanRequest} createSubscriptionPlanRequest
1935
+ * @param {*} [options] Override http request option.
1936
+ * @throws {RequiredError}
1937
+ */
1938
+ createSubscriptionPlanForClub: (id_1, createSubscriptionPlanRequest_1, ...args_1) => __awaiter(this, [id_1, createSubscriptionPlanRequest_1, ...args_1], void 0, function* (id, createSubscriptionPlanRequest, options = {}) {
1939
+ // verify required parameter 'id' is not null or undefined
1940
+ (0, common_1.assertParamExists)('createSubscriptionPlanForClub', 'id', id);
1941
+ // verify required parameter 'createSubscriptionPlanRequest' is not null or undefined
1942
+ (0, common_1.assertParamExists)('createSubscriptionPlanForClub', 'createSubscriptionPlanRequest', createSubscriptionPlanRequest);
1943
+ const localVarPath = `/api/clubs/{id}/subscription-plans`
1944
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
1945
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1946
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1947
+ let baseOptions;
1948
+ if (configuration) {
1949
+ baseOptions = configuration.baseOptions;
1950
+ }
1951
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1952
+ const localVarHeaderParameter = {};
1953
+ const localVarQueryParameter = {};
1954
+ // authentication bearerAuth required
1955
+ // http bearer authentication required
1956
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1957
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1958
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1959
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1960
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1961
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createSubscriptionPlanRequest, localVarRequestOptions, configuration);
1962
+ return {
1963
+ url: (0, common_1.toPathString)(localVarUrlObj),
1964
+ options: localVarRequestOptions,
1965
+ };
1966
+ }),
1967
+ /**
1968
+ *
1969
+ * @summary Supprimer un plan d\'abonnement pour un club
1970
+ * @param {string} id ID du club
1971
+ * @param {string} productId ID du produit Stripe
1972
+ * @param {*} [options] Override http request option.
1973
+ * @throws {RequiredError}
1974
+ */
1975
+ deleteSubscriptionPlanForClub: (id_1, productId_1, ...args_1) => __awaiter(this, [id_1, productId_1, ...args_1], void 0, function* (id, productId, options = {}) {
1976
+ // verify required parameter 'id' is not null or undefined
1977
+ (0, common_1.assertParamExists)('deleteSubscriptionPlanForClub', 'id', id);
1978
+ // verify required parameter 'productId' is not null or undefined
1979
+ (0, common_1.assertParamExists)('deleteSubscriptionPlanForClub', 'productId', productId);
1980
+ const localVarPath = `/api/clubs/{id}/subscription-plans/{productId}`
1981
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)))
1982
+ .replace(`{${"productId"}}`, encodeURIComponent(String(productId)));
1983
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1984
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1985
+ let baseOptions;
1986
+ if (configuration) {
1987
+ baseOptions = configuration.baseOptions;
1988
+ }
1989
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
1990
+ const localVarHeaderParameter = {};
1991
+ const localVarQueryParameter = {};
1992
+ // authentication bearerAuth required
1993
+ // http bearer authentication required
1994
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1995
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1996
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1997
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1998
+ return {
1999
+ url: (0, common_1.toPathString)(localVarUrlObj),
2000
+ options: localVarRequestOptions,
2001
+ };
2002
+ }),
2003
+ /**
2004
+ *
2005
+ * @summary Réactiver un plan d\'abonnement
2006
+ * @param {string} id ID du club
2007
+ * @param {string} productId ID du produit Stripe
2008
+ * @param {*} [options] Override http request option.
2009
+ * @throws {RequiredError}
2010
+ */
2011
+ restoreSubscriptionPlanForClub: (id_1, productId_1, ...args_1) => __awaiter(this, [id_1, productId_1, ...args_1], void 0, function* (id, productId, options = {}) {
2012
+ // verify required parameter 'id' is not null or undefined
2013
+ (0, common_1.assertParamExists)('restoreSubscriptionPlanForClub', 'id', id);
2014
+ // verify required parameter 'productId' is not null or undefined
2015
+ (0, common_1.assertParamExists)('restoreSubscriptionPlanForClub', 'productId', productId);
2016
+ const localVarPath = `/api/clubs/{id}/subscription-plans/{productId}/restore`
2017
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)))
2018
+ .replace(`{${"productId"}}`, encodeURIComponent(String(productId)));
2019
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2020
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2021
+ let baseOptions;
2022
+ if (configuration) {
2023
+ baseOptions = configuration.baseOptions;
2024
+ }
2025
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
2026
+ const localVarHeaderParameter = {};
2027
+ const localVarQueryParameter = {};
2028
+ // authentication bearerAuth required
2029
+ // http bearer authentication required
2030
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2031
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2032
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2033
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2034
+ return {
2035
+ url: (0, common_1.toPathString)(localVarUrlObj),
2036
+ options: localVarRequestOptions,
2037
+ };
2038
+ }),
2039
+ /**
2040
+ *
2041
+ * @summary Réactiver un prix
2042
+ * @param {string} id ID du club
2043
+ * @param {string} priceId ID du prix Stripe
2044
+ * @param {*} [options] Override http request option.
2045
+ * @throws {RequiredError}
2046
+ */
2047
+ restoreSubscriptionPriceForClub: (id_1, priceId_1, ...args_1) => __awaiter(this, [id_1, priceId_1, ...args_1], void 0, function* (id, priceId, options = {}) {
2048
+ // verify required parameter 'id' is not null or undefined
2049
+ (0, common_1.assertParamExists)('restoreSubscriptionPriceForClub', 'id', id);
2050
+ // verify required parameter 'priceId' is not null or undefined
2051
+ (0, common_1.assertParamExists)('restoreSubscriptionPriceForClub', 'priceId', priceId);
2052
+ const localVarPath = `/api/clubs/{id}/subscription-plans/{priceId}/restore-price`
2053
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)))
2054
+ .replace(`{${"priceId"}}`, encodeURIComponent(String(priceId)));
2055
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2056
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2057
+ let baseOptions;
2058
+ if (configuration) {
2059
+ baseOptions = configuration.baseOptions;
2060
+ }
2061
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
2062
+ const localVarHeaderParameter = {};
2063
+ const localVarQueryParameter = {};
2064
+ // authentication bearerAuth required
2065
+ // http bearer authentication required
2066
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2067
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2068
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2069
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2070
+ return {
2071
+ url: (0, common_1.toPathString)(localVarUrlObj),
2072
+ options: localVarRequestOptions,
2073
+ };
2074
+ }),
2075
+ /**
2076
+ *
2077
+ * @summary Mettre à jour un plan d\'abonnement
2078
+ * @param {string} id ID du club
2079
+ * @param {string} priceId ID du prix Stripe
2080
+ * @param {UpdateSubscriptionPlanRequest} updateSubscriptionPlanRequest
2081
+ * @param {*} [options] Override http request option.
2082
+ * @throws {RequiredError}
2083
+ */
2084
+ 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 = {}) {
2085
+ // verify required parameter 'id' is not null or undefined
2086
+ (0, common_1.assertParamExists)('updateSubscriptionPlanForClub', 'id', id);
2087
+ // verify required parameter 'priceId' is not null or undefined
2088
+ (0, common_1.assertParamExists)('updateSubscriptionPlanForClub', 'priceId', priceId);
2089
+ // verify required parameter 'updateSubscriptionPlanRequest' is not null or undefined
2090
+ (0, common_1.assertParamExists)('updateSubscriptionPlanForClub', 'updateSubscriptionPlanRequest', updateSubscriptionPlanRequest);
2091
+ const localVarPath = `/api/clubs/{id}/subscription-plans/{priceId}`
2092
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)))
2093
+ .replace(`{${"priceId"}}`, encodeURIComponent(String(priceId)));
2094
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2095
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2096
+ let baseOptions;
2097
+ if (configuration) {
2098
+ baseOptions = configuration.baseOptions;
2099
+ }
2100
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
2101
+ const localVarHeaderParameter = {};
2102
+ const localVarQueryParameter = {};
2103
+ // authentication bearerAuth required
2104
+ // http bearer authentication required
2105
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2106
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2107
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2108
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2109
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2110
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateSubscriptionPlanRequest, localVarRequestOptions, configuration);
2111
+ return {
2112
+ url: (0, common_1.toPathString)(localVarUrlObj),
2113
+ options: localVarRequestOptions,
2114
+ };
2115
+ }),
2116
+ };
2117
+ };
2118
+ exports.ClubSubscriptionsApiAxiosParamCreator = ClubSubscriptionsApiAxiosParamCreator;
2119
+ /**
2120
+ * ClubSubscriptionsApi - functional programming interface
2121
+ * @export
2122
+ */
2123
+ const ClubSubscriptionsApiFp = function (configuration) {
2124
+ const localVarAxiosParamCreator = (0, exports.ClubSubscriptionsApiAxiosParamCreator)(configuration);
2125
+ return {
2126
+ /**
2127
+ *
2128
+ * @summary Archiver un prix
2129
+ * @param {string} id ID du club
2130
+ * @param {string} priceId ID du prix Stripe
2131
+ * @param {*} [options] Override http request option.
2132
+ * @throws {RequiredError}
2133
+ */
2134
+ archivePriceForSubscriptionPlan(id, priceId, options) {
2135
+ return __awaiter(this, void 0, void 0, function* () {
2136
+ var _a, _b, _c;
2137
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.archivePriceForSubscriptionPlan(id, priceId, options);
2138
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2139
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubSubscriptionsApi.archivePriceForSubscriptionPlan']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2140
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2141
+ });
2142
+ },
2143
+ /**
2144
+ *
2145
+ * @summary Créer un nouveau prix pour un plan
2146
+ * @param {string} id ID du club
2147
+ * @param {string} productId ID du produit Stripe
2148
+ * @param {CreatePriceRequest} createPriceRequest
2149
+ * @param {*} [options] Override http request option.
2150
+ * @throws {RequiredError}
2151
+ */
2152
+ createPriceForSubscriptionPlan(id, productId, createPriceRequest, options) {
2153
+ return __awaiter(this, void 0, void 0, function* () {
2154
+ var _a, _b, _c;
2155
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createPriceForSubscriptionPlan(id, productId, createPriceRequest, options);
2156
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2157
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubSubscriptionsApi.createPriceForSubscriptionPlan']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2158
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2159
+ });
2160
+ },
2161
+ /**
2162
+ *
2163
+ * @summary Créer un plan d\'abonnement pour un club
2164
+ * @param {string} id ID du club
2165
+ * @param {CreateSubscriptionPlanRequest} createSubscriptionPlanRequest
2166
+ * @param {*} [options] Override http request option.
2167
+ * @throws {RequiredError}
2168
+ */
2169
+ createSubscriptionPlanForClub(id, createSubscriptionPlanRequest, options) {
2170
+ return __awaiter(this, void 0, void 0, function* () {
2171
+ var _a, _b, _c;
2172
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createSubscriptionPlanForClub(id, createSubscriptionPlanRequest, options);
2173
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2174
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubSubscriptionsApi.createSubscriptionPlanForClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2175
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2176
+ });
2177
+ },
2178
+ /**
2179
+ *
2180
+ * @summary Supprimer un plan d\'abonnement pour un club
2181
+ * @param {string} id ID du club
2182
+ * @param {string} productId ID du produit Stripe
2183
+ * @param {*} [options] Override http request option.
2184
+ * @throws {RequiredError}
2185
+ */
2186
+ deleteSubscriptionPlanForClub(id, productId, options) {
2187
+ return __awaiter(this, void 0, void 0, function* () {
2188
+ var _a, _b, _c;
2189
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteSubscriptionPlanForClub(id, productId, options);
2190
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2191
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubSubscriptionsApi.deleteSubscriptionPlanForClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2192
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2193
+ });
2194
+ },
2195
+ /**
2196
+ *
2197
+ * @summary Réactiver un plan d\'abonnement
2198
+ * @param {string} id ID du club
2199
+ * @param {string} productId ID du produit Stripe
2200
+ * @param {*} [options] Override http request option.
2201
+ * @throws {RequiredError}
2202
+ */
2203
+ restoreSubscriptionPlanForClub(id, productId, options) {
2204
+ return __awaiter(this, void 0, void 0, function* () {
2205
+ var _a, _b, _c;
2206
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.restoreSubscriptionPlanForClub(id, productId, options);
2207
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2208
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubSubscriptionsApi.restoreSubscriptionPlanForClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2209
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2210
+ });
2211
+ },
2212
+ /**
2213
+ *
2214
+ * @summary Réactiver un prix
2215
+ * @param {string} id ID du club
2216
+ * @param {string} priceId ID du prix Stripe
2217
+ * @param {*} [options] Override http request option.
2218
+ * @throws {RequiredError}
2219
+ */
2220
+ restoreSubscriptionPriceForClub(id, priceId, options) {
2221
+ return __awaiter(this, void 0, void 0, function* () {
2222
+ var _a, _b, _c;
2223
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.restoreSubscriptionPriceForClub(id, priceId, options);
2224
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2225
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubSubscriptionsApi.restoreSubscriptionPriceForClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2226
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2227
+ });
2228
+ },
2229
+ /**
2230
+ *
2231
+ * @summary Mettre à jour un plan d\'abonnement
2232
+ * @param {string} id ID du club
2233
+ * @param {string} priceId ID du prix Stripe
2234
+ * @param {UpdateSubscriptionPlanRequest} updateSubscriptionPlanRequest
2235
+ * @param {*} [options] Override http request option.
2236
+ * @throws {RequiredError}
2237
+ */
2238
+ updateSubscriptionPlanForClub(id, priceId, updateSubscriptionPlanRequest, options) {
2239
+ return __awaiter(this, void 0, void 0, function* () {
2240
+ var _a, _b, _c;
2241
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateSubscriptionPlanForClub(id, priceId, updateSubscriptionPlanRequest, options);
2242
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2243
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubSubscriptionsApi.updateSubscriptionPlanForClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2244
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2245
+ });
2246
+ },
2247
+ };
2248
+ };
2249
+ exports.ClubSubscriptionsApiFp = ClubSubscriptionsApiFp;
2250
+ /**
2251
+ * ClubSubscriptionsApi - factory interface
2252
+ * @export
2253
+ */
2254
+ const ClubSubscriptionsApiFactory = function (configuration, basePath, axios) {
2255
+ const localVarFp = (0, exports.ClubSubscriptionsApiFp)(configuration);
2256
+ return {
2257
+ /**
2258
+ *
2259
+ * @summary Archiver un prix
2260
+ * @param {ClubSubscriptionsApiArchivePriceForSubscriptionPlanRequest} requestParameters Request parameters.
2261
+ * @param {*} [options] Override http request option.
2262
+ * @throws {RequiredError}
2263
+ */
2264
+ archivePriceForSubscriptionPlan(requestParameters, options) {
2265
+ return localVarFp.archivePriceForSubscriptionPlan(requestParameters.id, requestParameters.priceId, options).then((request) => request(axios, basePath));
2266
+ },
2267
+ /**
2268
+ *
2269
+ * @summary Créer un nouveau prix pour un plan
2270
+ * @param {ClubSubscriptionsApiCreatePriceForSubscriptionPlanRequest} requestParameters Request parameters.
2271
+ * @param {*} [options] Override http request option.
2272
+ * @throws {RequiredError}
2273
+ */
2274
+ createPriceForSubscriptionPlan(requestParameters, options) {
2275
+ return localVarFp.createPriceForSubscriptionPlan(requestParameters.id, requestParameters.productId, requestParameters.createPriceRequest, options).then((request) => request(axios, basePath));
2276
+ },
2277
+ /**
2278
+ *
2279
+ * @summary Créer un plan d\'abonnement pour un club
2280
+ * @param {ClubSubscriptionsApiCreateSubscriptionPlanForClubRequest} requestParameters Request parameters.
2281
+ * @param {*} [options] Override http request option.
2282
+ * @throws {RequiredError}
2283
+ */
2284
+ createSubscriptionPlanForClub(requestParameters, options) {
2285
+ return localVarFp.createSubscriptionPlanForClub(requestParameters.id, requestParameters.createSubscriptionPlanRequest, options).then((request) => request(axios, basePath));
2286
+ },
2287
+ /**
2288
+ *
2289
+ * @summary Supprimer un plan d\'abonnement pour un club
2290
+ * @param {ClubSubscriptionsApiDeleteSubscriptionPlanForClubRequest} requestParameters Request parameters.
2291
+ * @param {*} [options] Override http request option.
2292
+ * @throws {RequiredError}
2293
+ */
2294
+ deleteSubscriptionPlanForClub(requestParameters, options) {
2295
+ return localVarFp.deleteSubscriptionPlanForClub(requestParameters.id, requestParameters.productId, options).then((request) => request(axios, basePath));
2296
+ },
2297
+ /**
2298
+ *
2299
+ * @summary Réactiver un plan d\'abonnement
2300
+ * @param {ClubSubscriptionsApiRestoreSubscriptionPlanForClubRequest} requestParameters Request parameters.
2301
+ * @param {*} [options] Override http request option.
2302
+ * @throws {RequiredError}
2303
+ */
2304
+ restoreSubscriptionPlanForClub(requestParameters, options) {
2305
+ return localVarFp.restoreSubscriptionPlanForClub(requestParameters.id, requestParameters.productId, options).then((request) => request(axios, basePath));
2306
+ },
2307
+ /**
2308
+ *
2309
+ * @summary Réactiver un prix
2310
+ * @param {ClubSubscriptionsApiRestoreSubscriptionPriceForClubRequest} requestParameters Request parameters.
2311
+ * @param {*} [options] Override http request option.
2312
+ * @throws {RequiredError}
2313
+ */
2314
+ restoreSubscriptionPriceForClub(requestParameters, options) {
2315
+ return localVarFp.restoreSubscriptionPriceForClub(requestParameters.id, requestParameters.priceId, options).then((request) => request(axios, basePath));
2316
+ },
2317
+ /**
2318
+ *
2319
+ * @summary Mettre à jour un plan d\'abonnement
2320
+ * @param {ClubSubscriptionsApiUpdateSubscriptionPlanForClubRequest} requestParameters Request parameters.
2321
+ * @param {*} [options] Override http request option.
2322
+ * @throws {RequiredError}
2323
+ */
2324
+ updateSubscriptionPlanForClub(requestParameters, options) {
2325
+ return localVarFp.updateSubscriptionPlanForClub(requestParameters.id, requestParameters.priceId, requestParameters.updateSubscriptionPlanRequest, options).then((request) => request(axios, basePath));
2326
+ },
2327
+ };
2328
+ };
2329
+ exports.ClubSubscriptionsApiFactory = ClubSubscriptionsApiFactory;
2330
+ /**
2331
+ * ClubSubscriptionsApi - object-oriented interface
2332
+ * @export
2333
+ * @class ClubSubscriptionsApi
2334
+ * @extends {BaseAPI}
2335
+ */
2336
+ class ClubSubscriptionsApi extends base_1.BaseAPI {
2337
+ /**
2338
+ *
2339
+ * @summary Archiver un prix
2340
+ * @param {ClubSubscriptionsApiArchivePriceForSubscriptionPlanRequest} requestParameters Request parameters.
2341
+ * @param {*} [options] Override http request option.
2342
+ * @throws {RequiredError}
2343
+ * @memberof ClubSubscriptionsApi
2344
+ */
2345
+ archivePriceForSubscriptionPlan(requestParameters, options) {
2346
+ return (0, exports.ClubSubscriptionsApiFp)(this.configuration).archivePriceForSubscriptionPlan(requestParameters.id, requestParameters.priceId, options).then((request) => request(this.axios, this.basePath));
2347
+ }
2348
+ /**
2349
+ *
2350
+ * @summary Créer un nouveau prix pour un plan
2351
+ * @param {ClubSubscriptionsApiCreatePriceForSubscriptionPlanRequest} requestParameters Request parameters.
2352
+ * @param {*} [options] Override http request option.
2353
+ * @throws {RequiredError}
2354
+ * @memberof ClubSubscriptionsApi
2355
+ */
2356
+ createPriceForSubscriptionPlan(requestParameters, options) {
2357
+ return (0, exports.ClubSubscriptionsApiFp)(this.configuration).createPriceForSubscriptionPlan(requestParameters.id, requestParameters.productId, requestParameters.createPriceRequest, options).then((request) => request(this.axios, this.basePath));
2358
+ }
2359
+ /**
2360
+ *
2361
+ * @summary Créer un plan d\'abonnement pour un club
2362
+ * @param {ClubSubscriptionsApiCreateSubscriptionPlanForClubRequest} requestParameters Request parameters.
2363
+ * @param {*} [options] Override http request option.
2364
+ * @throws {RequiredError}
2365
+ * @memberof ClubSubscriptionsApi
2366
+ */
2367
+ createSubscriptionPlanForClub(requestParameters, options) {
2368
+ return (0, exports.ClubSubscriptionsApiFp)(this.configuration).createSubscriptionPlanForClub(requestParameters.id, requestParameters.createSubscriptionPlanRequest, options).then((request) => request(this.axios, this.basePath));
2369
+ }
2370
+ /**
2371
+ *
2372
+ * @summary Supprimer un plan d\'abonnement pour un club
2373
+ * @param {ClubSubscriptionsApiDeleteSubscriptionPlanForClubRequest} requestParameters Request parameters.
2374
+ * @param {*} [options] Override http request option.
2375
+ * @throws {RequiredError}
2376
+ * @memberof ClubSubscriptionsApi
2377
+ */
2378
+ deleteSubscriptionPlanForClub(requestParameters, options) {
2379
+ return (0, exports.ClubSubscriptionsApiFp)(this.configuration).deleteSubscriptionPlanForClub(requestParameters.id, requestParameters.productId, options).then((request) => request(this.axios, this.basePath));
2380
+ }
2381
+ /**
2382
+ *
2383
+ * @summary Réactiver un plan d\'abonnement
2384
+ * @param {ClubSubscriptionsApiRestoreSubscriptionPlanForClubRequest} requestParameters Request parameters.
2385
+ * @param {*} [options] Override http request option.
2386
+ * @throws {RequiredError}
2387
+ * @memberof ClubSubscriptionsApi
2388
+ */
2389
+ restoreSubscriptionPlanForClub(requestParameters, options) {
2390
+ return (0, exports.ClubSubscriptionsApiFp)(this.configuration).restoreSubscriptionPlanForClub(requestParameters.id, requestParameters.productId, options).then((request) => request(this.axios, this.basePath));
2391
+ }
2392
+ /**
2393
+ *
2394
+ * @summary Réactiver un prix
2395
+ * @param {ClubSubscriptionsApiRestoreSubscriptionPriceForClubRequest} requestParameters Request parameters.
2396
+ * @param {*} [options] Override http request option.
2397
+ * @throws {RequiredError}
2398
+ * @memberof ClubSubscriptionsApi
2399
+ */
2400
+ restoreSubscriptionPriceForClub(requestParameters, options) {
2401
+ return (0, exports.ClubSubscriptionsApiFp)(this.configuration).restoreSubscriptionPriceForClub(requestParameters.id, requestParameters.priceId, options).then((request) => request(this.axios, this.basePath));
2402
+ }
2403
+ /**
2404
+ *
2405
+ * @summary Mettre à jour un plan d\'abonnement
2406
+ * @param {ClubSubscriptionsApiUpdateSubscriptionPlanForClubRequest} requestParameters Request parameters.
2407
+ * @param {*} [options] Override http request option.
2408
+ * @throws {RequiredError}
2409
+ * @memberof ClubSubscriptionsApi
2410
+ */
2411
+ updateSubscriptionPlanForClub(requestParameters, options) {
2412
+ return (0, exports.ClubSubscriptionsApiFp)(this.configuration).updateSubscriptionPlanForClub(requestParameters.id, requestParameters.priceId, requestParameters.updateSubscriptionPlanRequest, options).then((request) => request(this.axios, this.basePath));
2413
+ }
2414
+ }
2415
+ exports.ClubSubscriptionsApi = ClubSubscriptionsApi;
2416
+ /**
2417
+ * ClubsApi - axios parameter creator
2418
+ * @export
2419
+ */
2420
+ const ClubsApiAxiosParamCreator = function (configuration) {
2421
+ return {
2422
+ /**
2423
+ *
2424
+ * @summary Ajouter un membre à un club
2425
+ * @param {string} id ID du club
2426
+ * @param {AddClubMemberRequest} addClubMemberRequest
2427
+ * @param {*} [options] Override http request option.
2428
+ * @throws {RequiredError}
2429
+ */
2430
+ addClubMember: (id_1, addClubMemberRequest_1, ...args_1) => __awaiter(this, [id_1, addClubMemberRequest_1, ...args_1], void 0, function* (id, addClubMemberRequest, options = {}) {
2431
+ // verify required parameter 'id' is not null or undefined
2432
+ (0, common_1.assertParamExists)('addClubMember', 'id', id);
2433
+ // verify required parameter 'addClubMemberRequest' is not null or undefined
2434
+ (0, common_1.assertParamExists)('addClubMember', 'addClubMemberRequest', addClubMemberRequest);
2435
+ const localVarPath = `/api/clubs/{id}/add_members`
2436
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
2437
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2438
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2439
+ let baseOptions;
2440
+ if (configuration) {
2441
+ baseOptions = configuration.baseOptions;
2442
+ }
2443
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
2444
+ const localVarHeaderParameter = {};
2445
+ const localVarQueryParameter = {};
2446
+ // authentication bearerAuth required
2447
+ // http bearer authentication required
2448
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2449
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2450
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2451
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2452
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2453
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(addClubMemberRequest, localVarRequestOptions, configuration);
2454
+ return {
2455
+ url: (0, common_1.toPathString)(localVarUrlObj),
2456
+ options: localVarRequestOptions,
2457
+ };
2458
+ }),
2459
+ /**
2460
+ *
2461
+ * @summary Créer un nouveau club
2462
+ * @param {CreateClubRequest} createClubRequest
2463
+ * @param {*} [options] Override http request option.
2464
+ * @throws {RequiredError}
2465
+ */
2466
+ createClub: (createClubRequest_1, ...args_1) => __awaiter(this, [createClubRequest_1, ...args_1], void 0, function* (createClubRequest, options = {}) {
2467
+ // verify required parameter 'createClubRequest' is not null or undefined
2468
+ (0, common_1.assertParamExists)('createClub', 'createClubRequest', createClubRequest);
2469
+ const localVarPath = `/api/clubs`;
2470
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2471
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2472
+ let baseOptions;
2473
+ if (configuration) {
2474
+ baseOptions = configuration.baseOptions;
2475
+ }
2476
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
2477
+ const localVarHeaderParameter = {};
2478
+ const localVarQueryParameter = {};
2479
+ // authentication bearerAuth required
2480
+ // http bearer authentication required
2481
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2482
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2483
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2484
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2485
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2486
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createClubRequest, localVarRequestOptions, configuration);
2487
+ return {
2488
+ url: (0, common_1.toPathString)(localVarUrlObj),
2489
+ options: localVarRequestOptions,
2490
+ };
2491
+ }),
2492
+ /**
2493
+ *
2494
+ * @summary Supprimer un club
2495
+ * @param {string} id ID du club
2496
+ * @param {*} [options] Override http request option.
2497
+ * @throws {RequiredError}
2498
+ */
2499
+ deleteClub: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
2500
+ // verify required parameter 'id' is not null or undefined
2501
+ (0, common_1.assertParamExists)('deleteClub', 'id', id);
2502
+ const localVarPath = `/api/clubs/{id}`
2503
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
2504
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2505
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2506
+ let baseOptions;
2507
+ if (configuration) {
2508
+ baseOptions = configuration.baseOptions;
2509
+ }
2510
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
2511
+ const localVarHeaderParameter = {};
2512
+ const localVarQueryParameter = {};
2513
+ // authentication bearerAuth required
2514
+ // http bearer authentication required
2515
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2516
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2517
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2518
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2519
+ return {
2520
+ url: (0, common_1.toPathString)(localVarUrlObj),
2521
+ options: localVarRequestOptions,
2522
+ };
2523
+ }),
2524
+ /**
2525
+ * Retourne une liste des clubs dont la propriété `isActive` est `true`. Chaque club contient uniquement son `id` et son `name`.
2526
+ * @summary Obtenir la liste des clubs actifs (seulement id et nom)
2527
+ * @param {*} [options] Override http request option.
2528
+ * @throws {RequiredError}
2529
+ */
2530
+ getActiveClubs: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
2531
+ const localVarPath = `/api/clubs/activeClubs/`;
2532
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2533
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2534
+ let baseOptions;
2535
+ if (configuration) {
2536
+ baseOptions = configuration.baseOptions;
2537
+ }
2538
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2539
+ const localVarHeaderParameter = {};
2540
+ const localVarQueryParameter = {};
2541
+ // authentication bearerAuth required
2542
+ // http bearer authentication required
2543
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2544
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2545
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2546
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2547
+ return {
2548
+ url: (0, common_1.toPathString)(localVarUrlObj),
2549
+ options: localVarRequestOptions,
2550
+ };
2551
+ }),
2552
+ /**
2553
+ *
2554
+ * @summary Récupérer tous les clubs
2555
+ * @param {*} [options] Override http request option.
2556
+ * @throws {RequiredError}
2557
+ */
2558
+ getAllClubs: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
2559
+ const localVarPath = `/api/clubs`;
2560
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2561
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2562
+ let baseOptions;
2563
+ if (configuration) {
2564
+ baseOptions = configuration.baseOptions;
2565
+ }
2566
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2567
+ const localVarHeaderParameter = {};
2568
+ const localVarQueryParameter = {};
2569
+ // authentication bearerAuth required
2570
+ // http bearer authentication required
2571
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2572
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2573
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2574
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2575
+ return {
2576
+ url: (0, common_1.toPathString)(localVarUrlObj),
2577
+ options: localVarRequestOptions,
2578
+ };
2579
+ }),
2580
+ /**
2581
+ *
2582
+ * @summary Récupérer les informations d\'un club
2583
+ * @param {string} id ID du club
2584
+ * @param {*} [options] Override http request option.
2585
+ * @throws {RequiredError}
2586
+ */
2587
+ getClubInfo: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
2588
+ // verify required parameter 'id' is not null or undefined
2589
+ (0, common_1.assertParamExists)('getClubInfo', 'id', id);
2590
+ const localVarPath = `/api/clubs/{id}`
2591
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
2592
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2593
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2594
+ let baseOptions;
2595
+ if (configuration) {
2596
+ baseOptions = configuration.baseOptions;
2597
+ }
2598
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2599
+ const localVarHeaderParameter = {};
2600
+ const localVarQueryParameter = {};
2601
+ // authentication bearerAuth required
2602
+ // http bearer authentication required
2603
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2604
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2605
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2606
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2607
+ return {
2608
+ url: (0, common_1.toPathString)(localVarUrlObj),
2609
+ options: localVarRequestOptions,
2610
+ };
2611
+ }),
2612
+ /**
2613
+ *
2614
+ * @summary Récupérer les membres d\'un club
2615
+ * @param {string} id ID du club
2616
+ * @param {*} [options] Override http request option.
2617
+ * @throws {RequiredError}
2618
+ */
2619
+ getClubMembers: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
2620
+ // verify required parameter 'id' is not null or undefined
2621
+ (0, common_1.assertParamExists)('getClubMembers', 'id', id);
2622
+ const localVarPath = `/api/clubs/{id}/members`
2623
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
2624
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2625
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2626
+ let baseOptions;
2627
+ if (configuration) {
2628
+ baseOptions = configuration.baseOptions;
2629
+ }
2630
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2631
+ const localVarHeaderParameter = {};
2632
+ const localVarQueryParameter = {};
2633
+ // authentication bearerAuth required
2634
+ // http bearer authentication required
2635
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2636
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2637
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2638
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2639
+ return {
2640
+ url: (0, common_1.toPathString)(localVarUrlObj),
2641
+ options: localVarRequestOptions,
2642
+ };
2643
+ }),
2644
+ /**
2645
+ *
2646
+ * @summary Récupérer les rôles d\'un club
2647
+ * @param {string} id ID du club
2648
+ * @param {*} [options] Override http request option.
2649
+ * @throws {RequiredError}
2650
+ */
2651
+ getClubRoles: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
2652
+ // verify required parameter 'id' is not null or undefined
2653
+ (0, common_1.assertParamExists)('getClubRoles', 'id', id);
2654
+ const localVarPath = `/api/clubs/{id}/roles`
2655
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
2656
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2657
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2658
+ let baseOptions;
2659
+ if (configuration) {
2660
+ baseOptions = configuration.baseOptions;
2661
+ }
2662
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2663
+ const localVarHeaderParameter = {};
2664
+ const localVarQueryParameter = {};
2665
+ // authentication bearerAuth required
2666
+ // http bearer authentication required
2667
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2668
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2669
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2670
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2671
+ return {
2672
+ url: (0, common_1.toPathString)(localVarUrlObj),
2673
+ options: localVarRequestOptions,
2674
+ };
2675
+ }),
2676
+ /**
2677
+ *
2678
+ * @summary Mettre à jour un club existant
2679
+ * @param {string} id ID du club
2680
+ * @param {UpdateClubRequest} updateClubRequest
2681
+ * @param {*} [options] Override http request option.
2682
+ * @throws {RequiredError}
2683
+ */
2684
+ updateClub: (id_1, updateClubRequest_1, ...args_1) => __awaiter(this, [id_1, updateClubRequest_1, ...args_1], void 0, function* (id, updateClubRequest, options = {}) {
2685
+ // verify required parameter 'id' is not null or undefined
2686
+ (0, common_1.assertParamExists)('updateClub', 'id', id);
2687
+ // verify required parameter 'updateClubRequest' is not null or undefined
2688
+ (0, common_1.assertParamExists)('updateClub', 'updateClubRequest', updateClubRequest);
2689
+ const localVarPath = `/api/clubs/{id}`
2690
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
2691
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2692
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2693
+ let baseOptions;
2694
+ if (configuration) {
2695
+ baseOptions = configuration.baseOptions;
2696
+ }
2697
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
2698
+ const localVarHeaderParameter = {};
2699
+ const localVarQueryParameter = {};
2700
+ // authentication bearerAuth required
2701
+ // http bearer authentication required
2702
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2703
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2704
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2705
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2706
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2707
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateClubRequest, localVarRequestOptions, configuration);
2708
+ return {
2709
+ url: (0, common_1.toPathString)(localVarUrlObj),
2710
+ options: localVarRequestOptions,
2711
+ };
2712
+ }),
2713
+ };
2714
+ };
2715
+ exports.ClubsApiAxiosParamCreator = ClubsApiAxiosParamCreator;
2716
+ /**
2717
+ * ClubsApi - functional programming interface
2718
+ * @export
2719
+ */
2720
+ const ClubsApiFp = function (configuration) {
2721
+ const localVarAxiosParamCreator = (0, exports.ClubsApiAxiosParamCreator)(configuration);
2722
+ return {
2723
+ /**
2724
+ *
2725
+ * @summary Ajouter un membre à un club
2726
+ * @param {string} id ID du club
2727
+ * @param {AddClubMemberRequest} addClubMemberRequest
2728
+ * @param {*} [options] Override http request option.
2729
+ * @throws {RequiredError}
2730
+ */
2731
+ addClubMember(id, addClubMemberRequest, options) {
2732
+ return __awaiter(this, void 0, void 0, function* () {
2733
+ var _a, _b, _c;
2734
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.addClubMember(id, addClubMemberRequest, options);
2735
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2736
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubsApi.addClubMember']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2737
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2738
+ });
2739
+ },
2740
+ /**
2741
+ *
2742
+ * @summary Créer un nouveau club
2743
+ * @param {CreateClubRequest} createClubRequest
2744
+ * @param {*} [options] Override http request option.
2745
+ * @throws {RequiredError}
2746
+ */
2747
+ createClub(createClubRequest, options) {
2748
+ return __awaiter(this, void 0, void 0, function* () {
2749
+ var _a, _b, _c;
2750
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createClub(createClubRequest, options);
2751
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2752
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubsApi.createClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2753
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2754
+ });
2755
+ },
2756
+ /**
2757
+ *
2758
+ * @summary Supprimer un club
2759
+ * @param {string} id ID du club
2760
+ * @param {*} [options] Override http request option.
2761
+ * @throws {RequiredError}
2762
+ */
2763
+ deleteClub(id, options) {
2764
+ return __awaiter(this, void 0, void 0, function* () {
2765
+ var _a, _b, _c;
2766
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteClub(id, options);
2767
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2768
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubsApi.deleteClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2769
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2770
+ });
2771
+ },
2772
+ /**
2773
+ * Retourne une liste des clubs dont la propriété `isActive` est `true`. Chaque club contient uniquement son `id` et son `name`.
2774
+ * @summary Obtenir la liste des clubs actifs (seulement id et nom)
2775
+ * @param {*} [options] Override http request option.
2776
+ * @throws {RequiredError}
2777
+ */
2778
+ getActiveClubs(options) {
2779
+ return __awaiter(this, void 0, void 0, function* () {
2780
+ var _a, _b, _c;
2781
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getActiveClubs(options);
2782
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2783
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubsApi.getActiveClubs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2784
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2785
+ });
2786
+ },
2787
+ /**
2788
+ *
2789
+ * @summary Récupérer tous les clubs
2790
+ * @param {*} [options] Override http request option.
2791
+ * @throws {RequiredError}
2792
+ */
2793
+ getAllClubs(options) {
2794
+ return __awaiter(this, void 0, void 0, function* () {
2795
+ var _a, _b, _c;
2796
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getAllClubs(options);
2797
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2798
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubsApi.getAllClubs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2799
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2800
+ });
2801
+ },
2802
+ /**
2803
+ *
2804
+ * @summary Récupérer les informations d\'un club
2805
+ * @param {string} id ID du club
2806
+ * @param {*} [options] Override http request option.
2807
+ * @throws {RequiredError}
2808
+ */
2809
+ getClubInfo(id, options) {
2810
+ return __awaiter(this, void 0, void 0, function* () {
2811
+ var _a, _b, _c;
2812
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubInfo(id, options);
2813
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2814
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubsApi.getClubInfo']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2815
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2816
+ });
2817
+ },
2818
+ /**
2819
+ *
2820
+ * @summary Récupérer les membres d\'un club
2821
+ * @param {string} id ID du club
2822
+ * @param {*} [options] Override http request option.
2823
+ * @throws {RequiredError}
2824
+ */
2825
+ getClubMembers(id, options) {
2826
+ return __awaiter(this, void 0, void 0, function* () {
2827
+ var _a, _b, _c;
2828
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubMembers(id, options);
2829
+ 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['ClubsApi.getClubMembers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2831
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2832
+ });
2833
+ },
2834
+ /**
2835
+ *
2836
+ * @summary Récupérer les rôles d\'un club
2837
+ * @param {string} id ID du club
2838
+ * @param {*} [options] Override http request option.
2839
+ * @throws {RequiredError}
2840
+ */
2841
+ getClubRoles(id, options) {
2842
+ return __awaiter(this, void 0, void 0, function* () {
2843
+ var _a, _b, _c;
2844
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubRoles(id, options);
2845
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2846
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubsApi.getClubRoles']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2847
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2848
+ });
2849
+ },
2850
+ /**
2851
+ *
2852
+ * @summary Mettre à jour un club existant
2853
+ * @param {string} id ID du club
2854
+ * @param {UpdateClubRequest} updateClubRequest
2855
+ * @param {*} [options] Override http request option.
2856
+ * @throws {RequiredError}
2857
+ */
2858
+ updateClub(id, updateClubRequest, options) {
2859
+ return __awaiter(this, void 0, void 0, function* () {
2860
+ var _a, _b, _c;
2861
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateClub(id, updateClubRequest, options);
2862
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2863
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubsApi.updateClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2864
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2865
+ });
2866
+ },
2867
+ };
2868
+ };
2869
+ exports.ClubsApiFp = ClubsApiFp;
2870
+ /**
2871
+ * ClubsApi - factory interface
2872
+ * @export
2873
+ */
2874
+ const ClubsApiFactory = function (configuration, basePath, axios) {
2875
+ const localVarFp = (0, exports.ClubsApiFp)(configuration);
2876
+ return {
2877
+ /**
2878
+ *
2879
+ * @summary Ajouter un membre à un club
2880
+ * @param {ClubsApiAddClubMemberRequest} requestParameters Request parameters.
2881
+ * @param {*} [options] Override http request option.
2882
+ * @throws {RequiredError}
2883
+ */
2884
+ addClubMember(requestParameters, options) {
2885
+ return localVarFp.addClubMember(requestParameters.id, requestParameters.addClubMemberRequest, options).then((request) => request(axios, basePath));
2886
+ },
2887
+ /**
2888
+ *
2889
+ * @summary Créer un nouveau club
2890
+ * @param {ClubsApiCreateClubRequest} requestParameters Request parameters.
2891
+ * @param {*} [options] Override http request option.
2892
+ * @throws {RequiredError}
2893
+ */
2894
+ createClub(requestParameters, options) {
2895
+ return localVarFp.createClub(requestParameters.createClubRequest, options).then((request) => request(axios, basePath));
2896
+ },
2897
+ /**
2898
+ *
2899
+ * @summary Supprimer un club
2900
+ * @param {ClubsApiDeleteClubRequest} requestParameters Request parameters.
2901
+ * @param {*} [options] Override http request option.
2902
+ * @throws {RequiredError}
2903
+ */
2904
+ deleteClub(requestParameters, options) {
2905
+ return localVarFp.deleteClub(requestParameters.id, options).then((request) => request(axios, basePath));
2906
+ },
2907
+ /**
2908
+ * Retourne une liste des clubs dont la propriété `isActive` est `true`. Chaque club contient uniquement son `id` et son `name`.
2909
+ * @summary Obtenir la liste des clubs actifs (seulement id et nom)
2910
+ * @param {*} [options] Override http request option.
2911
+ * @throws {RequiredError}
2912
+ */
2913
+ getActiveClubs(options) {
2914
+ return localVarFp.getActiveClubs(options).then((request) => request(axios, basePath));
2915
+ },
2916
+ /**
2917
+ *
2918
+ * @summary Récupérer tous les clubs
2919
+ * @param {*} [options] Override http request option.
2920
+ * @throws {RequiredError}
2921
+ */
2922
+ getAllClubs(options) {
2923
+ return localVarFp.getAllClubs(options).then((request) => request(axios, basePath));
2924
+ },
2925
+ /**
2926
+ *
2927
+ * @summary Récupérer les informations d\'un club
2928
+ * @param {ClubsApiGetClubInfoRequest} requestParameters Request parameters.
2929
+ * @param {*} [options] Override http request option.
2930
+ * @throws {RequiredError}
2931
+ */
2932
+ getClubInfo(requestParameters, options) {
2933
+ return localVarFp.getClubInfo(requestParameters.id, options).then((request) => request(axios, basePath));
2934
+ },
2935
+ /**
2936
+ *
2937
+ * @summary Récupérer les membres d\'un club
2938
+ * @param {ClubsApiGetClubMembersRequest} requestParameters Request parameters.
2939
+ * @param {*} [options] Override http request option.
2940
+ * @throws {RequiredError}
2941
+ */
2942
+ getClubMembers(requestParameters, options) {
2943
+ return localVarFp.getClubMembers(requestParameters.id, options).then((request) => request(axios, basePath));
2944
+ },
2945
+ /**
2946
+ *
2947
+ * @summary Récupérer les rôles d\'un club
2948
+ * @param {ClubsApiGetClubRolesRequest} requestParameters Request parameters.
2949
+ * @param {*} [options] Override http request option.
2950
+ * @throws {RequiredError}
2951
+ */
2952
+ getClubRoles(requestParameters, options) {
2953
+ return localVarFp.getClubRoles(requestParameters.id, options).then((request) => request(axios, basePath));
2954
+ },
2955
+ /**
2956
+ *
2957
+ * @summary Mettre à jour un club existant
2958
+ * @param {ClubsApiUpdateClubRequest} requestParameters Request parameters.
2959
+ * @param {*} [options] Override http request option.
2960
+ * @throws {RequiredError}
2961
+ */
2962
+ updateClub(requestParameters, options) {
2963
+ return localVarFp.updateClub(requestParameters.id, requestParameters.updateClubRequest, options).then((request) => request(axios, basePath));
2964
+ },
2965
+ };
2966
+ };
2967
+ exports.ClubsApiFactory = ClubsApiFactory;
2968
+ /**
2969
+ * ClubsApi - object-oriented interface
2970
+ * @export
2971
+ * @class ClubsApi
2972
+ * @extends {BaseAPI}
2973
+ */
2974
+ class ClubsApi extends base_1.BaseAPI {
2975
+ /**
2976
+ *
2977
+ * @summary Ajouter un membre à un club
2978
+ * @param {ClubsApiAddClubMemberRequest} requestParameters Request parameters.
2979
+ * @param {*} [options] Override http request option.
2980
+ * @throws {RequiredError}
2981
+ * @memberof ClubsApi
2982
+ */
2983
+ addClubMember(requestParameters, options) {
2984
+ return (0, exports.ClubsApiFp)(this.configuration).addClubMember(requestParameters.id, requestParameters.addClubMemberRequest, options).then((request) => request(this.axios, this.basePath));
2985
+ }
2986
+ /**
2987
+ *
2988
+ * @summary Créer un nouveau club
2989
+ * @param {ClubsApiCreateClubRequest} requestParameters Request parameters.
2990
+ * @param {*} [options] Override http request option.
2991
+ * @throws {RequiredError}
2992
+ * @memberof ClubsApi
2993
+ */
2994
+ createClub(requestParameters, options) {
2995
+ return (0, exports.ClubsApiFp)(this.configuration).createClub(requestParameters.createClubRequest, options).then((request) => request(this.axios, this.basePath));
2996
+ }
2997
+ /**
2998
+ *
2999
+ * @summary Supprimer un club
3000
+ * @param {ClubsApiDeleteClubRequest} requestParameters Request parameters.
3001
+ * @param {*} [options] Override http request option.
3002
+ * @throws {RequiredError}
3003
+ * @memberof ClubsApi
3004
+ */
3005
+ deleteClub(requestParameters, options) {
3006
+ return (0, exports.ClubsApiFp)(this.configuration).deleteClub(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
3007
+ }
3008
+ /**
3009
+ * Retourne une liste des clubs dont la propriété `isActive` est `true`. Chaque club contient uniquement son `id` et son `name`.
3010
+ * @summary Obtenir la liste des clubs actifs (seulement id et nom)
3011
+ * @param {*} [options] Override http request option.
3012
+ * @throws {RequiredError}
3013
+ * @memberof ClubsApi
3014
+ */
3015
+ getActiveClubs(options) {
3016
+ return (0, exports.ClubsApiFp)(this.configuration).getActiveClubs(options).then((request) => request(this.axios, this.basePath));
3017
+ }
3018
+ /**
3019
+ *
3020
+ * @summary Récupérer tous les clubs
3021
+ * @param {*} [options] Override http request option.
3022
+ * @throws {RequiredError}
3023
+ * @memberof ClubsApi
3024
+ */
3025
+ getAllClubs(options) {
3026
+ return (0, exports.ClubsApiFp)(this.configuration).getAllClubs(options).then((request) => request(this.axios, this.basePath));
3027
+ }
3028
+ /**
3029
+ *
3030
+ * @summary Récupérer les informations d\'un club
3031
+ * @param {ClubsApiGetClubInfoRequest} requestParameters Request parameters.
3032
+ * @param {*} [options] Override http request option.
3033
+ * @throws {RequiredError}
3034
+ * @memberof ClubsApi
3035
+ */
3036
+ getClubInfo(requestParameters, options) {
3037
+ return (0, exports.ClubsApiFp)(this.configuration).getClubInfo(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
3038
+ }
3039
+ /**
3040
+ *
3041
+ * @summary Récupérer les membres d\'un club
3042
+ * @param {ClubsApiGetClubMembersRequest} requestParameters Request parameters.
3043
+ * @param {*} [options] Override http request option.
3044
+ * @throws {RequiredError}
3045
+ * @memberof ClubsApi
3046
+ */
3047
+ getClubMembers(requestParameters, options) {
3048
+ return (0, exports.ClubsApiFp)(this.configuration).getClubMembers(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
3049
+ }
3050
+ /**
3051
+ *
3052
+ * @summary Récupérer les rôles d\'un club
3053
+ * @param {ClubsApiGetClubRolesRequest} requestParameters Request parameters.
3054
+ * @param {*} [options] Override http request option.
3055
+ * @throws {RequiredError}
3056
+ * @memberof ClubsApi
3057
+ */
3058
+ getClubRoles(requestParameters, options) {
3059
+ return (0, exports.ClubsApiFp)(this.configuration).getClubRoles(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
3060
+ }
3061
+ /**
3062
+ *
3063
+ * @summary Mettre à jour un club existant
3064
+ * @param {ClubsApiUpdateClubRequest} requestParameters Request parameters.
3065
+ * @param {*} [options] Override http request option.
3066
+ * @throws {RequiredError}
3067
+ * @memberof ClubsApi
3068
+ */
3069
+ updateClub(requestParameters, options) {
3070
+ return (0, exports.ClubsApiFp)(this.configuration).updateClub(requestParameters.id, requestParameters.updateClubRequest, options).then((request) => request(this.axios, this.basePath));
3071
+ }
3072
+ }
3073
+ exports.ClubsApi = ClubsApi;
3074
+ /**
3075
+ * SportsApi - axios parameter creator
3076
+ * @export
3077
+ */
3078
+ const SportsApiAxiosParamCreator = function (configuration) {
3079
+ return {
3080
+ /**
3081
+ *
3082
+ * @summary Crée un sport dans un club
3083
+ * @param {CreateSportRequest} createSportRequest
3084
+ * @param {*} [options] Override http request option.
3085
+ * @throws {RequiredError}
3086
+ */
3087
+ createSport: (createSportRequest_1, ...args_1) => __awaiter(this, [createSportRequest_1, ...args_1], void 0, function* (createSportRequest, options = {}) {
3088
+ // verify required parameter 'createSportRequest' is not null or undefined
3089
+ (0, common_1.assertParamExists)('createSport', 'createSportRequest', createSportRequest);
3090
+ const localVarPath = `/api/sports`;
3091
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3092
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3093
+ let baseOptions;
3094
+ if (configuration) {
3095
+ baseOptions = configuration.baseOptions;
3096
+ }
3097
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
3098
+ const localVarHeaderParameter = {};
3099
+ const localVarQueryParameter = {};
3100
+ // authentication bearerAuth required
3101
+ // http bearer authentication required
3102
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
3103
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3104
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3105
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3106
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3107
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createSportRequest, localVarRequestOptions, configuration);
3108
+ return {
3109
+ url: (0, common_1.toPathString)(localVarUrlObj),
3110
+ options: localVarRequestOptions,
3111
+ };
3112
+ }),
3113
+ /**
3114
+ *
3115
+ * @summary Supprime un sport
3116
+ * @param {string} id ID du sport
3117
+ * @param {*} [options] Override http request option.
3118
+ * @throws {RequiredError}
3119
+ */
3120
+ deleteSport: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
3121
+ // verify required parameter 'id' is not null or undefined
3122
+ (0, common_1.assertParamExists)('deleteSport', 'id', id);
3123
+ const localVarPath = `/api/sports/{id}`
3124
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
3125
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3126
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3127
+ let baseOptions;
3128
+ if (configuration) {
3129
+ baseOptions = configuration.baseOptions;
3130
+ }
3131
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
3132
+ const localVarHeaderParameter = {};
3133
+ const localVarQueryParameter = {};
3134
+ // authentication bearerAuth required
3135
+ // http bearer authentication required
3136
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
3137
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3138
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3139
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3140
+ return {
3141
+ url: (0, common_1.toPathString)(localVarUrlObj),
3142
+ options: localVarRequestOptions,
3143
+ };
3144
+ }),
3145
+ /**
3146
+ *
3147
+ * @summary Récupère la liste des sports d’un club
3148
+ * @param {GetAllSportsRequest} getAllSportsRequest
3149
+ * @param {*} [options] Override http request option.
3150
+ * @throws {RequiredError}
3151
+ */
3152
+ getAllSports: (getAllSportsRequest_1, ...args_1) => __awaiter(this, [getAllSportsRequest_1, ...args_1], void 0, function* (getAllSportsRequest, options = {}) {
3153
+ // verify required parameter 'getAllSportsRequest' is not null or undefined
3154
+ (0, common_1.assertParamExists)('getAllSports', 'getAllSportsRequest', getAllSportsRequest);
3155
+ const localVarPath = `/api/sports`;
3156
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3157
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3158
+ let baseOptions;
3159
+ if (configuration) {
3160
+ baseOptions = configuration.baseOptions;
3161
+ }
3162
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3163
+ const localVarHeaderParameter = {};
3164
+ const localVarQueryParameter = {};
3165
+ // authentication bearerAuth required
3166
+ // http bearer authentication required
3167
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
3168
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3169
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3170
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3171
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3172
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(getAllSportsRequest, localVarRequestOptions, configuration);
3173
+ return {
3174
+ url: (0, common_1.toPathString)(localVarUrlObj),
3175
+ options: localVarRequestOptions,
3176
+ };
3177
+ }),
3178
+ /**
3179
+ *
3180
+ * @summary Met à jour un sport
3181
+ * @param {string} id ID du sport
3182
+ * @param {UpdateSportRequest} updateSportRequest
3183
+ * @param {*} [options] Override http request option.
3184
+ * @throws {RequiredError}
3185
+ */
3186
+ updateSport: (id_1, updateSportRequest_1, ...args_1) => __awaiter(this, [id_1, updateSportRequest_1, ...args_1], void 0, function* (id, updateSportRequest, options = {}) {
3187
+ // verify required parameter 'id' is not null or undefined
3188
+ (0, common_1.assertParamExists)('updateSport', 'id', id);
3189
+ // verify required parameter 'updateSportRequest' is not null or undefined
3190
+ (0, common_1.assertParamExists)('updateSport', 'updateSportRequest', updateSportRequest);
3191
+ const localVarPath = `/api/sports/{id}`
3192
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
3193
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3194
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3195
+ let baseOptions;
3196
+ if (configuration) {
3197
+ baseOptions = configuration.baseOptions;
3198
+ }
3199
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
3200
+ const localVarHeaderParameter = {};
3201
+ const localVarQueryParameter = {};
3202
+ // authentication bearerAuth required
3203
+ // http bearer authentication required
3204
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
3205
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3206
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3207
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3208
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3209
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateSportRequest, localVarRequestOptions, configuration);
3210
+ return {
3211
+ url: (0, common_1.toPathString)(localVarUrlObj),
3212
+ options: localVarRequestOptions,
3213
+ };
3214
+ }),
3215
+ };
3216
+ };
3217
+ exports.SportsApiAxiosParamCreator = SportsApiAxiosParamCreator;
3218
+ /**
3219
+ * SportsApi - functional programming interface
3220
+ * @export
3221
+ */
3222
+ const SportsApiFp = function (configuration) {
3223
+ const localVarAxiosParamCreator = (0, exports.SportsApiAxiosParamCreator)(configuration);
3224
+ return {
3225
+ /**
3226
+ *
3227
+ * @summary Crée un sport dans un club
3228
+ * @param {CreateSportRequest} createSportRequest
3229
+ * @param {*} [options] Override http request option.
3230
+ * @throws {RequiredError}
3231
+ */
3232
+ createSport(createSportRequest, options) {
3233
+ return __awaiter(this, void 0, void 0, function* () {
3234
+ var _a, _b, _c;
3235
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createSport(createSportRequest, options);
3236
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3237
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SportsApi.createSport']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3238
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3239
+ });
3240
+ },
3241
+ /**
3242
+ *
3243
+ * @summary Supprime un sport
3244
+ * @param {string} id ID du sport
3245
+ * @param {*} [options] Override http request option.
3246
+ * @throws {RequiredError}
3247
+ */
3248
+ deleteSport(id, options) {
3249
+ return __awaiter(this, void 0, void 0, function* () {
3250
+ var _a, _b, _c;
3251
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteSport(id, options);
3252
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3253
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SportsApi.deleteSport']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3254
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3255
+ });
3256
+ },
3257
+ /**
3258
+ *
3259
+ * @summary Récupère la liste des sports d’un club
3260
+ * @param {GetAllSportsRequest} getAllSportsRequest
3261
+ * @param {*} [options] Override http request option.
3262
+ * @throws {RequiredError}
3263
+ */
3264
+ getAllSports(getAllSportsRequest, options) {
3265
+ return __awaiter(this, void 0, void 0, function* () {
3266
+ var _a, _b, _c;
3267
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getAllSports(getAllSportsRequest, options);
3268
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3269
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SportsApi.getAllSports']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3270
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3271
+ });
3272
+ },
3273
+ /**
3274
+ *
3275
+ * @summary Met à jour un sport
3276
+ * @param {string} id ID du sport
3277
+ * @param {UpdateSportRequest} updateSportRequest
3278
+ * @param {*} [options] Override http request option.
3279
+ * @throws {RequiredError}
3280
+ */
3281
+ updateSport(id, updateSportRequest, options) {
3282
+ return __awaiter(this, void 0, void 0, function* () {
3283
+ var _a, _b, _c;
3284
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateSport(id, updateSportRequest, options);
3285
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3286
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SportsApi.updateSport']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3287
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3288
+ });
3289
+ },
3290
+ };
3291
+ };
3292
+ exports.SportsApiFp = SportsApiFp;
3293
+ /**
3294
+ * SportsApi - factory interface
3295
+ * @export
3296
+ */
3297
+ const SportsApiFactory = function (configuration, basePath, axios) {
3298
+ const localVarFp = (0, exports.SportsApiFp)(configuration);
3299
+ return {
3300
+ /**
3301
+ *
3302
+ * @summary Crée un sport dans un club
3303
+ * @param {SportsApiCreateSportRequest} requestParameters Request parameters.
3304
+ * @param {*} [options] Override http request option.
3305
+ * @throws {RequiredError}
3306
+ */
3307
+ createSport(requestParameters, options) {
3308
+ return localVarFp.createSport(requestParameters.createSportRequest, options).then((request) => request(axios, basePath));
3309
+ },
3310
+ /**
3311
+ *
3312
+ * @summary Supprime un sport
3313
+ * @param {SportsApiDeleteSportRequest} requestParameters Request parameters.
3314
+ * @param {*} [options] Override http request option.
3315
+ * @throws {RequiredError}
3316
+ */
3317
+ deleteSport(requestParameters, options) {
3318
+ return localVarFp.deleteSport(requestParameters.id, options).then((request) => request(axios, basePath));
3319
+ },
3320
+ /**
3321
+ *
3322
+ * @summary Récupère la liste des sports d’un club
3323
+ * @param {SportsApiGetAllSportsRequest} requestParameters Request parameters.
3324
+ * @param {*} [options] Override http request option.
3325
+ * @throws {RequiredError}
3326
+ */
3327
+ getAllSports(requestParameters, options) {
3328
+ return localVarFp.getAllSports(requestParameters.getAllSportsRequest, options).then((request) => request(axios, basePath));
3329
+ },
3330
+ /**
3331
+ *
3332
+ * @summary Met à jour un sport
3333
+ * @param {SportsApiUpdateSportRequest} requestParameters Request parameters.
3334
+ * @param {*} [options] Override http request option.
3335
+ * @throws {RequiredError}
3336
+ */
3337
+ updateSport(requestParameters, options) {
3338
+ return localVarFp.updateSport(requestParameters.id, requestParameters.updateSportRequest, options).then((request) => request(axios, basePath));
3339
+ },
3340
+ };
3341
+ };
3342
+ exports.SportsApiFactory = SportsApiFactory;
3343
+ /**
3344
+ * SportsApi - object-oriented interface
3345
+ * @export
3346
+ * @class SportsApi
3347
+ * @extends {BaseAPI}
3348
+ */
3349
+ class SportsApi extends base_1.BaseAPI {
3350
+ /**
3351
+ *
3352
+ * @summary Crée un sport dans un club
3353
+ * @param {SportsApiCreateSportRequest} requestParameters Request parameters.
3354
+ * @param {*} [options] Override http request option.
3355
+ * @throws {RequiredError}
3356
+ * @memberof SportsApi
3357
+ */
3358
+ createSport(requestParameters, options) {
3359
+ return (0, exports.SportsApiFp)(this.configuration).createSport(requestParameters.createSportRequest, options).then((request) => request(this.axios, this.basePath));
3360
+ }
3361
+ /**
3362
+ *
3363
+ * @summary Supprime un sport
3364
+ * @param {SportsApiDeleteSportRequest} requestParameters Request parameters.
3365
+ * @param {*} [options] Override http request option.
3366
+ * @throws {RequiredError}
3367
+ * @memberof SportsApi
3368
+ */
3369
+ deleteSport(requestParameters, options) {
3370
+ return (0, exports.SportsApiFp)(this.configuration).deleteSport(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
3371
+ }
3372
+ /**
3373
+ *
3374
+ * @summary Récupère la liste des sports d’un club
3375
+ * @param {SportsApiGetAllSportsRequest} requestParameters Request parameters.
3376
+ * @param {*} [options] Override http request option.
3377
+ * @throws {RequiredError}
3378
+ * @memberof SportsApi
3379
+ */
3380
+ getAllSports(requestParameters, options) {
3381
+ return (0, exports.SportsApiFp)(this.configuration).getAllSports(requestParameters.getAllSportsRequest, options).then((request) => request(this.axios, this.basePath));
3382
+ }
3383
+ /**
3384
+ *
3385
+ * @summary Met à jour un sport
3386
+ * @param {SportsApiUpdateSportRequest} requestParameters Request parameters.
3387
+ * @param {*} [options] Override http request option.
3388
+ * @throws {RequiredError}
3389
+ * @memberof SportsApi
3390
+ */
3391
+ updateSport(requestParameters, options) {
3392
+ return (0, exports.SportsApiFp)(this.configuration).updateSport(requestParameters.id, requestParameters.updateSportRequest, options).then((request) => request(this.axios, this.basePath));
3393
+ }
3394
+ }
3395
+ exports.SportsApi = SportsApi;
3396
+ /**
3397
+ * UsersApi - axios parameter creator
3398
+ * @export
3399
+ */
3400
+ const UsersApiAxiosParamCreator = function (configuration) {
3401
+ return {
3402
+ /**
3403
+ *
3404
+ * @summary Annule un abonnement utilisateur
3405
+ * @param {string} clubId ID du club
3406
+ * @param {string} subscriptionId ID de l\'abonnement à annuler
3407
+ * @param {*} [options] Override http request option.
3408
+ * @throws {RequiredError}
3409
+ */
3410
+ cancelSubscription: (clubId_1, subscriptionId_1, ...args_1) => __awaiter(this, [clubId_1, subscriptionId_1, ...args_1], void 0, function* (clubId, subscriptionId, options = {}) {
3411
+ // verify required parameter 'clubId' is not null or undefined
3412
+ (0, common_1.assertParamExists)('cancelSubscription', 'clubId', clubId);
3413
+ // verify required parameter 'subscriptionId' is not null or undefined
3414
+ (0, common_1.assertParamExists)('cancelSubscription', 'subscriptionId', subscriptionId);
3415
+ const localVarPath = `/api/users/me/subscriptions/{clubId}/{subscriptionId}`
3416
+ .replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)))
3417
+ .replace(`{${"subscriptionId"}}`, encodeURIComponent(String(subscriptionId)));
3418
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3419
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3420
+ let baseOptions;
3421
+ if (configuration) {
3422
+ baseOptions = configuration.baseOptions;
3423
+ }
3424
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
3425
+ const localVarHeaderParameter = {};
3426
+ const localVarQueryParameter = {};
3427
+ // authentication bearerAuth required
3428
+ // http bearer authentication required
3429
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
3430
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3431
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3432
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3433
+ return {
3434
+ url: (0, common_1.toPathString)(localVarUrlObj),
3435
+ options: localVarRequestOptions,
3436
+ };
3437
+ }),
3438
+ /**
3439
+ *
3440
+ * @summary Modifie le mot de passe de l\'utilisateur connecté
3441
+ * @param {ChangePasswordRequestBody} changePasswordRequestBody
3442
+ * @param {*} [options] Override http request option.
3443
+ * @throws {RequiredError}
3444
+ */
3445
+ changePassword: (changePasswordRequestBody_1, ...args_1) => __awaiter(this, [changePasswordRequestBody_1, ...args_1], void 0, function* (changePasswordRequestBody, options = {}) {
3446
+ // verify required parameter 'changePasswordRequestBody' is not null or undefined
3447
+ (0, common_1.assertParamExists)('changePassword', 'changePasswordRequestBody', changePasswordRequestBody);
3448
+ const localVarPath = `/api/users/me/password`;
3449
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3450
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3451
+ let baseOptions;
3452
+ if (configuration) {
3453
+ baseOptions = configuration.baseOptions;
3454
+ }
3455
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
3456
+ const localVarHeaderParameter = {};
3457
+ const localVarQueryParameter = {};
3458
+ // authentication bearerAuth required
3459
+ // http bearer authentication required
3460
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
3461
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3462
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3463
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3464
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3465
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(changePasswordRequestBody, localVarRequestOptions, configuration);
3466
+ return {
3467
+ url: (0, common_1.toPathString)(localVarUrlObj),
3468
+ options: localVarRequestOptions,
3469
+ };
3470
+ }),
3471
+ /**
3472
+ *
3473
+ * @summary Récupère la liste des utilisateurs avec filtres et pagination
3474
+ * @param {number} [limit] Nombre maximum d\'utilisateurs à retourner
3475
+ * @param {number} [skip] Nombre d\'utilisateurs à ignorer (pagination)
3476
+ * @param {string} [search] Recherche dans firstName, lastName, email
3477
+ * @param {string} [sport] Filtre par sport
3478
+ * @param {string} [matchType] Filtre par type de match
3479
+ * @param {string} [niveau] Filtre par niveau
3480
+ * @param {string} [rank] Filtre par rang
3481
+ * @param {GetAllUsersIsLookingForPartnerEnum} [isLookingForPartner] Filtre par disponibilité pour partenaire
3482
+ * @param {string} [username] Filtre par nom d\'utilisateur
3483
+ * @param {string} [email] Filtre par email
3484
+ * @param {string} [description] Filtre par description
3485
+ * @param {string} [gender] Filtre par genre
3486
+ * @param {*} [options] Override http request option.
3487
+ * @throws {RequiredError}
3488
+ */
3489
+ getAllUsers: (limit_1, skip_1, search_1, sport_1, matchType_1, niveau_1, rank_1, isLookingForPartner_1, username_1, email_1, description_1, gender_1, ...args_1) => __awaiter(this, [limit_1, skip_1, search_1, sport_1, matchType_1, niveau_1, rank_1, isLookingForPartner_1, username_1, email_1, description_1, gender_1, ...args_1], void 0, function* (limit, skip, search, sport, matchType, niveau, rank, isLookingForPartner, username, email, description, gender, options = {}) {
3490
+ const localVarPath = `/api/users`;
3491
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3492
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3493
+ let baseOptions;
3494
+ if (configuration) {
3495
+ baseOptions = configuration.baseOptions;
3496
+ }
3497
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3498
+ const localVarHeaderParameter = {};
3499
+ const localVarQueryParameter = {};
3500
+ // authentication bearerAuth required
3501
+ // http bearer authentication required
3502
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
3503
+ if (limit !== undefined) {
3504
+ localVarQueryParameter['limit'] = limit;
3505
+ }
3506
+ if (skip !== undefined) {
3507
+ localVarQueryParameter['skip'] = skip;
3508
+ }
3509
+ if (search !== undefined) {
3510
+ localVarQueryParameter['search'] = search;
3511
+ }
3512
+ if (sport !== undefined) {
3513
+ localVarQueryParameter['sport'] = sport;
3514
+ }
3515
+ if (matchType !== undefined) {
3516
+ localVarQueryParameter['matchType'] = matchType;
3517
+ }
3518
+ if (niveau !== undefined) {
3519
+ localVarQueryParameter['niveau'] = niveau;
3520
+ }
3521
+ if (rank !== undefined) {
3522
+ localVarQueryParameter['rank'] = rank;
3523
+ }
3524
+ if (isLookingForPartner !== undefined) {
3525
+ localVarQueryParameter['isLookingForPartner'] = isLookingForPartner;
3526
+ }
3527
+ if (username !== undefined) {
3528
+ localVarQueryParameter['username'] = username;
3529
+ }
3530
+ if (email !== undefined) {
3531
+ localVarQueryParameter['email'] = email;
3532
+ }
3533
+ if (description !== undefined) {
3534
+ localVarQueryParameter['description'] = description;
3535
+ }
3536
+ if (gender !== undefined) {
3537
+ localVarQueryParameter['gender'] = gender;
3538
+ }
3539
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3540
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3541
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3542
+ return {
3543
+ url: (0, common_1.toPathString)(localVarUrlObj),
3544
+ options: localVarRequestOptions,
3545
+ };
3546
+ }),
3547
+ /**
3548
+ *
3549
+ * @summary Récupère les informations de l\'utilisateur connecté
3550
+ * @param {*} [options] Override http request option.
3551
+ * @throws {RequiredError}
3552
+ */
3553
+ getUserInfo: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
3554
+ const localVarPath = `/api/users/me`;
3555
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3556
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3557
+ let baseOptions;
3558
+ if (configuration) {
3559
+ baseOptions = configuration.baseOptions;
3560
+ }
3561
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3562
+ const localVarHeaderParameter = {};
3563
+ const localVarQueryParameter = {};
3564
+ // authentication bearerAuth required
3565
+ // http bearer authentication required
3566
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
3567
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3568
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3569
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3570
+ return {
3571
+ url: (0, common_1.toPathString)(localVarUrlObj),
3572
+ options: localVarRequestOptions,
3573
+ };
3574
+ }),
3575
+ /**
3576
+ *
3577
+ * @summary Récupère les rôles de l\'utilisateur dans les clubs
3578
+ * @param {*} [options] Override http request option.
3579
+ * @throws {RequiredError}
3580
+ */
3581
+ getUserRolesInClubs: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
3582
+ const localVarPath = `/api/users/me/roles`;
3583
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3584
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3585
+ let baseOptions;
3586
+ if (configuration) {
3587
+ baseOptions = configuration.baseOptions;
3588
+ }
3589
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3590
+ const localVarHeaderParameter = {};
3591
+ const localVarQueryParameter = {};
3592
+ // authentication bearerAuth required
3593
+ // http bearer authentication required
3594
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
3595
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3596
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3597
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3598
+ return {
3599
+ url: (0, common_1.toPathString)(localVarUrlObj),
3600
+ options: localVarRequestOptions,
3601
+ };
3602
+ }),
3603
+ /**
3604
+ *
3605
+ * @summary Récupère les abonnements de l\'utilisateur connecté
3606
+ * @param {*} [options] Override http request option.
3607
+ * @throws {RequiredError}
3608
+ */
3609
+ getUserSubscriptions: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
3610
+ const localVarPath = `/api/users/me/subscriptions`;
3611
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3612
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3613
+ let baseOptions;
3614
+ if (configuration) {
3615
+ baseOptions = configuration.baseOptions;
3616
+ }
3617
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3618
+ const localVarHeaderParameter = {};
3619
+ const localVarQueryParameter = {};
3620
+ // authentication bearerAuth required
3621
+ // http bearer authentication required
3622
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
3623
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3624
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3625
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3626
+ return {
3627
+ url: (0, common_1.toPathString)(localVarUrlObj),
3628
+ options: localVarRequestOptions,
3629
+ };
3630
+ }),
3631
+ /**
3632
+ *
3633
+ * @summary Initie une session d\'abonnement Stripe
3634
+ * @param {InitiateSubscriptionSessionRequestBody} initiateSubscriptionSessionRequestBody
3635
+ * @param {*} [options] Override http request option.
3636
+ * @throws {RequiredError}
3637
+ */
3638
+ initiateSubscriptionSession: (initiateSubscriptionSessionRequestBody_1, ...args_1) => __awaiter(this, [initiateSubscriptionSessionRequestBody_1, ...args_1], void 0, function* (initiateSubscriptionSessionRequestBody, options = {}) {
3639
+ // verify required parameter 'initiateSubscriptionSessionRequestBody' is not null or undefined
3640
+ (0, common_1.assertParamExists)('initiateSubscriptionSession', 'initiateSubscriptionSessionRequestBody', initiateSubscriptionSessionRequestBody);
3641
+ const localVarPath = `/api/users/me/subscription-session`;
3642
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3643
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3644
+ let baseOptions;
3645
+ if (configuration) {
3646
+ baseOptions = configuration.baseOptions;
3647
+ }
3648
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
3649
+ const localVarHeaderParameter = {};
3650
+ const localVarQueryParameter = {};
3651
+ // authentication bearerAuth required
3652
+ // http bearer authentication required
3653
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
3654
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3655
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3656
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3657
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3658
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(initiateSubscriptionSessionRequestBody, localVarRequestOptions, configuration);
3659
+ return {
3660
+ url: (0, common_1.toPathString)(localVarUrlObj),
3661
+ options: localVarRequestOptions,
3662
+ };
3663
+ }),
3664
+ /**
3665
+ *
3666
+ * @summary Authentifie un utilisateur
3667
+ * @param {LoginRequestBody} loginRequestBody
3668
+ * @param {*} [options] Override http request option.
3669
+ * @throws {RequiredError}
3670
+ */
3671
+ login: (loginRequestBody_1, ...args_1) => __awaiter(this, [loginRequestBody_1, ...args_1], void 0, function* (loginRequestBody, options = {}) {
3672
+ // verify required parameter 'loginRequestBody' is not null or undefined
3673
+ (0, common_1.assertParamExists)('login', 'loginRequestBody', loginRequestBody);
3674
+ const localVarPath = `/api/users/login`;
3675
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3676
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3677
+ let baseOptions;
3678
+ if (configuration) {
3679
+ baseOptions = configuration.baseOptions;
3680
+ }
3681
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
3682
+ const localVarHeaderParameter = {};
3683
+ const localVarQueryParameter = {};
3684
+ // authentication bearerAuth required
3685
+ // http bearer authentication required
3686
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
3687
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3688
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3689
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3690
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3691
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(loginRequestBody, localVarRequestOptions, configuration);
3692
+ return {
3693
+ url: (0, common_1.toPathString)(localVarUrlObj),
3694
+ options: localVarRequestOptions,
3695
+ };
3696
+ }),
3697
+ /**
3698
+ *
3699
+ * @summary Rafraîchit le token d\'accès
3700
+ * @param {RefreshTokenRequestBody} refreshTokenRequestBody
72
3701
  * @param {*} [options] Override http request option.
73
3702
  * @throws {RequiredError}
74
3703
  */
75
- changePassword: (changePasswordRequestBody_1, ...args_1) => __awaiter(this, [changePasswordRequestBody_1, ...args_1], void 0, function* (changePasswordRequestBody, options = {}) {
76
- // verify required parameter 'changePasswordRequestBody' is not null or undefined
77
- (0, common_1.assertParamExists)('changePassword', 'changePasswordRequestBody', changePasswordRequestBody);
78
- const localVarPath = `/api/users/me/password`;
3704
+ refreshToken: (refreshTokenRequestBody_1, ...args_1) => __awaiter(this, [refreshTokenRequestBody_1, ...args_1], void 0, function* (refreshTokenRequestBody, options = {}) {
3705
+ // verify required parameter 'refreshTokenRequestBody' is not null or undefined
3706
+ (0, common_1.assertParamExists)('refreshToken', 'refreshTokenRequestBody', refreshTokenRequestBody);
3707
+ const localVarPath = `/api/users/refresh-token`;
79
3708
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
80
3709
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
81
3710
  let baseOptions;
82
3711
  if (configuration) {
83
3712
  baseOptions = configuration.baseOptions;
84
3713
  }
85
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
3714
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
86
3715
  const localVarHeaderParameter = {};
87
3716
  const localVarQueryParameter = {};
88
3717
  // authentication bearerAuth required
@@ -92,7 +3721,7 @@ const UsersApiAxiosParamCreator = function (configuration) {
92
3721
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
93
3722
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
94
3723
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
95
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(changePasswordRequestBody, localVarRequestOptions, configuration);
3724
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(refreshTokenRequestBody, localVarRequestOptions, configuration);
96
3725
  return {
97
3726
  url: (0, common_1.toPathString)(localVarUrlObj),
98
3727
  options: localVarRequestOptions,
@@ -100,11 +3729,14 @@ const UsersApiAxiosParamCreator = function (configuration) {
100
3729
  }),
101
3730
  /**
102
3731
  *
103
- * @summary Récupère la liste des utilisateurs
3732
+ * @summary Crée un nouvel utilisateur
3733
+ * @param {RegisterRequestBody} registerRequestBody
104
3734
  * @param {*} [options] Override http request option.
105
3735
  * @throws {RequiredError}
106
3736
  */
107
- getAllUsers: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
3737
+ register: (registerRequestBody_1, ...args_1) => __awaiter(this, [registerRequestBody_1, ...args_1], void 0, function* (registerRequestBody, options = {}) {
3738
+ // verify required parameter 'registerRequestBody' is not null or undefined
3739
+ (0, common_1.assertParamExists)('register', 'registerRequestBody', registerRequestBody);
108
3740
  const localVarPath = `/api/users`;
109
3741
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
110
3742
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -112,15 +3744,17 @@ const UsersApiAxiosParamCreator = function (configuration) {
112
3744
  if (configuration) {
113
3745
  baseOptions = configuration.baseOptions;
114
3746
  }
115
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3747
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
116
3748
  const localVarHeaderParameter = {};
117
3749
  const localVarQueryParameter = {};
118
3750
  // authentication bearerAuth required
119
3751
  // http bearer authentication required
120
3752
  yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
3753
+ localVarHeaderParameter['Content-Type'] = 'application/json';
121
3754
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
122
3755
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
123
3756
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3757
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(registerRequestBody, localVarRequestOptions, configuration);
124
3758
  return {
125
3759
  url: (0, common_1.toPathString)(localVarUrlObj),
126
3760
  options: localVarRequestOptions,
@@ -128,19 +3762,27 @@ const UsersApiAxiosParamCreator = function (configuration) {
128
3762
  }),
129
3763
  /**
130
3764
  *
131
- * @summary Récupère les informations de l\'utilisateur connecté
3765
+ * @summary Réactive un abonnement utilisateur
3766
+ * @param {string} clubId ID du club
3767
+ * @param {string} subscriptionId ID de l\'abonnement à réactiver
132
3768
  * @param {*} [options] Override http request option.
133
3769
  * @throws {RequiredError}
134
3770
  */
135
- getUserInfo: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
136
- const localVarPath = `/api/users/me`;
3771
+ resumeSubscription: (clubId_1, subscriptionId_1, ...args_1) => __awaiter(this, [clubId_1, subscriptionId_1, ...args_1], void 0, function* (clubId, subscriptionId, options = {}) {
3772
+ // verify required parameter 'clubId' is not null or undefined
3773
+ (0, common_1.assertParamExists)('resumeSubscription', 'clubId', clubId);
3774
+ // verify required parameter 'subscriptionId' is not null or undefined
3775
+ (0, common_1.assertParamExists)('resumeSubscription', 'subscriptionId', subscriptionId);
3776
+ const localVarPath = `/api/users/me/subscriptions/{clubId}/{subscriptionId}/resume`
3777
+ .replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)))
3778
+ .replace(`{${"subscriptionId"}}`, encodeURIComponent(String(subscriptionId)));
137
3779
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
138
3780
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
139
3781
  let baseOptions;
140
3782
  if (configuration) {
141
3783
  baseOptions = configuration.baseOptions;
142
3784
  }
143
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3785
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
144
3786
  const localVarHeaderParameter = {};
145
3787
  const localVarQueryParameter = {};
146
3788
  // authentication bearerAuth required
@@ -156,15 +3798,15 @@ const UsersApiAxiosParamCreator = function (configuration) {
156
3798
  }),
157
3799
  /**
158
3800
  *
159
- * @summary Authentifie un utilisateur
160
- * @param {LoginRequestBody} loginRequestBody
3801
+ * @summary Authentifie ou crée un utilisateur via Google OAuth
3802
+ * @param {GoogleSignInRequestBody} googleSignInRequestBody
161
3803
  * @param {*} [options] Override http request option.
162
3804
  * @throws {RequiredError}
163
3805
  */
164
- login: (loginRequestBody_1, ...args_1) => __awaiter(this, [loginRequestBody_1, ...args_1], void 0, function* (loginRequestBody, options = {}) {
165
- // verify required parameter 'loginRequestBody' is not null or undefined
166
- (0, common_1.assertParamExists)('login', 'loginRequestBody', loginRequestBody);
167
- const localVarPath = `/api/users/login`;
3806
+ signInOrSignUpWithGoogle: (googleSignInRequestBody_1, ...args_1) => __awaiter(this, [googleSignInRequestBody_1, ...args_1], void 0, function* (googleSignInRequestBody, options = {}) {
3807
+ // verify required parameter 'googleSignInRequestBody' is not null or undefined
3808
+ (0, common_1.assertParamExists)('signInOrSignUpWithGoogle', 'googleSignInRequestBody', googleSignInRequestBody);
3809
+ const localVarPath = `/api/users/googleSignin`;
168
3810
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
169
3811
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
170
3812
  let baseOptions;
@@ -181,7 +3823,7 @@ const UsersApiAxiosParamCreator = function (configuration) {
181
3823
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
182
3824
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
183
3825
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
184
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(loginRequestBody, localVarRequestOptions, configuration);
3826
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(googleSignInRequestBody, localVarRequestOptions, configuration);
185
3827
  return {
186
3828
  url: (0, common_1.toPathString)(localVarUrlObj),
187
3829
  options: localVarRequestOptions,
@@ -189,15 +3831,15 @@ const UsersApiAxiosParamCreator = function (configuration) {
189
3831
  }),
190
3832
  /**
191
3833
  *
192
- * @summary Rafraîchit le token d\'accès
193
- * @param {RefreshTokenRequestBody} refreshTokenRequestBody
3834
+ * @summary Abonne l\'utilisateur connecté à un club
3835
+ * @param {SubscribeToClubRequestBody} subscribeToClubRequestBody
194
3836
  * @param {*} [options] Override http request option.
195
3837
  * @throws {RequiredError}
196
3838
  */
197
- refreshToken: (refreshTokenRequestBody_1, ...args_1) => __awaiter(this, [refreshTokenRequestBody_1, ...args_1], void 0, function* (refreshTokenRequestBody, options = {}) {
198
- // verify required parameter 'refreshTokenRequestBody' is not null or undefined
199
- (0, common_1.assertParamExists)('refreshToken', 'refreshTokenRequestBody', refreshTokenRequestBody);
200
- const localVarPath = `/api/users/refresh-token`;
3839
+ subscribeToClub: (subscribeToClubRequestBody_1, ...args_1) => __awaiter(this, [subscribeToClubRequestBody_1, ...args_1], void 0, function* (subscribeToClubRequestBody, options = {}) {
3840
+ // verify required parameter 'subscribeToClubRequestBody' is not null or undefined
3841
+ (0, common_1.assertParamExists)('subscribeToClub', 'subscribeToClubRequestBody', subscribeToClubRequestBody);
3842
+ const localVarPath = `/api/users/me/subscribe`;
201
3843
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
202
3844
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
203
3845
  let baseOptions;
@@ -214,7 +3856,7 @@ const UsersApiAxiosParamCreator = function (configuration) {
214
3856
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
215
3857
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
216
3858
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
217
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(refreshTokenRequestBody, localVarRequestOptions, configuration);
3859
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(subscribeToClubRequestBody, localVarRequestOptions, configuration);
218
3860
  return {
219
3861
  url: (0, common_1.toPathString)(localVarUrlObj),
220
3862
  options: localVarRequestOptions,
@@ -222,22 +3864,22 @@ const UsersApiAxiosParamCreator = function (configuration) {
222
3864
  }),
223
3865
  /**
224
3866
  *
225
- * @summary Crée un nouvel utilisateur
226
- * @param {RegisterRequestBody} registerRequestBody
3867
+ * @summary Met à jour le Customer Stripe de l\'utilisateur
3868
+ * @param {UpdateCustomerRequestBody} updateCustomerRequestBody
227
3869
  * @param {*} [options] Override http request option.
228
3870
  * @throws {RequiredError}
229
3871
  */
230
- register: (registerRequestBody_1, ...args_1) => __awaiter(this, [registerRequestBody_1, ...args_1], void 0, function* (registerRequestBody, options = {}) {
231
- // verify required parameter 'registerRequestBody' is not null or undefined
232
- (0, common_1.assertParamExists)('register', 'registerRequestBody', registerRequestBody);
233
- const localVarPath = `/api/users`;
3872
+ updateCustomer: (updateCustomerRequestBody_1, ...args_1) => __awaiter(this, [updateCustomerRequestBody_1, ...args_1], void 0, function* (updateCustomerRequestBody, options = {}) {
3873
+ // verify required parameter 'updateCustomerRequestBody' is not null or undefined
3874
+ (0, common_1.assertParamExists)('updateCustomer', 'updateCustomerRequestBody', updateCustomerRequestBody);
3875
+ const localVarPath = `/api/users/me/customer`;
234
3876
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
235
3877
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
236
3878
  let baseOptions;
237
3879
  if (configuration) {
238
3880
  baseOptions = configuration.baseOptions;
239
3881
  }
240
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
3882
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
241
3883
  const localVarHeaderParameter = {};
242
3884
  const localVarQueryParameter = {};
243
3885
  // authentication bearerAuth required
@@ -247,7 +3889,7 @@ const UsersApiAxiosParamCreator = function (configuration) {
247
3889
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
248
3890
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
249
3891
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
250
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(registerRequestBody, localVarRequestOptions, configuration);
3892
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateCustomerRequestBody, localVarRequestOptions, configuration);
251
3893
  return {
252
3894
  url: (0, common_1.toPathString)(localVarUrlObj),
253
3895
  options: localVarRequestOptions,
@@ -296,6 +3938,23 @@ exports.UsersApiAxiosParamCreator = UsersApiAxiosParamCreator;
296
3938
  const UsersApiFp = function (configuration) {
297
3939
  const localVarAxiosParamCreator = (0, exports.UsersApiAxiosParamCreator)(configuration);
298
3940
  return {
3941
+ /**
3942
+ *
3943
+ * @summary Annule un abonnement utilisateur
3944
+ * @param {string} clubId ID du club
3945
+ * @param {string} subscriptionId ID de l\'abonnement à annuler
3946
+ * @param {*} [options] Override http request option.
3947
+ * @throws {RequiredError}
3948
+ */
3949
+ cancelSubscription(clubId, subscriptionId, options) {
3950
+ return __awaiter(this, void 0, void 0, function* () {
3951
+ var _a, _b, _c;
3952
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.cancelSubscription(clubId, subscriptionId, options);
3953
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3954
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UsersApi.cancelSubscription']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3955
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3956
+ });
3957
+ },
299
3958
  /**
300
3959
  *
301
3960
  * @summary Modifie le mot de passe de l\'utilisateur connecté
@@ -314,14 +3973,26 @@ const UsersApiFp = function (configuration) {
314
3973
  },
315
3974
  /**
316
3975
  *
317
- * @summary Récupère la liste des utilisateurs
3976
+ * @summary Récupère la liste des utilisateurs avec filtres et pagination
3977
+ * @param {number} [limit] Nombre maximum d\'utilisateurs à retourner
3978
+ * @param {number} [skip] Nombre d\'utilisateurs à ignorer (pagination)
3979
+ * @param {string} [search] Recherche dans firstName, lastName, email
3980
+ * @param {string} [sport] Filtre par sport
3981
+ * @param {string} [matchType] Filtre par type de match
3982
+ * @param {string} [niveau] Filtre par niveau
3983
+ * @param {string} [rank] Filtre par rang
3984
+ * @param {GetAllUsersIsLookingForPartnerEnum} [isLookingForPartner] Filtre par disponibilité pour partenaire
3985
+ * @param {string} [username] Filtre par nom d\'utilisateur
3986
+ * @param {string} [email] Filtre par email
3987
+ * @param {string} [description] Filtre par description
3988
+ * @param {string} [gender] Filtre par genre
318
3989
  * @param {*} [options] Override http request option.
319
3990
  * @throws {RequiredError}
320
3991
  */
321
- getAllUsers(options) {
3992
+ getAllUsers(limit, skip, search, sport, matchType, niveau, rank, isLookingForPartner, username, email, description, gender, options) {
322
3993
  return __awaiter(this, void 0, void 0, function* () {
323
3994
  var _a, _b, _c;
324
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getAllUsers(options);
3995
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getAllUsers(limit, skip, search, sport, matchType, niveau, rank, isLookingForPartner, username, email, description, gender, options);
325
3996
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
326
3997
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UsersApi.getAllUsers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
327
3998
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -342,6 +4013,52 @@ const UsersApiFp = function (configuration) {
342
4013
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
343
4014
  });
344
4015
  },
4016
+ /**
4017
+ *
4018
+ * @summary Récupère les rôles de l\'utilisateur dans les clubs
4019
+ * @param {*} [options] Override http request option.
4020
+ * @throws {RequiredError}
4021
+ */
4022
+ getUserRolesInClubs(options) {
4023
+ return __awaiter(this, void 0, void 0, function* () {
4024
+ var _a, _b, _c;
4025
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserRolesInClubs(options);
4026
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4027
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UsersApi.getUserRolesInClubs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4028
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4029
+ });
4030
+ },
4031
+ /**
4032
+ *
4033
+ * @summary Récupère les abonnements de l\'utilisateur connecté
4034
+ * @param {*} [options] Override http request option.
4035
+ * @throws {RequiredError}
4036
+ */
4037
+ getUserSubscriptions(options) {
4038
+ return __awaiter(this, void 0, void 0, function* () {
4039
+ var _a, _b, _c;
4040
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserSubscriptions(options);
4041
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4042
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UsersApi.getUserSubscriptions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4043
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4044
+ });
4045
+ },
4046
+ /**
4047
+ *
4048
+ * @summary Initie une session d\'abonnement Stripe
4049
+ * @param {InitiateSubscriptionSessionRequestBody} initiateSubscriptionSessionRequestBody
4050
+ * @param {*} [options] Override http request option.
4051
+ * @throws {RequiredError}
4052
+ */
4053
+ initiateSubscriptionSession(initiateSubscriptionSessionRequestBody, options) {
4054
+ return __awaiter(this, void 0, void 0, function* () {
4055
+ var _a, _b, _c;
4056
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.initiateSubscriptionSession(initiateSubscriptionSessionRequestBody, options);
4057
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4058
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UsersApi.initiateSubscriptionSession']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4059
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4060
+ });
4061
+ },
345
4062
  /**
346
4063
  *
347
4064
  * @summary Authentifie un utilisateur
@@ -390,6 +4107,71 @@ const UsersApiFp = function (configuration) {
390
4107
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
391
4108
  });
392
4109
  },
4110
+ /**
4111
+ *
4112
+ * @summary Réactive un abonnement utilisateur
4113
+ * @param {string} clubId ID du club
4114
+ * @param {string} subscriptionId ID de l\'abonnement à réactiver
4115
+ * @param {*} [options] Override http request option.
4116
+ * @throws {RequiredError}
4117
+ */
4118
+ resumeSubscription(clubId, subscriptionId, options) {
4119
+ return __awaiter(this, void 0, void 0, function* () {
4120
+ var _a, _b, _c;
4121
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.resumeSubscription(clubId, subscriptionId, options);
4122
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4123
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UsersApi.resumeSubscription']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4124
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4125
+ });
4126
+ },
4127
+ /**
4128
+ *
4129
+ * @summary Authentifie ou crée un utilisateur via Google OAuth
4130
+ * @param {GoogleSignInRequestBody} googleSignInRequestBody
4131
+ * @param {*} [options] Override http request option.
4132
+ * @throws {RequiredError}
4133
+ */
4134
+ signInOrSignUpWithGoogle(googleSignInRequestBody, options) {
4135
+ return __awaiter(this, void 0, void 0, function* () {
4136
+ var _a, _b, _c;
4137
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.signInOrSignUpWithGoogle(googleSignInRequestBody, options);
4138
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4139
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UsersApi.signInOrSignUpWithGoogle']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4140
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4141
+ });
4142
+ },
4143
+ /**
4144
+ *
4145
+ * @summary Abonne l\'utilisateur connecté à un club
4146
+ * @param {SubscribeToClubRequestBody} subscribeToClubRequestBody
4147
+ * @param {*} [options] Override http request option.
4148
+ * @throws {RequiredError}
4149
+ */
4150
+ subscribeToClub(subscribeToClubRequestBody, options) {
4151
+ return __awaiter(this, void 0, void 0, function* () {
4152
+ var _a, _b, _c;
4153
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.subscribeToClub(subscribeToClubRequestBody, options);
4154
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4155
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UsersApi.subscribeToClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4156
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4157
+ });
4158
+ },
4159
+ /**
4160
+ *
4161
+ * @summary Met à jour le Customer Stripe de l\'utilisateur
4162
+ * @param {UpdateCustomerRequestBody} updateCustomerRequestBody
4163
+ * @param {*} [options] Override http request option.
4164
+ * @throws {RequiredError}
4165
+ */
4166
+ updateCustomer(updateCustomerRequestBody, options) {
4167
+ return __awaiter(this, void 0, void 0, function* () {
4168
+ var _a, _b, _c;
4169
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateCustomer(updateCustomerRequestBody, options);
4170
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4171
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UsersApi.updateCustomer']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4172
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4173
+ });
4174
+ },
393
4175
  /**
394
4176
  *
395
4177
  * @summary Met à jour les données de l\'utilisateur connecté
@@ -416,6 +4198,16 @@ exports.UsersApiFp = UsersApiFp;
416
4198
  const UsersApiFactory = function (configuration, basePath, axios) {
417
4199
  const localVarFp = (0, exports.UsersApiFp)(configuration);
418
4200
  return {
4201
+ /**
4202
+ *
4203
+ * @summary Annule un abonnement utilisateur
4204
+ * @param {UsersApiCancelSubscriptionRequest} requestParameters Request parameters.
4205
+ * @param {*} [options] Override http request option.
4206
+ * @throws {RequiredError}
4207
+ */
4208
+ cancelSubscription(requestParameters, options) {
4209
+ return localVarFp.cancelSubscription(requestParameters.clubId, requestParameters.subscriptionId, options).then((request) => request(axios, basePath));
4210
+ },
419
4211
  /**
420
4212
  *
421
4213
  * @summary Modifie le mot de passe de l\'utilisateur connecté
@@ -428,12 +4220,13 @@ const UsersApiFactory = function (configuration, basePath, axios) {
428
4220
  },
429
4221
  /**
430
4222
  *
431
- * @summary Récupère la liste des utilisateurs
4223
+ * @summary Récupère la liste des utilisateurs avec filtres et pagination
4224
+ * @param {UsersApiGetAllUsersRequest} requestParameters Request parameters.
432
4225
  * @param {*} [options] Override http request option.
433
4226
  * @throws {RequiredError}
434
4227
  */
435
- getAllUsers(options) {
436
- return localVarFp.getAllUsers(options).then((request) => request(axios, basePath));
4228
+ getAllUsers(requestParameters = {}, options) {
4229
+ return localVarFp.getAllUsers(requestParameters.limit, requestParameters.skip, requestParameters.search, requestParameters.sport, requestParameters.matchType, requestParameters.niveau, requestParameters.rank, requestParameters.isLookingForPartner, requestParameters.username, requestParameters.email, requestParameters.description, requestParameters.gender, options).then((request) => request(axios, basePath));
437
4230
  },
438
4231
  /**
439
4232
  *
@@ -444,6 +4237,34 @@ const UsersApiFactory = function (configuration, basePath, axios) {
444
4237
  getUserInfo(options) {
445
4238
  return localVarFp.getUserInfo(options).then((request) => request(axios, basePath));
446
4239
  },
4240
+ /**
4241
+ *
4242
+ * @summary Récupère les rôles de l\'utilisateur dans les clubs
4243
+ * @param {*} [options] Override http request option.
4244
+ * @throws {RequiredError}
4245
+ */
4246
+ getUserRolesInClubs(options) {
4247
+ return localVarFp.getUserRolesInClubs(options).then((request) => request(axios, basePath));
4248
+ },
4249
+ /**
4250
+ *
4251
+ * @summary Récupère les abonnements de l\'utilisateur connecté
4252
+ * @param {*} [options] Override http request option.
4253
+ * @throws {RequiredError}
4254
+ */
4255
+ getUserSubscriptions(options) {
4256
+ return localVarFp.getUserSubscriptions(options).then((request) => request(axios, basePath));
4257
+ },
4258
+ /**
4259
+ *
4260
+ * @summary Initie une session d\'abonnement Stripe
4261
+ * @param {UsersApiInitiateSubscriptionSessionRequest} requestParameters Request parameters.
4262
+ * @param {*} [options] Override http request option.
4263
+ * @throws {RequiredError}
4264
+ */
4265
+ initiateSubscriptionSession(requestParameters, options) {
4266
+ return localVarFp.initiateSubscriptionSession(requestParameters.initiateSubscriptionSessionRequestBody, options).then((request) => request(axios, basePath));
4267
+ },
447
4268
  /**
448
4269
  *
449
4270
  * @summary Authentifie un utilisateur
@@ -474,6 +4295,46 @@ const UsersApiFactory = function (configuration, basePath, axios) {
474
4295
  register(requestParameters, options) {
475
4296
  return localVarFp.register(requestParameters.registerRequestBody, options).then((request) => request(axios, basePath));
476
4297
  },
4298
+ /**
4299
+ *
4300
+ * @summary Réactive un abonnement utilisateur
4301
+ * @param {UsersApiResumeSubscriptionRequest} requestParameters Request parameters.
4302
+ * @param {*} [options] Override http request option.
4303
+ * @throws {RequiredError}
4304
+ */
4305
+ resumeSubscription(requestParameters, options) {
4306
+ return localVarFp.resumeSubscription(requestParameters.clubId, requestParameters.subscriptionId, options).then((request) => request(axios, basePath));
4307
+ },
4308
+ /**
4309
+ *
4310
+ * @summary Authentifie ou crée un utilisateur via Google OAuth
4311
+ * @param {UsersApiSignInOrSignUpWithGoogleRequest} requestParameters Request parameters.
4312
+ * @param {*} [options] Override http request option.
4313
+ * @throws {RequiredError}
4314
+ */
4315
+ signInOrSignUpWithGoogle(requestParameters, options) {
4316
+ return localVarFp.signInOrSignUpWithGoogle(requestParameters.googleSignInRequestBody, options).then((request) => request(axios, basePath));
4317
+ },
4318
+ /**
4319
+ *
4320
+ * @summary Abonne l\'utilisateur connecté à un club
4321
+ * @param {UsersApiSubscribeToClubRequest} requestParameters Request parameters.
4322
+ * @param {*} [options] Override http request option.
4323
+ * @throws {RequiredError}
4324
+ */
4325
+ subscribeToClub(requestParameters, options) {
4326
+ return localVarFp.subscribeToClub(requestParameters.subscribeToClubRequestBody, options).then((request) => request(axios, basePath));
4327
+ },
4328
+ /**
4329
+ *
4330
+ * @summary Met à jour le Customer Stripe de l\'utilisateur
4331
+ * @param {UsersApiUpdateCustomerRequest} requestParameters Request parameters.
4332
+ * @param {*} [options] Override http request option.
4333
+ * @throws {RequiredError}
4334
+ */
4335
+ updateCustomer(requestParameters, options) {
4336
+ return localVarFp.updateCustomer(requestParameters.updateCustomerRequestBody, options).then((request) => request(axios, basePath));
4337
+ },
477
4338
  /**
478
4339
  *
479
4340
  * @summary Met à jour les données de l\'utilisateur connecté
@@ -494,6 +4355,17 @@ exports.UsersApiFactory = UsersApiFactory;
494
4355
  * @extends {BaseAPI}
495
4356
  */
496
4357
  class UsersApi extends base_1.BaseAPI {
4358
+ /**
4359
+ *
4360
+ * @summary Annule un abonnement utilisateur
4361
+ * @param {UsersApiCancelSubscriptionRequest} requestParameters Request parameters.
4362
+ * @param {*} [options] Override http request option.
4363
+ * @throws {RequiredError}
4364
+ * @memberof UsersApi
4365
+ */
4366
+ cancelSubscription(requestParameters, options) {
4367
+ return (0, exports.UsersApiFp)(this.configuration).cancelSubscription(requestParameters.clubId, requestParameters.subscriptionId, options).then((request) => request(this.axios, this.basePath));
4368
+ }
497
4369
  /**
498
4370
  *
499
4371
  * @summary Modifie le mot de passe de l\'utilisateur connecté
@@ -507,13 +4379,14 @@ class UsersApi extends base_1.BaseAPI {
507
4379
  }
508
4380
  /**
509
4381
  *
510
- * @summary Récupère la liste des utilisateurs
4382
+ * @summary Récupère la liste des utilisateurs avec filtres et pagination
4383
+ * @param {UsersApiGetAllUsersRequest} requestParameters Request parameters.
511
4384
  * @param {*} [options] Override http request option.
512
4385
  * @throws {RequiredError}
513
4386
  * @memberof UsersApi
514
4387
  */
515
- getAllUsers(options) {
516
- return (0, exports.UsersApiFp)(this.configuration).getAllUsers(options).then((request) => request(this.axios, this.basePath));
4388
+ getAllUsers(requestParameters = {}, options) {
4389
+ return (0, exports.UsersApiFp)(this.configuration).getAllUsers(requestParameters.limit, requestParameters.skip, requestParameters.search, requestParameters.sport, requestParameters.matchType, requestParameters.niveau, requestParameters.rank, requestParameters.isLookingForPartner, requestParameters.username, requestParameters.email, requestParameters.description, requestParameters.gender, options).then((request) => request(this.axios, this.basePath));
517
4390
  }
518
4391
  /**
519
4392
  *
@@ -525,6 +4398,37 @@ class UsersApi extends base_1.BaseAPI {
525
4398
  getUserInfo(options) {
526
4399
  return (0, exports.UsersApiFp)(this.configuration).getUserInfo(options).then((request) => request(this.axios, this.basePath));
527
4400
  }
4401
+ /**
4402
+ *
4403
+ * @summary Récupère les rôles de l\'utilisateur dans les clubs
4404
+ * @param {*} [options] Override http request option.
4405
+ * @throws {RequiredError}
4406
+ * @memberof UsersApi
4407
+ */
4408
+ getUserRolesInClubs(options) {
4409
+ return (0, exports.UsersApiFp)(this.configuration).getUserRolesInClubs(options).then((request) => request(this.axios, this.basePath));
4410
+ }
4411
+ /**
4412
+ *
4413
+ * @summary Récupère les abonnements de l\'utilisateur connecté
4414
+ * @param {*} [options] Override http request option.
4415
+ * @throws {RequiredError}
4416
+ * @memberof UsersApi
4417
+ */
4418
+ getUserSubscriptions(options) {
4419
+ return (0, exports.UsersApiFp)(this.configuration).getUserSubscriptions(options).then((request) => request(this.axios, this.basePath));
4420
+ }
4421
+ /**
4422
+ *
4423
+ * @summary Initie une session d\'abonnement Stripe
4424
+ * @param {UsersApiInitiateSubscriptionSessionRequest} requestParameters Request parameters.
4425
+ * @param {*} [options] Override http request option.
4426
+ * @throws {RequiredError}
4427
+ * @memberof UsersApi
4428
+ */
4429
+ initiateSubscriptionSession(requestParameters, options) {
4430
+ return (0, exports.UsersApiFp)(this.configuration).initiateSubscriptionSession(requestParameters.initiateSubscriptionSessionRequestBody, options).then((request) => request(this.axios, this.basePath));
4431
+ }
528
4432
  /**
529
4433
  *
530
4434
  * @summary Authentifie un utilisateur
@@ -558,6 +4462,50 @@ class UsersApi extends base_1.BaseAPI {
558
4462
  register(requestParameters, options) {
559
4463
  return (0, exports.UsersApiFp)(this.configuration).register(requestParameters.registerRequestBody, options).then((request) => request(this.axios, this.basePath));
560
4464
  }
4465
+ /**
4466
+ *
4467
+ * @summary Réactive un abonnement utilisateur
4468
+ * @param {UsersApiResumeSubscriptionRequest} requestParameters Request parameters.
4469
+ * @param {*} [options] Override http request option.
4470
+ * @throws {RequiredError}
4471
+ * @memberof UsersApi
4472
+ */
4473
+ resumeSubscription(requestParameters, options) {
4474
+ return (0, exports.UsersApiFp)(this.configuration).resumeSubscription(requestParameters.clubId, requestParameters.subscriptionId, options).then((request) => request(this.axios, this.basePath));
4475
+ }
4476
+ /**
4477
+ *
4478
+ * @summary Authentifie ou crée un utilisateur via Google OAuth
4479
+ * @param {UsersApiSignInOrSignUpWithGoogleRequest} requestParameters Request parameters.
4480
+ * @param {*} [options] Override http request option.
4481
+ * @throws {RequiredError}
4482
+ * @memberof UsersApi
4483
+ */
4484
+ signInOrSignUpWithGoogle(requestParameters, options) {
4485
+ return (0, exports.UsersApiFp)(this.configuration).signInOrSignUpWithGoogle(requestParameters.googleSignInRequestBody, options).then((request) => request(this.axios, this.basePath));
4486
+ }
4487
+ /**
4488
+ *
4489
+ * @summary Abonne l\'utilisateur connecté à un club
4490
+ * @param {UsersApiSubscribeToClubRequest} requestParameters Request parameters.
4491
+ * @param {*} [options] Override http request option.
4492
+ * @throws {RequiredError}
4493
+ * @memberof UsersApi
4494
+ */
4495
+ subscribeToClub(requestParameters, options) {
4496
+ return (0, exports.UsersApiFp)(this.configuration).subscribeToClub(requestParameters.subscribeToClubRequestBody, options).then((request) => request(this.axios, this.basePath));
4497
+ }
4498
+ /**
4499
+ *
4500
+ * @summary Met à jour le Customer Stripe de l\'utilisateur
4501
+ * @param {UsersApiUpdateCustomerRequest} requestParameters Request parameters.
4502
+ * @param {*} [options] Override http request option.
4503
+ * @throws {RequiredError}
4504
+ * @memberof UsersApi
4505
+ */
4506
+ updateCustomer(requestParameters, options) {
4507
+ return (0, exports.UsersApiFp)(this.configuration).updateCustomer(requestParameters.updateCustomerRequestBody, options).then((request) => request(this.axios, this.basePath));
4508
+ }
561
4509
  /**
562
4510
  *
563
4511
  * @summary Met à jour les données de l\'utilisateur connecté
@@ -571,3 +4519,10 @@ class UsersApi extends base_1.BaseAPI {
571
4519
  }
572
4520
  }
573
4521
  exports.UsersApi = UsersApi;
4522
+ /**
4523
+ * @export
4524
+ */
4525
+ exports.GetAllUsersIsLookingForPartnerEnum = {
4526
+ True: 'true',
4527
+ False: 'false'
4528
+ };