@tennac-booking/sdk 1.0.18 → 1.0.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +22 -0
- package/README.md +31 -3
- package/api.ts +1983 -271
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +1472 -245
- package/dist/api.js +944 -116
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +1472 -245
- package/dist/esm/api.js +927 -111
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/BookingPaymentStatusResponse.md +24 -0
- package/docs/BookingPaymentStatusResponseBooking.md +26 -0
- package/docs/BookingPaymentStatusResponsePaymentStatusInner.md +36 -0
- package/docs/BookingPaymentStatusResponseSummary.md +28 -0
- package/docs/BookingsApi.md +68 -0
- package/docs/CancelBookingRequest.md +20 -0
- package/docs/CancelBookingResponse.md +2 -2
- package/docs/CancelBookingResponseBooking.md +6 -6
- package/docs/CheckInPlayersRequest.md +20 -0
- package/docs/CheckInPlayersResponse.md +30 -0
- package/docs/CheckInPlayersResponseCheckedInPlayersInner.md +34 -0
- package/docs/ClubAnalyticsApi.md +253 -0
- package/docs/ClubInfoResponse.md +2 -0
- package/docs/DailyTurnoverResponse.md +24 -0
- package/docs/GetLastSixMonthsTurnover200ResponseInner.md +1 -1
- package/docs/InvoicesResponse.md +22 -0
- package/docs/InvoicesResponseInvoicesInner.md +34 -0
- package/docs/InvoicesResponsePagination.md +26 -0
- package/docs/ManagerBookingsApi.md +243 -0
- package/docs/ManagerCancelBookingRequest.md +20 -0
- package/docs/ManagerCancelBookingResponse.md +2 -2
- package/docs/ManagerCancelBookingResponseBooking.md +6 -6
- package/docs/MonthlyTurnoverResponse.md +28 -0
- package/docs/NoShowFeeResponse.md +30 -0
- package/docs/NoShowFeeResponseCaptureResultsInner.md +30 -0
- package/docs/NoShowFeeResponseCreatorChargeResult.md +26 -0
- package/docs/StaffClubAnalyticsApi.md +3 -10
- package/docs/StaffClubSettingsApi.md +5 -13
- package/docs/YearlyTurnoverResponse.md +26 -0
- package/docs/YearlyTurnoverResponseMonthlyBreakdownInner.md +24 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/api.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Pickle Ball API
|
|
6
6
|
* API for managing pickle ball games and players
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.
|
|
8
|
+
* The version of the OpenAPI document: 1.0.19
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -22,15 +22,19 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.
|
|
26
|
-
exports.
|
|
27
|
-
exports.UserSubscriptionsApi = exports.UserSubscriptionsApiFactory = exports.UserSubscriptionsApiFp = exports.UserSubscriptionsApiAxiosParamCreator = exports.UserProfileApi = exports.UserProfileApiFactory = void 0;
|
|
25
|
+
exports.ManagerClubSubscriptionsApiFactory = exports.ManagerClubSubscriptionsApiFp = exports.ManagerClubSubscriptionsApiAxiosParamCreator = exports.ManagerClubSlotsApi = exports.ManagerClubSlotsApiFactory = exports.ManagerClubSlotsApiFp = exports.ManagerClubSlotsApiAxiosParamCreator = exports.ManagerClubRolesApi = exports.ManagerClubRolesApiFactory = exports.ManagerClubRolesApiFp = exports.ManagerClubRolesApiAxiosParamCreator = exports.ManagerClubCourtsApi = exports.ManagerClubCourtsApiFactory = exports.ManagerClubCourtsApiFp = exports.ManagerClubCourtsApiAxiosParamCreator = exports.ManagerBookingsApi = exports.ManagerBookingsApiFactory = exports.ManagerBookingsApiFp = exports.ManagerBookingsApiAxiosParamCreator = exports.GetInvoicesStatusEnum = exports.ClubAnalyticsApi = exports.ClubAnalyticsApiFactory = exports.ClubAnalyticsApiFp = exports.ClubAnalyticsApiAxiosParamCreator = exports.BookingsApi = exports.BookingsApiFactory = exports.BookingsApiFp = exports.BookingsApiAxiosParamCreator = exports.AdminClubsApi = exports.AdminClubsApiFactory = exports.AdminClubsApiFp = exports.AdminClubsApiAxiosParamCreator = exports.AdminClubSlotsApi = exports.AdminClubSlotsApiFactory = exports.AdminClubSlotsApiFp = exports.AdminClubSlotsApiAxiosParamCreator = exports.SubscriptionResponseStatusEnum = exports.StripeStatus = exports.PaymentMethod = exports.NoShowFeeResponseCaptureResultsInnerStatusEnum = exports.NoShowFeeResponseCaptureResultsInnerTypeEnum = exports.ManagerCancelBookingResponseBookingStatusEnum = exports.InvoicesResponseInvoicesInnerStatusEnum = exports.CreatePriceRequestIntervalEnum = exports.CourtStatus = exports.CourtResponseSurfaceEnum = exports.CourtResponseStatusEnum = exports.CancelBookingResponseBookingStatusEnum = exports.BookingStatus = exports.BookingPaymentStatusResponsePaymentStatusInnerPaymentMethodEnum = void 0;
|
|
26
|
+
exports.UserClubSlotsApiAxiosParamCreator = exports.UserClubCourtsApi = exports.UserClubCourtsApiFactory = exports.UserClubCourtsApiFp = exports.UserClubCourtsApiAxiosParamCreator = exports.UserBookingsApi = exports.UserBookingsApiFactory = exports.UserBookingsApiFp = exports.UserBookingsApiAxiosParamCreator = exports.UserAuthenticationApi = exports.UserAuthenticationApiFactory = exports.UserAuthenticationApiFp = exports.UserAuthenticationApiAxiosParamCreator = exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.StaffSportsApi = exports.StaffSportsApiFactory = exports.StaffSportsApiFp = exports.StaffSportsApiAxiosParamCreator = exports.StaffProfileApi = exports.StaffProfileApiFactory = exports.StaffProfileApiFp = exports.StaffProfileApiAxiosParamCreator = exports.StaffClubsApi = exports.StaffClubsApiFactory = exports.StaffClubsApiFp = exports.StaffClubsApiAxiosParamCreator = exports.StaffClubSettingsApi = exports.StaffClubSettingsApiFactory = exports.StaffClubSettingsApiFp = exports.StaffClubSettingsApiAxiosParamCreator = exports.StaffClubBookingsApi = exports.StaffClubBookingsApiFactory = exports.StaffClubBookingsApiFp = exports.StaffClubBookingsApiAxiosParamCreator = exports.StaffClubAnalyticsApi = exports.StaffClubAnalyticsApiFactory = exports.StaffClubAnalyticsApiFp = exports.StaffClubAnalyticsApiAxiosParamCreator = exports.ManagerSportsApi = exports.ManagerSportsApiFactory = exports.ManagerSportsApiFp = exports.ManagerSportsApiAxiosParamCreator = exports.ManagerClubsApi = exports.ManagerClubsApiFactory = exports.ManagerClubsApiFp = exports.ManagerClubsApiAxiosParamCreator = exports.ManagerClubSubscriptionsApi = void 0;
|
|
27
|
+
exports.UserSubscriptionsApi = exports.UserSubscriptionsApiFactory = exports.UserSubscriptionsApiFp = exports.UserSubscriptionsApiAxiosParamCreator = exports.UserProfileApi = exports.UserProfileApiFactory = exports.UserProfileApiFp = exports.UserProfileApiAxiosParamCreator = exports.UserPaymentApi = exports.UserPaymentApiFactory = exports.UserPaymentApiFp = exports.UserPaymentApiAxiosParamCreator = exports.UserClubsApi = exports.UserClubsApiFactory = exports.UserClubsApiFp = exports.UserClubsApiAxiosParamCreator = exports.UserClubSportsApi = exports.UserClubSportsApiFactory = exports.UserClubSportsApiFp = exports.UserClubSportsApiAxiosParamCreator = exports.UserClubSlotsApi = exports.UserClubSlotsApiFactory = exports.UserClubSlotsApiFp = void 0;
|
|
28
28
|
const axios_1 = require("axios");
|
|
29
29
|
// Some imports not used depending on template conditions
|
|
30
30
|
// @ts-ignore
|
|
31
31
|
const common_1 = require("./common");
|
|
32
32
|
// @ts-ignore
|
|
33
33
|
const base_1 = require("./base");
|
|
34
|
+
exports.BookingPaymentStatusResponsePaymentStatusInnerPaymentMethodEnum = {
|
|
35
|
+
Stripe: 'stripe',
|
|
36
|
+
Onsite: 'onsite'
|
|
37
|
+
};
|
|
34
38
|
/**
|
|
35
39
|
*
|
|
36
40
|
* @export
|
|
@@ -68,9 +72,25 @@ exports.CreatePriceRequestIntervalEnum = {
|
|
|
68
72
|
Month: 'month',
|
|
69
73
|
Year: 'year'
|
|
70
74
|
};
|
|
75
|
+
exports.InvoicesResponseInvoicesInnerStatusEnum = {
|
|
76
|
+
Pending: 'pending',
|
|
77
|
+
Paid: 'paid',
|
|
78
|
+
Failed: 'failed',
|
|
79
|
+
Authorized: 'authorized',
|
|
80
|
+
Canceled: 'canceled',
|
|
81
|
+
Expired: 'expired'
|
|
82
|
+
};
|
|
71
83
|
exports.ManagerCancelBookingResponseBookingStatusEnum = {
|
|
72
84
|
Cancelled: 'cancelled'
|
|
73
85
|
};
|
|
86
|
+
exports.NoShowFeeResponseCaptureResultsInnerTypeEnum = {
|
|
87
|
+
CreatorPayment: 'creator_payment',
|
|
88
|
+
PlayerPayment: 'player_payment'
|
|
89
|
+
};
|
|
90
|
+
exports.NoShowFeeResponseCaptureResultsInnerStatusEnum = {
|
|
91
|
+
Captured: 'captured',
|
|
92
|
+
Failed: 'failed'
|
|
93
|
+
};
|
|
74
94
|
/**
|
|
75
95
|
* Méthode de paiement
|
|
76
96
|
* @export
|
|
@@ -146,85 +166,788 @@ exports.AdminClubSlotsApiAxiosParamCreator = AdminClubSlotsApiAxiosParamCreator;
|
|
|
146
166
|
* AdminClubSlotsApi - functional programming interface
|
|
147
167
|
* @export
|
|
148
168
|
*/
|
|
149
|
-
const AdminClubSlotsApiFp = function (configuration) {
|
|
150
|
-
const localVarAxiosParamCreator = (0, exports.AdminClubSlotsApiAxiosParamCreator)(configuration);
|
|
169
|
+
const AdminClubSlotsApiFp = function (configuration) {
|
|
170
|
+
const localVarAxiosParamCreator = (0, exports.AdminClubSlotsApiAxiosParamCreator)(configuration);
|
|
171
|
+
return {
|
|
172
|
+
/**
|
|
173
|
+
*
|
|
174
|
+
* @summary Générer les créneaux pour les 3 semaines à venir (Admin uniquement)
|
|
175
|
+
* @param {string} id ID du club
|
|
176
|
+
* @param {*} [options] Override http request option.
|
|
177
|
+
* @throws {RequiredError}
|
|
178
|
+
*/
|
|
179
|
+
generateSlotsForNextThreeWeeks(id, options) {
|
|
180
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
181
|
+
var _a, _b, _c;
|
|
182
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.generateSlotsForNextThreeWeeks(id, options);
|
|
183
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
184
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AdminClubSlotsApi.generateSlotsForNextThreeWeeks']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
185
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
186
|
+
});
|
|
187
|
+
},
|
|
188
|
+
};
|
|
189
|
+
};
|
|
190
|
+
exports.AdminClubSlotsApiFp = AdminClubSlotsApiFp;
|
|
191
|
+
/**
|
|
192
|
+
* AdminClubSlotsApi - factory interface
|
|
193
|
+
* @export
|
|
194
|
+
*/
|
|
195
|
+
const AdminClubSlotsApiFactory = function (configuration, basePath, axios) {
|
|
196
|
+
const localVarFp = (0, exports.AdminClubSlotsApiFp)(configuration);
|
|
197
|
+
return {
|
|
198
|
+
/**
|
|
199
|
+
*
|
|
200
|
+
* @summary Générer les créneaux pour les 3 semaines à venir (Admin uniquement)
|
|
201
|
+
* @param {AdminClubSlotsApiGenerateSlotsForNextThreeWeeksRequest} requestParameters Request parameters.
|
|
202
|
+
* @param {*} [options] Override http request option.
|
|
203
|
+
* @throws {RequiredError}
|
|
204
|
+
*/
|
|
205
|
+
generateSlotsForNextThreeWeeks(requestParameters, options) {
|
|
206
|
+
return localVarFp.generateSlotsForNextThreeWeeks(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
207
|
+
},
|
|
208
|
+
};
|
|
209
|
+
};
|
|
210
|
+
exports.AdminClubSlotsApiFactory = AdminClubSlotsApiFactory;
|
|
211
|
+
/**
|
|
212
|
+
* AdminClubSlotsApi - object-oriented interface
|
|
213
|
+
* @export
|
|
214
|
+
* @class AdminClubSlotsApi
|
|
215
|
+
* @extends {BaseAPI}
|
|
216
|
+
*/
|
|
217
|
+
class AdminClubSlotsApi extends base_1.BaseAPI {
|
|
218
|
+
/**
|
|
219
|
+
*
|
|
220
|
+
* @summary Générer les créneaux pour les 3 semaines à venir (Admin uniquement)
|
|
221
|
+
* @param {AdminClubSlotsApiGenerateSlotsForNextThreeWeeksRequest} requestParameters Request parameters.
|
|
222
|
+
* @param {*} [options] Override http request option.
|
|
223
|
+
* @throws {RequiredError}
|
|
224
|
+
* @memberof AdminClubSlotsApi
|
|
225
|
+
*/
|
|
226
|
+
generateSlotsForNextThreeWeeks(requestParameters, options) {
|
|
227
|
+
return (0, exports.AdminClubSlotsApiFp)(this.configuration).generateSlotsForNextThreeWeeks(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
exports.AdminClubSlotsApi = AdminClubSlotsApi;
|
|
231
|
+
/**
|
|
232
|
+
* AdminClubsApi - axios parameter creator
|
|
233
|
+
* @export
|
|
234
|
+
*/
|
|
235
|
+
const AdminClubsApiAxiosParamCreator = function (configuration) {
|
|
236
|
+
return {
|
|
237
|
+
/**
|
|
238
|
+
*
|
|
239
|
+
* @summary Créer un nouveau club (Admin uniquement)
|
|
240
|
+
* @param {CreateClubRequest} createClubRequest
|
|
241
|
+
* @param {*} [options] Override http request option.
|
|
242
|
+
* @throws {RequiredError}
|
|
243
|
+
*/
|
|
244
|
+
createClub: (createClubRequest_1, ...args_1) => __awaiter(this, [createClubRequest_1, ...args_1], void 0, function* (createClubRequest, options = {}) {
|
|
245
|
+
// verify required parameter 'createClubRequest' is not null or undefined
|
|
246
|
+
(0, common_1.assertParamExists)('createClub', 'createClubRequest', createClubRequest);
|
|
247
|
+
const localVarPath = `/api/clubs`;
|
|
248
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
249
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
250
|
+
let baseOptions;
|
|
251
|
+
if (configuration) {
|
|
252
|
+
baseOptions = configuration.baseOptions;
|
|
253
|
+
}
|
|
254
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
255
|
+
const localVarHeaderParameter = {};
|
|
256
|
+
const localVarQueryParameter = {};
|
|
257
|
+
// authentication bearerAuth required
|
|
258
|
+
// http bearer authentication required
|
|
259
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
260
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
261
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
262
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
263
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
264
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createClubRequest, localVarRequestOptions, configuration);
|
|
265
|
+
return {
|
|
266
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
267
|
+
options: localVarRequestOptions,
|
|
268
|
+
};
|
|
269
|
+
}),
|
|
270
|
+
/**
|
|
271
|
+
*
|
|
272
|
+
* @summary Récupérer tous les clubs (Admin uniquement)
|
|
273
|
+
* @param {*} [options] Override http request option.
|
|
274
|
+
* @throws {RequiredError}
|
|
275
|
+
*/
|
|
276
|
+
getAllClubs: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
277
|
+
const localVarPath = `/api/clubs`;
|
|
278
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
279
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
280
|
+
let baseOptions;
|
|
281
|
+
if (configuration) {
|
|
282
|
+
baseOptions = configuration.baseOptions;
|
|
283
|
+
}
|
|
284
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
285
|
+
const localVarHeaderParameter = {};
|
|
286
|
+
const localVarQueryParameter = {};
|
|
287
|
+
// authentication bearerAuth required
|
|
288
|
+
// http bearer authentication required
|
|
289
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
290
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
291
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
292
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
293
|
+
return {
|
|
294
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
295
|
+
options: localVarRequestOptions,
|
|
296
|
+
};
|
|
297
|
+
}),
|
|
298
|
+
};
|
|
299
|
+
};
|
|
300
|
+
exports.AdminClubsApiAxiosParamCreator = AdminClubsApiAxiosParamCreator;
|
|
301
|
+
/**
|
|
302
|
+
* AdminClubsApi - functional programming interface
|
|
303
|
+
* @export
|
|
304
|
+
*/
|
|
305
|
+
const AdminClubsApiFp = function (configuration) {
|
|
306
|
+
const localVarAxiosParamCreator = (0, exports.AdminClubsApiAxiosParamCreator)(configuration);
|
|
307
|
+
return {
|
|
308
|
+
/**
|
|
309
|
+
*
|
|
310
|
+
* @summary Créer un nouveau club (Admin uniquement)
|
|
311
|
+
* @param {CreateClubRequest} createClubRequest
|
|
312
|
+
* @param {*} [options] Override http request option.
|
|
313
|
+
* @throws {RequiredError}
|
|
314
|
+
*/
|
|
315
|
+
createClub(createClubRequest, options) {
|
|
316
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
317
|
+
var _a, _b, _c;
|
|
318
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createClub(createClubRequest, options);
|
|
319
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
320
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AdminClubsApi.createClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
321
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
322
|
+
});
|
|
323
|
+
},
|
|
324
|
+
/**
|
|
325
|
+
*
|
|
326
|
+
* @summary Récupérer tous les clubs (Admin uniquement)
|
|
327
|
+
* @param {*} [options] Override http request option.
|
|
328
|
+
* @throws {RequiredError}
|
|
329
|
+
*/
|
|
330
|
+
getAllClubs(options) {
|
|
331
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
332
|
+
var _a, _b, _c;
|
|
333
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getAllClubs(options);
|
|
334
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
335
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AdminClubsApi.getAllClubs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
336
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
337
|
+
});
|
|
338
|
+
},
|
|
339
|
+
};
|
|
340
|
+
};
|
|
341
|
+
exports.AdminClubsApiFp = AdminClubsApiFp;
|
|
342
|
+
/**
|
|
343
|
+
* AdminClubsApi - factory interface
|
|
344
|
+
* @export
|
|
345
|
+
*/
|
|
346
|
+
const AdminClubsApiFactory = function (configuration, basePath, axios) {
|
|
347
|
+
const localVarFp = (0, exports.AdminClubsApiFp)(configuration);
|
|
348
|
+
return {
|
|
349
|
+
/**
|
|
350
|
+
*
|
|
351
|
+
* @summary Créer un nouveau club (Admin uniquement)
|
|
352
|
+
* @param {AdminClubsApiCreateClubRequest} requestParameters Request parameters.
|
|
353
|
+
* @param {*} [options] Override http request option.
|
|
354
|
+
* @throws {RequiredError}
|
|
355
|
+
*/
|
|
356
|
+
createClub(requestParameters, options) {
|
|
357
|
+
return localVarFp.createClub(requestParameters.createClubRequest, options).then((request) => request(axios, basePath));
|
|
358
|
+
},
|
|
359
|
+
/**
|
|
360
|
+
*
|
|
361
|
+
* @summary Récupérer tous les clubs (Admin uniquement)
|
|
362
|
+
* @param {*} [options] Override http request option.
|
|
363
|
+
* @throws {RequiredError}
|
|
364
|
+
*/
|
|
365
|
+
getAllClubs(options) {
|
|
366
|
+
return localVarFp.getAllClubs(options).then((request) => request(axios, basePath));
|
|
367
|
+
},
|
|
368
|
+
};
|
|
369
|
+
};
|
|
370
|
+
exports.AdminClubsApiFactory = AdminClubsApiFactory;
|
|
371
|
+
/**
|
|
372
|
+
* AdminClubsApi - object-oriented interface
|
|
373
|
+
* @export
|
|
374
|
+
* @class AdminClubsApi
|
|
375
|
+
* @extends {BaseAPI}
|
|
376
|
+
*/
|
|
377
|
+
class AdminClubsApi extends base_1.BaseAPI {
|
|
378
|
+
/**
|
|
379
|
+
*
|
|
380
|
+
* @summary Créer un nouveau club (Admin uniquement)
|
|
381
|
+
* @param {AdminClubsApiCreateClubRequest} requestParameters Request parameters.
|
|
382
|
+
* @param {*} [options] Override http request option.
|
|
383
|
+
* @throws {RequiredError}
|
|
384
|
+
* @memberof AdminClubsApi
|
|
385
|
+
*/
|
|
386
|
+
createClub(requestParameters, options) {
|
|
387
|
+
return (0, exports.AdminClubsApiFp)(this.configuration).createClub(requestParameters.createClubRequest, options).then((request) => request(this.axios, this.basePath));
|
|
388
|
+
}
|
|
389
|
+
/**
|
|
390
|
+
*
|
|
391
|
+
* @summary Récupérer tous les clubs (Admin uniquement)
|
|
392
|
+
* @param {*} [options] Override http request option.
|
|
393
|
+
* @throws {RequiredError}
|
|
394
|
+
* @memberof AdminClubsApi
|
|
395
|
+
*/
|
|
396
|
+
getAllClubs(options) {
|
|
397
|
+
return (0, exports.AdminClubsApiFp)(this.configuration).getAllClubs(options).then((request) => request(this.axios, this.basePath));
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
exports.AdminClubsApi = AdminClubsApi;
|
|
401
|
+
/**
|
|
402
|
+
* BookingsApi - axios parameter creator
|
|
403
|
+
* @export
|
|
404
|
+
*/
|
|
405
|
+
const BookingsApiAxiosParamCreator = function (configuration) {
|
|
406
|
+
return {
|
|
407
|
+
/**
|
|
408
|
+
* Permet au créateur d\'une réservation de l\'annuler. Rouvre automatiquement le créneau et envoie des emails de notification à tous les participants.
|
|
409
|
+
* @summary Annuler une réservation (créateur uniquement)
|
|
410
|
+
* @param {string} bookingId ID MongoDB de la réservation à annuler
|
|
411
|
+
* @param {CancelBookingRequest} cancelBookingRequest
|
|
412
|
+
* @param {*} [options] Override http request option.
|
|
413
|
+
* @throws {RequiredError}
|
|
414
|
+
*/
|
|
415
|
+
cancelBooking: (bookingId_1, cancelBookingRequest_1, ...args_1) => __awaiter(this, [bookingId_1, cancelBookingRequest_1, ...args_1], void 0, function* (bookingId, cancelBookingRequest, options = {}) {
|
|
416
|
+
// verify required parameter 'bookingId' is not null or undefined
|
|
417
|
+
(0, common_1.assertParamExists)('cancelBooking', 'bookingId', bookingId);
|
|
418
|
+
// verify required parameter 'cancelBookingRequest' is not null or undefined
|
|
419
|
+
(0, common_1.assertParamExists)('cancelBooking', 'cancelBookingRequest', cancelBookingRequest);
|
|
420
|
+
const localVarPath = `/api/bookings/{bookingId}/cancel`
|
|
421
|
+
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
422
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
423
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
424
|
+
let baseOptions;
|
|
425
|
+
if (configuration) {
|
|
426
|
+
baseOptions = configuration.baseOptions;
|
|
427
|
+
}
|
|
428
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
429
|
+
const localVarHeaderParameter = {};
|
|
430
|
+
const localVarQueryParameter = {};
|
|
431
|
+
// authentication bearerAuth required
|
|
432
|
+
// http bearer authentication required
|
|
433
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
434
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
435
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
436
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
437
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
438
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(cancelBookingRequest, localVarRequestOptions, configuration);
|
|
439
|
+
return {
|
|
440
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
441
|
+
options: localVarRequestOptions,
|
|
442
|
+
};
|
|
443
|
+
}),
|
|
444
|
+
};
|
|
445
|
+
};
|
|
446
|
+
exports.BookingsApiAxiosParamCreator = BookingsApiAxiosParamCreator;
|
|
447
|
+
/**
|
|
448
|
+
* BookingsApi - functional programming interface
|
|
449
|
+
* @export
|
|
450
|
+
*/
|
|
451
|
+
const BookingsApiFp = function (configuration) {
|
|
452
|
+
const localVarAxiosParamCreator = (0, exports.BookingsApiAxiosParamCreator)(configuration);
|
|
453
|
+
return {
|
|
454
|
+
/**
|
|
455
|
+
* Permet au créateur d\'une réservation de l\'annuler. Rouvre automatiquement le créneau et envoie des emails de notification à tous les participants.
|
|
456
|
+
* @summary Annuler une réservation (créateur uniquement)
|
|
457
|
+
* @param {string} bookingId ID MongoDB de la réservation à annuler
|
|
458
|
+
* @param {CancelBookingRequest} cancelBookingRequest
|
|
459
|
+
* @param {*} [options] Override http request option.
|
|
460
|
+
* @throws {RequiredError}
|
|
461
|
+
*/
|
|
462
|
+
cancelBooking(bookingId, cancelBookingRequest, options) {
|
|
463
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
464
|
+
var _a, _b, _c;
|
|
465
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.cancelBooking(bookingId, cancelBookingRequest, options);
|
|
466
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
467
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsApi.cancelBooking']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
468
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
469
|
+
});
|
|
470
|
+
},
|
|
471
|
+
};
|
|
472
|
+
};
|
|
473
|
+
exports.BookingsApiFp = BookingsApiFp;
|
|
474
|
+
/**
|
|
475
|
+
* BookingsApi - factory interface
|
|
476
|
+
* @export
|
|
477
|
+
*/
|
|
478
|
+
const BookingsApiFactory = function (configuration, basePath, axios) {
|
|
479
|
+
const localVarFp = (0, exports.BookingsApiFp)(configuration);
|
|
480
|
+
return {
|
|
481
|
+
/**
|
|
482
|
+
* Permet au créateur d\'une réservation de l\'annuler. Rouvre automatiquement le créneau et envoie des emails de notification à tous les participants.
|
|
483
|
+
* @summary Annuler une réservation (créateur uniquement)
|
|
484
|
+
* @param {BookingsApiCancelBookingRequest} requestParameters Request parameters.
|
|
485
|
+
* @param {*} [options] Override http request option.
|
|
486
|
+
* @throws {RequiredError}
|
|
487
|
+
*/
|
|
488
|
+
cancelBooking(requestParameters, options) {
|
|
489
|
+
return localVarFp.cancelBooking(requestParameters.bookingId, requestParameters.cancelBookingRequest, options).then((request) => request(axios, basePath));
|
|
490
|
+
},
|
|
491
|
+
};
|
|
492
|
+
};
|
|
493
|
+
exports.BookingsApiFactory = BookingsApiFactory;
|
|
494
|
+
/**
|
|
495
|
+
* BookingsApi - object-oriented interface
|
|
496
|
+
* @export
|
|
497
|
+
* @class BookingsApi
|
|
498
|
+
* @extends {BaseAPI}
|
|
499
|
+
*/
|
|
500
|
+
class BookingsApi extends base_1.BaseAPI {
|
|
501
|
+
/**
|
|
502
|
+
* Permet au créateur d\'une réservation de l\'annuler. Rouvre automatiquement le créneau et envoie des emails de notification à tous les participants.
|
|
503
|
+
* @summary Annuler une réservation (créateur uniquement)
|
|
504
|
+
* @param {BookingsApiCancelBookingRequest} requestParameters Request parameters.
|
|
505
|
+
* @param {*} [options] Override http request option.
|
|
506
|
+
* @throws {RequiredError}
|
|
507
|
+
* @memberof BookingsApi
|
|
508
|
+
*/
|
|
509
|
+
cancelBooking(requestParameters, options) {
|
|
510
|
+
return (0, exports.BookingsApiFp)(this.configuration).cancelBooking(requestParameters.bookingId, requestParameters.cancelBookingRequest, options).then((request) => request(this.axios, this.basePath));
|
|
511
|
+
}
|
|
512
|
+
}
|
|
513
|
+
exports.BookingsApi = BookingsApi;
|
|
514
|
+
/**
|
|
515
|
+
* ClubAnalyticsApi - axios parameter creator
|
|
516
|
+
* @export
|
|
517
|
+
*/
|
|
518
|
+
const ClubAnalyticsApiAxiosParamCreator = function (configuration) {
|
|
519
|
+
return {
|
|
520
|
+
/**
|
|
521
|
+
*
|
|
522
|
+
* @summary Chiffre d\'affaires quotidien
|
|
523
|
+
* @param {string} id ID du club
|
|
524
|
+
* @param {string} date Date (format YYYY-MM-DD)
|
|
525
|
+
* @param {*} [options] Override http request option.
|
|
526
|
+
* @throws {RequiredError}
|
|
527
|
+
*/
|
|
528
|
+
getDailyTurnOver: (id_1, date_1, ...args_1) => __awaiter(this, [id_1, date_1, ...args_1], void 0, function* (id, date, options = {}) {
|
|
529
|
+
// verify required parameter 'id' is not null or undefined
|
|
530
|
+
(0, common_1.assertParamExists)('getDailyTurnOver', 'id', id);
|
|
531
|
+
// verify required parameter 'date' is not null or undefined
|
|
532
|
+
(0, common_1.assertParamExists)('getDailyTurnOver', 'date', date);
|
|
533
|
+
const localVarPath = `/api/clubs/{id}/turnover/daily`
|
|
534
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
535
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
536
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
537
|
+
let baseOptions;
|
|
538
|
+
if (configuration) {
|
|
539
|
+
baseOptions = configuration.baseOptions;
|
|
540
|
+
}
|
|
541
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
542
|
+
const localVarHeaderParameter = {};
|
|
543
|
+
const localVarQueryParameter = {};
|
|
544
|
+
// authentication bearerAuth required
|
|
545
|
+
// http bearer authentication required
|
|
546
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
547
|
+
if (date !== undefined) {
|
|
548
|
+
localVarQueryParameter['date'] = (date instanceof Date) ?
|
|
549
|
+
date.toISOString().substring(0, 10) :
|
|
550
|
+
date;
|
|
551
|
+
}
|
|
552
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
553
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
554
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
555
|
+
return {
|
|
556
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
557
|
+
options: localVarRequestOptions,
|
|
558
|
+
};
|
|
559
|
+
}),
|
|
560
|
+
/**
|
|
561
|
+
*
|
|
562
|
+
* @summary Récupérer les factures du club
|
|
563
|
+
* @param {string} id ID du club
|
|
564
|
+
* @param {number} [page] Numéro de page
|
|
565
|
+
* @param {number} [limit] Nombre d\'éléments par page
|
|
566
|
+
* @param {GetInvoicesStatusEnum} [status] Filtrer par statut
|
|
567
|
+
* @param {string} [startDate] Date de début (ISO format)
|
|
568
|
+
* @param {string} [endDate] Date de fin (ISO format)
|
|
569
|
+
* @param {*} [options] Override http request option.
|
|
570
|
+
* @throws {RequiredError}
|
|
571
|
+
*/
|
|
572
|
+
getInvoices: (id_1, page_1, limit_1, status_1, startDate_1, endDate_1, ...args_1) => __awaiter(this, [id_1, page_1, limit_1, status_1, startDate_1, endDate_1, ...args_1], void 0, function* (id, page, limit, status, startDate, endDate, options = {}) {
|
|
573
|
+
// verify required parameter 'id' is not null or undefined
|
|
574
|
+
(0, common_1.assertParamExists)('getInvoices', 'id', id);
|
|
575
|
+
const localVarPath = `/api/clubs/{id}/invoices`
|
|
576
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
577
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
578
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
579
|
+
let baseOptions;
|
|
580
|
+
if (configuration) {
|
|
581
|
+
baseOptions = configuration.baseOptions;
|
|
582
|
+
}
|
|
583
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
584
|
+
const localVarHeaderParameter = {};
|
|
585
|
+
const localVarQueryParameter = {};
|
|
586
|
+
// authentication bearerAuth required
|
|
587
|
+
// http bearer authentication required
|
|
588
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
589
|
+
if (page !== undefined) {
|
|
590
|
+
localVarQueryParameter['page'] = page;
|
|
591
|
+
}
|
|
592
|
+
if (limit !== undefined) {
|
|
593
|
+
localVarQueryParameter['limit'] = limit;
|
|
594
|
+
}
|
|
595
|
+
if (status !== undefined) {
|
|
596
|
+
localVarQueryParameter['status'] = status;
|
|
597
|
+
}
|
|
598
|
+
if (startDate !== undefined) {
|
|
599
|
+
localVarQueryParameter['startDate'] = (startDate instanceof Date) ?
|
|
600
|
+
startDate.toISOString() :
|
|
601
|
+
startDate;
|
|
602
|
+
}
|
|
603
|
+
if (endDate !== undefined) {
|
|
604
|
+
localVarQueryParameter['endDate'] = (endDate instanceof Date) ?
|
|
605
|
+
endDate.toISOString() :
|
|
606
|
+
endDate;
|
|
607
|
+
}
|
|
608
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
609
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
610
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
611
|
+
return {
|
|
612
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
613
|
+
options: localVarRequestOptions,
|
|
614
|
+
};
|
|
615
|
+
}),
|
|
616
|
+
/**
|
|
617
|
+
*
|
|
618
|
+
* @summary Chiffre d\'affaires mensuel
|
|
619
|
+
* @param {string} id ID du club
|
|
620
|
+
* @param {number} year Année
|
|
621
|
+
* @param {number} month Mois (1-12)
|
|
622
|
+
* @param {*} [options] Override http request option.
|
|
623
|
+
* @throws {RequiredError}
|
|
624
|
+
*/
|
|
625
|
+
getMonthlyTurnOver: (id_1, year_1, month_1, ...args_1) => __awaiter(this, [id_1, year_1, month_1, ...args_1], void 0, function* (id, year, month, options = {}) {
|
|
626
|
+
// verify required parameter 'id' is not null or undefined
|
|
627
|
+
(0, common_1.assertParamExists)('getMonthlyTurnOver', 'id', id);
|
|
628
|
+
// verify required parameter 'year' is not null or undefined
|
|
629
|
+
(0, common_1.assertParamExists)('getMonthlyTurnOver', 'year', year);
|
|
630
|
+
// verify required parameter 'month' is not null or undefined
|
|
631
|
+
(0, common_1.assertParamExists)('getMonthlyTurnOver', 'month', month);
|
|
632
|
+
const localVarPath = `/api/clubs/{id}/turnover/monthly`
|
|
633
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
634
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
635
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
636
|
+
let baseOptions;
|
|
637
|
+
if (configuration) {
|
|
638
|
+
baseOptions = configuration.baseOptions;
|
|
639
|
+
}
|
|
640
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
641
|
+
const localVarHeaderParameter = {};
|
|
642
|
+
const localVarQueryParameter = {};
|
|
643
|
+
// authentication bearerAuth required
|
|
644
|
+
// http bearer authentication required
|
|
645
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
646
|
+
if (year !== undefined) {
|
|
647
|
+
localVarQueryParameter['year'] = year;
|
|
648
|
+
}
|
|
649
|
+
if (month !== undefined) {
|
|
650
|
+
localVarQueryParameter['month'] = month;
|
|
651
|
+
}
|
|
652
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
653
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
654
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
655
|
+
return {
|
|
656
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
657
|
+
options: localVarRequestOptions,
|
|
658
|
+
};
|
|
659
|
+
}),
|
|
660
|
+
/**
|
|
661
|
+
*
|
|
662
|
+
* @summary Chiffre d\'affaires annuel
|
|
663
|
+
* @param {string} id ID du club
|
|
664
|
+
* @param {number} year Année
|
|
665
|
+
* @param {*} [options] Override http request option.
|
|
666
|
+
* @throws {RequiredError}
|
|
667
|
+
*/
|
|
668
|
+
getYearlyTurnOver: (id_1, year_1, ...args_1) => __awaiter(this, [id_1, year_1, ...args_1], void 0, function* (id, year, options = {}) {
|
|
669
|
+
// verify required parameter 'id' is not null or undefined
|
|
670
|
+
(0, common_1.assertParamExists)('getYearlyTurnOver', 'id', id);
|
|
671
|
+
// verify required parameter 'year' is not null or undefined
|
|
672
|
+
(0, common_1.assertParamExists)('getYearlyTurnOver', 'year', year);
|
|
673
|
+
const localVarPath = `/api/clubs/{id}/turnover/yearly`
|
|
674
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
675
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
676
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
677
|
+
let baseOptions;
|
|
678
|
+
if (configuration) {
|
|
679
|
+
baseOptions = configuration.baseOptions;
|
|
680
|
+
}
|
|
681
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
682
|
+
const localVarHeaderParameter = {};
|
|
683
|
+
const localVarQueryParameter = {};
|
|
684
|
+
// authentication bearerAuth required
|
|
685
|
+
// http bearer authentication required
|
|
686
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
687
|
+
if (year !== undefined) {
|
|
688
|
+
localVarQueryParameter['year'] = year;
|
|
689
|
+
}
|
|
690
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
691
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
692
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
693
|
+
return {
|
|
694
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
695
|
+
options: localVarRequestOptions,
|
|
696
|
+
};
|
|
697
|
+
}),
|
|
698
|
+
};
|
|
699
|
+
};
|
|
700
|
+
exports.ClubAnalyticsApiAxiosParamCreator = ClubAnalyticsApiAxiosParamCreator;
|
|
701
|
+
/**
|
|
702
|
+
* ClubAnalyticsApi - functional programming interface
|
|
703
|
+
* @export
|
|
704
|
+
*/
|
|
705
|
+
const ClubAnalyticsApiFp = function (configuration) {
|
|
706
|
+
const localVarAxiosParamCreator = (0, exports.ClubAnalyticsApiAxiosParamCreator)(configuration);
|
|
151
707
|
return {
|
|
152
708
|
/**
|
|
153
709
|
*
|
|
154
|
-
* @summary
|
|
710
|
+
* @summary Chiffre d\'affaires quotidien
|
|
155
711
|
* @param {string} id ID du club
|
|
712
|
+
* @param {string} date Date (format YYYY-MM-DD)
|
|
156
713
|
* @param {*} [options] Override http request option.
|
|
157
714
|
* @throws {RequiredError}
|
|
158
715
|
*/
|
|
159
|
-
|
|
716
|
+
getDailyTurnOver(id, date, options) {
|
|
160
717
|
return __awaiter(this, void 0, void 0, function* () {
|
|
161
718
|
var _a, _b, _c;
|
|
162
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
719
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getDailyTurnOver(id, date, options);
|
|
163
720
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
164
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['
|
|
721
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubAnalyticsApi.getDailyTurnOver']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
722
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
723
|
+
});
|
|
724
|
+
},
|
|
725
|
+
/**
|
|
726
|
+
*
|
|
727
|
+
* @summary Récupérer les factures du club
|
|
728
|
+
* @param {string} id ID du club
|
|
729
|
+
* @param {number} [page] Numéro de page
|
|
730
|
+
* @param {number} [limit] Nombre d\'éléments par page
|
|
731
|
+
* @param {GetInvoicesStatusEnum} [status] Filtrer par statut
|
|
732
|
+
* @param {string} [startDate] Date de début (ISO format)
|
|
733
|
+
* @param {string} [endDate] Date de fin (ISO format)
|
|
734
|
+
* @param {*} [options] Override http request option.
|
|
735
|
+
* @throws {RequiredError}
|
|
736
|
+
*/
|
|
737
|
+
getInvoices(id, page, limit, status, startDate, endDate, options) {
|
|
738
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
739
|
+
var _a, _b, _c;
|
|
740
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getInvoices(id, page, limit, status, startDate, endDate, options);
|
|
741
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
742
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubAnalyticsApi.getInvoices']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
743
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
744
|
+
});
|
|
745
|
+
},
|
|
746
|
+
/**
|
|
747
|
+
*
|
|
748
|
+
* @summary Chiffre d\'affaires mensuel
|
|
749
|
+
* @param {string} id ID du club
|
|
750
|
+
* @param {number} year Année
|
|
751
|
+
* @param {number} month Mois (1-12)
|
|
752
|
+
* @param {*} [options] Override http request option.
|
|
753
|
+
* @throws {RequiredError}
|
|
754
|
+
*/
|
|
755
|
+
getMonthlyTurnOver(id, year, month, options) {
|
|
756
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
757
|
+
var _a, _b, _c;
|
|
758
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getMonthlyTurnOver(id, year, month, options);
|
|
759
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
760
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubAnalyticsApi.getMonthlyTurnOver']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
761
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
762
|
+
});
|
|
763
|
+
},
|
|
764
|
+
/**
|
|
765
|
+
*
|
|
766
|
+
* @summary Chiffre d\'affaires annuel
|
|
767
|
+
* @param {string} id ID du club
|
|
768
|
+
* @param {number} year Année
|
|
769
|
+
* @param {*} [options] Override http request option.
|
|
770
|
+
* @throws {RequiredError}
|
|
771
|
+
*/
|
|
772
|
+
getYearlyTurnOver(id, year, options) {
|
|
773
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
774
|
+
var _a, _b, _c;
|
|
775
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getYearlyTurnOver(id, year, options);
|
|
776
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
777
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubAnalyticsApi.getYearlyTurnOver']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
165
778
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
166
779
|
});
|
|
167
780
|
},
|
|
168
781
|
};
|
|
169
782
|
};
|
|
170
|
-
exports.
|
|
783
|
+
exports.ClubAnalyticsApiFp = ClubAnalyticsApiFp;
|
|
171
784
|
/**
|
|
172
|
-
*
|
|
785
|
+
* ClubAnalyticsApi - factory interface
|
|
173
786
|
* @export
|
|
174
787
|
*/
|
|
175
|
-
const
|
|
176
|
-
const localVarFp = (0, exports.
|
|
788
|
+
const ClubAnalyticsApiFactory = function (configuration, basePath, axios) {
|
|
789
|
+
const localVarFp = (0, exports.ClubAnalyticsApiFp)(configuration);
|
|
177
790
|
return {
|
|
178
791
|
/**
|
|
179
792
|
*
|
|
180
|
-
* @summary
|
|
181
|
-
* @param {
|
|
793
|
+
* @summary Chiffre d\'affaires quotidien
|
|
794
|
+
* @param {ClubAnalyticsApiGetDailyTurnOverRequest} requestParameters Request parameters.
|
|
182
795
|
* @param {*} [options] Override http request option.
|
|
183
796
|
* @throws {RequiredError}
|
|
184
797
|
*/
|
|
185
|
-
|
|
186
|
-
return localVarFp.
|
|
798
|
+
getDailyTurnOver(requestParameters, options) {
|
|
799
|
+
return localVarFp.getDailyTurnOver(requestParameters.id, requestParameters.date, options).then((request) => request(axios, basePath));
|
|
800
|
+
},
|
|
801
|
+
/**
|
|
802
|
+
*
|
|
803
|
+
* @summary Récupérer les factures du club
|
|
804
|
+
* @param {ClubAnalyticsApiGetInvoicesRequest} requestParameters Request parameters.
|
|
805
|
+
* @param {*} [options] Override http request option.
|
|
806
|
+
* @throws {RequiredError}
|
|
807
|
+
*/
|
|
808
|
+
getInvoices(requestParameters, options) {
|
|
809
|
+
return localVarFp.getInvoices(requestParameters.id, requestParameters.page, requestParameters.limit, requestParameters.status, requestParameters.startDate, requestParameters.endDate, options).then((request) => request(axios, basePath));
|
|
810
|
+
},
|
|
811
|
+
/**
|
|
812
|
+
*
|
|
813
|
+
* @summary Chiffre d\'affaires mensuel
|
|
814
|
+
* @param {ClubAnalyticsApiGetMonthlyTurnOverRequest} requestParameters Request parameters.
|
|
815
|
+
* @param {*} [options] Override http request option.
|
|
816
|
+
* @throws {RequiredError}
|
|
817
|
+
*/
|
|
818
|
+
getMonthlyTurnOver(requestParameters, options) {
|
|
819
|
+
return localVarFp.getMonthlyTurnOver(requestParameters.id, requestParameters.year, requestParameters.month, options).then((request) => request(axios, basePath));
|
|
820
|
+
},
|
|
821
|
+
/**
|
|
822
|
+
*
|
|
823
|
+
* @summary Chiffre d\'affaires annuel
|
|
824
|
+
* @param {ClubAnalyticsApiGetYearlyTurnOverRequest} requestParameters Request parameters.
|
|
825
|
+
* @param {*} [options] Override http request option.
|
|
826
|
+
* @throws {RequiredError}
|
|
827
|
+
*/
|
|
828
|
+
getYearlyTurnOver(requestParameters, options) {
|
|
829
|
+
return localVarFp.getYearlyTurnOver(requestParameters.id, requestParameters.year, options).then((request) => request(axios, basePath));
|
|
187
830
|
},
|
|
188
831
|
};
|
|
189
832
|
};
|
|
190
|
-
exports.
|
|
833
|
+
exports.ClubAnalyticsApiFactory = ClubAnalyticsApiFactory;
|
|
191
834
|
/**
|
|
192
|
-
*
|
|
835
|
+
* ClubAnalyticsApi - object-oriented interface
|
|
193
836
|
* @export
|
|
194
|
-
* @class
|
|
837
|
+
* @class ClubAnalyticsApi
|
|
195
838
|
* @extends {BaseAPI}
|
|
196
839
|
*/
|
|
197
|
-
class
|
|
840
|
+
class ClubAnalyticsApi extends base_1.BaseAPI {
|
|
198
841
|
/**
|
|
199
842
|
*
|
|
200
|
-
* @summary
|
|
201
|
-
* @param {
|
|
843
|
+
* @summary Chiffre d\'affaires quotidien
|
|
844
|
+
* @param {ClubAnalyticsApiGetDailyTurnOverRequest} requestParameters Request parameters.
|
|
202
845
|
* @param {*} [options] Override http request option.
|
|
203
846
|
* @throws {RequiredError}
|
|
204
|
-
* @memberof
|
|
847
|
+
* @memberof ClubAnalyticsApi
|
|
205
848
|
*/
|
|
206
|
-
|
|
207
|
-
return (0, exports.
|
|
849
|
+
getDailyTurnOver(requestParameters, options) {
|
|
850
|
+
return (0, exports.ClubAnalyticsApiFp)(this.configuration).getDailyTurnOver(requestParameters.id, requestParameters.date, options).then((request) => request(this.axios, this.basePath));
|
|
851
|
+
}
|
|
852
|
+
/**
|
|
853
|
+
*
|
|
854
|
+
* @summary Récupérer les factures du club
|
|
855
|
+
* @param {ClubAnalyticsApiGetInvoicesRequest} requestParameters Request parameters.
|
|
856
|
+
* @param {*} [options] Override http request option.
|
|
857
|
+
* @throws {RequiredError}
|
|
858
|
+
* @memberof ClubAnalyticsApi
|
|
859
|
+
*/
|
|
860
|
+
getInvoices(requestParameters, options) {
|
|
861
|
+
return (0, exports.ClubAnalyticsApiFp)(this.configuration).getInvoices(requestParameters.id, requestParameters.page, requestParameters.limit, requestParameters.status, requestParameters.startDate, requestParameters.endDate, options).then((request) => request(this.axios, this.basePath));
|
|
862
|
+
}
|
|
863
|
+
/**
|
|
864
|
+
*
|
|
865
|
+
* @summary Chiffre d\'affaires mensuel
|
|
866
|
+
* @param {ClubAnalyticsApiGetMonthlyTurnOverRequest} requestParameters Request parameters.
|
|
867
|
+
* @param {*} [options] Override http request option.
|
|
868
|
+
* @throws {RequiredError}
|
|
869
|
+
* @memberof ClubAnalyticsApi
|
|
870
|
+
*/
|
|
871
|
+
getMonthlyTurnOver(requestParameters, options) {
|
|
872
|
+
return (0, exports.ClubAnalyticsApiFp)(this.configuration).getMonthlyTurnOver(requestParameters.id, requestParameters.year, requestParameters.month, options).then((request) => request(this.axios, this.basePath));
|
|
873
|
+
}
|
|
874
|
+
/**
|
|
875
|
+
*
|
|
876
|
+
* @summary Chiffre d\'affaires annuel
|
|
877
|
+
* @param {ClubAnalyticsApiGetYearlyTurnOverRequest} requestParameters Request parameters.
|
|
878
|
+
* @param {*} [options] Override http request option.
|
|
879
|
+
* @throws {RequiredError}
|
|
880
|
+
* @memberof ClubAnalyticsApi
|
|
881
|
+
*/
|
|
882
|
+
getYearlyTurnOver(requestParameters, options) {
|
|
883
|
+
return (0, exports.ClubAnalyticsApiFp)(this.configuration).getYearlyTurnOver(requestParameters.id, requestParameters.year, options).then((request) => request(this.axios, this.basePath));
|
|
208
884
|
}
|
|
209
885
|
}
|
|
210
|
-
exports.
|
|
886
|
+
exports.ClubAnalyticsApi = ClubAnalyticsApi;
|
|
211
887
|
/**
|
|
212
|
-
* AdminClubsApi - axios parameter creator
|
|
213
888
|
* @export
|
|
214
889
|
*/
|
|
215
|
-
|
|
890
|
+
exports.GetInvoicesStatusEnum = {
|
|
891
|
+
Pending: 'pending',
|
|
892
|
+
Paid: 'paid',
|
|
893
|
+
Failed: 'failed',
|
|
894
|
+
Authorized: 'authorized',
|
|
895
|
+
Canceled: 'canceled',
|
|
896
|
+
Expired: 'expired'
|
|
897
|
+
};
|
|
898
|
+
/**
|
|
899
|
+
* ManagerBookingsApi - axios parameter creator
|
|
900
|
+
* @export
|
|
901
|
+
*/
|
|
902
|
+
const ManagerBookingsApiAxiosParamCreator = function (configuration) {
|
|
216
903
|
return {
|
|
217
904
|
/**
|
|
218
|
-
*
|
|
219
|
-
* @summary
|
|
220
|
-
* @param {
|
|
905
|
+
* Applique les frais de no-show à une réservation. Capture automatiquement les paiements autorisés et charge le créateur pour le montant manquant.
|
|
906
|
+
* @summary Appliquer les frais de no-show
|
|
907
|
+
* @param {string} bookingId ID MongoDB de la réservation
|
|
221
908
|
* @param {*} [options] Override http request option.
|
|
222
909
|
* @throws {RequiredError}
|
|
223
910
|
*/
|
|
224
|
-
|
|
225
|
-
// verify required parameter '
|
|
226
|
-
(0, common_1.assertParamExists)('
|
|
227
|
-
const localVarPath = `/api/
|
|
911
|
+
applyNoShowFee: (bookingId_1, ...args_1) => __awaiter(this, [bookingId_1, ...args_1], void 0, function* (bookingId, options = {}) {
|
|
912
|
+
// verify required parameter 'bookingId' is not null or undefined
|
|
913
|
+
(0, common_1.assertParamExists)('applyNoShowFee', 'bookingId', bookingId);
|
|
914
|
+
const localVarPath = `/api/bookings/{bookingId}/apply-noshow-fee`
|
|
915
|
+
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
916
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
917
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
918
|
+
let baseOptions;
|
|
919
|
+
if (configuration) {
|
|
920
|
+
baseOptions = configuration.baseOptions;
|
|
921
|
+
}
|
|
922
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
923
|
+
const localVarHeaderParameter = {};
|
|
924
|
+
const localVarQueryParameter = {};
|
|
925
|
+
// authentication bearerAuth required
|
|
926
|
+
// http bearer authentication required
|
|
927
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
928
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
929
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
930
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
931
|
+
return {
|
|
932
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
933
|
+
options: localVarRequestOptions,
|
|
934
|
+
};
|
|
935
|
+
}),
|
|
936
|
+
/**
|
|
937
|
+
* Enregistre l\'arrivée et le paiement des joueurs pour une réservation avec paiement sur place. Met à jour le statut des factures.
|
|
938
|
+
* @summary Enregistrer l\'arrivée des joueurs
|
|
939
|
+
* @param {string} bookingId ID MongoDB de la réservation
|
|
940
|
+
* @param {CheckInPlayersRequest} checkInPlayersRequest
|
|
941
|
+
* @param {*} [options] Override http request option.
|
|
942
|
+
* @throws {RequiredError}
|
|
943
|
+
*/
|
|
944
|
+
checkInPlayers: (bookingId_1, checkInPlayersRequest_1, ...args_1) => __awaiter(this, [bookingId_1, checkInPlayersRequest_1, ...args_1], void 0, function* (bookingId, checkInPlayersRequest, options = {}) {
|
|
945
|
+
// verify required parameter 'bookingId' is not null or undefined
|
|
946
|
+
(0, common_1.assertParamExists)('checkInPlayers', 'bookingId', bookingId);
|
|
947
|
+
// verify required parameter 'checkInPlayersRequest' is not null or undefined
|
|
948
|
+
(0, common_1.assertParamExists)('checkInPlayers', 'checkInPlayersRequest', checkInPlayersRequest);
|
|
949
|
+
const localVarPath = `/api/bookings/{bookingId}/checkin-players`
|
|
950
|
+
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
228
951
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
229
952
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
230
953
|
let baseOptions;
|
|
@@ -241,20 +964,24 @@ const AdminClubsApiAxiosParamCreator = function (configuration) {
|
|
|
241
964
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
242
965
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
243
966
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
244
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
967
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(checkInPlayersRequest, localVarRequestOptions, configuration);
|
|
245
968
|
return {
|
|
246
969
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
247
970
|
options: localVarRequestOptions,
|
|
248
971
|
};
|
|
249
972
|
}),
|
|
250
973
|
/**
|
|
251
|
-
*
|
|
252
|
-
* @summary
|
|
974
|
+
* Récupère le statut détaillé des paiements pour tous les joueurs d\'une réservation. Utile pour l\'interface de check-in.
|
|
975
|
+
* @summary Obtenir le statut des paiements d\'une réservation
|
|
976
|
+
* @param {string} bookingId ID MongoDB de la réservation
|
|
253
977
|
* @param {*} [options] Override http request option.
|
|
254
978
|
* @throws {RequiredError}
|
|
255
979
|
*/
|
|
256
|
-
|
|
257
|
-
|
|
980
|
+
getBookingPaymentStatus: (bookingId_1, ...args_1) => __awaiter(this, [bookingId_1, ...args_1], void 0, function* (bookingId, options = {}) {
|
|
981
|
+
// verify required parameter 'bookingId' is not null or undefined
|
|
982
|
+
(0, common_1.assertParamExists)('getBookingPaymentStatus', 'bookingId', bookingId);
|
|
983
|
+
const localVarPath = `/api/bookings/{bookingId}/payment-status`
|
|
984
|
+
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
258
985
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
259
986
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
260
987
|
let baseOptions;
|
|
@@ -275,109 +1002,225 @@ const AdminClubsApiAxiosParamCreator = function (configuration) {
|
|
|
275
1002
|
options: localVarRequestOptions,
|
|
276
1003
|
};
|
|
277
1004
|
}),
|
|
1005
|
+
/**
|
|
1006
|
+
* Permet à un gestionnaire d\'annuler n\'importe quelle réservation avec une raison obligatoire. Effectue un remboursement automatique si le paiement a été fait en ligne.
|
|
1007
|
+
* @summary Annuler une réservation (gestionnaire)
|
|
1008
|
+
* @param {string} bookingId ID MongoDB de la réservation à annuler
|
|
1009
|
+
* @param {ManagerCancelBookingRequest} managerCancelBookingRequest
|
|
1010
|
+
* @param {*} [options] Override http request option.
|
|
1011
|
+
* @throws {RequiredError}
|
|
1012
|
+
*/
|
|
1013
|
+
managerCancelBooking: (bookingId_1, managerCancelBookingRequest_1, ...args_1) => __awaiter(this, [bookingId_1, managerCancelBookingRequest_1, ...args_1], void 0, function* (bookingId, managerCancelBookingRequest, options = {}) {
|
|
1014
|
+
// verify required parameter 'bookingId' is not null or undefined
|
|
1015
|
+
(0, common_1.assertParamExists)('managerCancelBooking', 'bookingId', bookingId);
|
|
1016
|
+
// verify required parameter 'managerCancelBookingRequest' is not null or undefined
|
|
1017
|
+
(0, common_1.assertParamExists)('managerCancelBooking', 'managerCancelBookingRequest', managerCancelBookingRequest);
|
|
1018
|
+
const localVarPath = `/api/bookings/{bookingId}/manager-cancel`
|
|
1019
|
+
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
1020
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1021
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1022
|
+
let baseOptions;
|
|
1023
|
+
if (configuration) {
|
|
1024
|
+
baseOptions = configuration.baseOptions;
|
|
1025
|
+
}
|
|
1026
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
1027
|
+
const localVarHeaderParameter = {};
|
|
1028
|
+
const localVarQueryParameter = {};
|
|
1029
|
+
// authentication bearerAuth required
|
|
1030
|
+
// http bearer authentication required
|
|
1031
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1032
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1033
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1034
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1035
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1036
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(managerCancelBookingRequest, localVarRequestOptions, configuration);
|
|
1037
|
+
return {
|
|
1038
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1039
|
+
options: localVarRequestOptions,
|
|
1040
|
+
};
|
|
1041
|
+
}),
|
|
278
1042
|
};
|
|
279
1043
|
};
|
|
280
|
-
exports.
|
|
1044
|
+
exports.ManagerBookingsApiAxiosParamCreator = ManagerBookingsApiAxiosParamCreator;
|
|
281
1045
|
/**
|
|
282
|
-
*
|
|
1046
|
+
* ManagerBookingsApi - functional programming interface
|
|
283
1047
|
* @export
|
|
284
1048
|
*/
|
|
285
|
-
const
|
|
286
|
-
const localVarAxiosParamCreator = (0, exports.
|
|
1049
|
+
const ManagerBookingsApiFp = function (configuration) {
|
|
1050
|
+
const localVarAxiosParamCreator = (0, exports.ManagerBookingsApiAxiosParamCreator)(configuration);
|
|
287
1051
|
return {
|
|
288
1052
|
/**
|
|
289
|
-
*
|
|
290
|
-
* @summary
|
|
291
|
-
* @param {
|
|
1053
|
+
* Applique les frais de no-show à une réservation. Capture automatiquement les paiements autorisés et charge le créateur pour le montant manquant.
|
|
1054
|
+
* @summary Appliquer les frais de no-show
|
|
1055
|
+
* @param {string} bookingId ID MongoDB de la réservation
|
|
292
1056
|
* @param {*} [options] Override http request option.
|
|
293
1057
|
* @throws {RequiredError}
|
|
294
1058
|
*/
|
|
295
|
-
|
|
1059
|
+
applyNoShowFee(bookingId, options) {
|
|
296
1060
|
return __awaiter(this, void 0, void 0, function* () {
|
|
297
1061
|
var _a, _b, _c;
|
|
298
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
1062
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.applyNoShowFee(bookingId, options);
|
|
299
1063
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
300
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['
|
|
1064
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ManagerBookingsApi.applyNoShowFee']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
301
1065
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
302
1066
|
});
|
|
303
1067
|
},
|
|
304
1068
|
/**
|
|
305
|
-
*
|
|
306
|
-
* @summary
|
|
1069
|
+
* Enregistre l\'arrivée et le paiement des joueurs pour une réservation avec paiement sur place. Met à jour le statut des factures.
|
|
1070
|
+
* @summary Enregistrer l\'arrivée des joueurs
|
|
1071
|
+
* @param {string} bookingId ID MongoDB de la réservation
|
|
1072
|
+
* @param {CheckInPlayersRequest} checkInPlayersRequest
|
|
307
1073
|
* @param {*} [options] Override http request option.
|
|
308
1074
|
* @throws {RequiredError}
|
|
309
1075
|
*/
|
|
310
|
-
|
|
1076
|
+
checkInPlayers(bookingId, checkInPlayersRequest, options) {
|
|
311
1077
|
return __awaiter(this, void 0, void 0, function* () {
|
|
312
1078
|
var _a, _b, _c;
|
|
313
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
1079
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.checkInPlayers(bookingId, checkInPlayersRequest, options);
|
|
314
1080
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
315
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['
|
|
1081
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ManagerBookingsApi.checkInPlayers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1082
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1083
|
+
});
|
|
1084
|
+
},
|
|
1085
|
+
/**
|
|
1086
|
+
* Récupère le statut détaillé des paiements pour tous les joueurs d\'une réservation. Utile pour l\'interface de check-in.
|
|
1087
|
+
* @summary Obtenir le statut des paiements d\'une réservation
|
|
1088
|
+
* @param {string} bookingId ID MongoDB de la réservation
|
|
1089
|
+
* @param {*} [options] Override http request option.
|
|
1090
|
+
* @throws {RequiredError}
|
|
1091
|
+
*/
|
|
1092
|
+
getBookingPaymentStatus(bookingId, options) {
|
|
1093
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1094
|
+
var _a, _b, _c;
|
|
1095
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getBookingPaymentStatus(bookingId, options);
|
|
1096
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1097
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ManagerBookingsApi.getBookingPaymentStatus']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1098
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1099
|
+
});
|
|
1100
|
+
},
|
|
1101
|
+
/**
|
|
1102
|
+
* Permet à un gestionnaire d\'annuler n\'importe quelle réservation avec une raison obligatoire. Effectue un remboursement automatique si le paiement a été fait en ligne.
|
|
1103
|
+
* @summary Annuler une réservation (gestionnaire)
|
|
1104
|
+
* @param {string} bookingId ID MongoDB de la réservation à annuler
|
|
1105
|
+
* @param {ManagerCancelBookingRequest} managerCancelBookingRequest
|
|
1106
|
+
* @param {*} [options] Override http request option.
|
|
1107
|
+
* @throws {RequiredError}
|
|
1108
|
+
*/
|
|
1109
|
+
managerCancelBooking(bookingId, managerCancelBookingRequest, options) {
|
|
1110
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1111
|
+
var _a, _b, _c;
|
|
1112
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.managerCancelBooking(bookingId, managerCancelBookingRequest, options);
|
|
1113
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1114
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ManagerBookingsApi.managerCancelBooking']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
316
1115
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
317
1116
|
});
|
|
318
1117
|
},
|
|
319
1118
|
};
|
|
320
1119
|
};
|
|
321
|
-
exports.
|
|
1120
|
+
exports.ManagerBookingsApiFp = ManagerBookingsApiFp;
|
|
322
1121
|
/**
|
|
323
|
-
*
|
|
1122
|
+
* ManagerBookingsApi - factory interface
|
|
324
1123
|
* @export
|
|
325
1124
|
*/
|
|
326
|
-
const
|
|
327
|
-
const localVarFp = (0, exports.
|
|
1125
|
+
const ManagerBookingsApiFactory = function (configuration, basePath, axios) {
|
|
1126
|
+
const localVarFp = (0, exports.ManagerBookingsApiFp)(configuration);
|
|
328
1127
|
return {
|
|
329
1128
|
/**
|
|
330
|
-
*
|
|
331
|
-
* @summary
|
|
332
|
-
* @param {
|
|
1129
|
+
* Applique les frais de no-show à une réservation. Capture automatiquement les paiements autorisés et charge le créateur pour le montant manquant.
|
|
1130
|
+
* @summary Appliquer les frais de no-show
|
|
1131
|
+
* @param {ManagerBookingsApiApplyNoShowFeeRequest} requestParameters Request parameters.
|
|
333
1132
|
* @param {*} [options] Override http request option.
|
|
334
1133
|
* @throws {RequiredError}
|
|
335
1134
|
*/
|
|
336
|
-
|
|
337
|
-
return localVarFp.
|
|
1135
|
+
applyNoShowFee(requestParameters, options) {
|
|
1136
|
+
return localVarFp.applyNoShowFee(requestParameters.bookingId, options).then((request) => request(axios, basePath));
|
|
338
1137
|
},
|
|
339
1138
|
/**
|
|
340
|
-
*
|
|
341
|
-
* @summary
|
|
1139
|
+
* Enregistre l\'arrivée et le paiement des joueurs pour une réservation avec paiement sur place. Met à jour le statut des factures.
|
|
1140
|
+
* @summary Enregistrer l\'arrivée des joueurs
|
|
1141
|
+
* @param {ManagerBookingsApiCheckInPlayersRequest} requestParameters Request parameters.
|
|
342
1142
|
* @param {*} [options] Override http request option.
|
|
343
1143
|
* @throws {RequiredError}
|
|
344
1144
|
*/
|
|
345
|
-
|
|
346
|
-
return localVarFp.
|
|
1145
|
+
checkInPlayers(requestParameters, options) {
|
|
1146
|
+
return localVarFp.checkInPlayers(requestParameters.bookingId, requestParameters.checkInPlayersRequest, options).then((request) => request(axios, basePath));
|
|
1147
|
+
},
|
|
1148
|
+
/**
|
|
1149
|
+
* Récupère le statut détaillé des paiements pour tous les joueurs d\'une réservation. Utile pour l\'interface de check-in.
|
|
1150
|
+
* @summary Obtenir le statut des paiements d\'une réservation
|
|
1151
|
+
* @param {ManagerBookingsApiGetBookingPaymentStatusRequest} requestParameters Request parameters.
|
|
1152
|
+
* @param {*} [options] Override http request option.
|
|
1153
|
+
* @throws {RequiredError}
|
|
1154
|
+
*/
|
|
1155
|
+
getBookingPaymentStatus(requestParameters, options) {
|
|
1156
|
+
return localVarFp.getBookingPaymentStatus(requestParameters.bookingId, options).then((request) => request(axios, basePath));
|
|
1157
|
+
},
|
|
1158
|
+
/**
|
|
1159
|
+
* Permet à un gestionnaire d\'annuler n\'importe quelle réservation avec une raison obligatoire. Effectue un remboursement automatique si le paiement a été fait en ligne.
|
|
1160
|
+
* @summary Annuler une réservation (gestionnaire)
|
|
1161
|
+
* @param {ManagerBookingsApiManagerCancelBookingRequest} requestParameters Request parameters.
|
|
1162
|
+
* @param {*} [options] Override http request option.
|
|
1163
|
+
* @throws {RequiredError}
|
|
1164
|
+
*/
|
|
1165
|
+
managerCancelBooking(requestParameters, options) {
|
|
1166
|
+
return localVarFp.managerCancelBooking(requestParameters.bookingId, requestParameters.managerCancelBookingRequest, options).then((request) => request(axios, basePath));
|
|
347
1167
|
},
|
|
348
1168
|
};
|
|
349
1169
|
};
|
|
350
|
-
exports.
|
|
1170
|
+
exports.ManagerBookingsApiFactory = ManagerBookingsApiFactory;
|
|
351
1171
|
/**
|
|
352
|
-
*
|
|
1172
|
+
* ManagerBookingsApi - object-oriented interface
|
|
353
1173
|
* @export
|
|
354
|
-
* @class
|
|
1174
|
+
* @class ManagerBookingsApi
|
|
355
1175
|
* @extends {BaseAPI}
|
|
356
1176
|
*/
|
|
357
|
-
class
|
|
1177
|
+
class ManagerBookingsApi extends base_1.BaseAPI {
|
|
358
1178
|
/**
|
|
359
|
-
*
|
|
360
|
-
* @summary
|
|
361
|
-
* @param {
|
|
1179
|
+
* Applique les frais de no-show à une réservation. Capture automatiquement les paiements autorisés et charge le créateur pour le montant manquant.
|
|
1180
|
+
* @summary Appliquer les frais de no-show
|
|
1181
|
+
* @param {ManagerBookingsApiApplyNoShowFeeRequest} requestParameters Request parameters.
|
|
362
1182
|
* @param {*} [options] Override http request option.
|
|
363
1183
|
* @throws {RequiredError}
|
|
364
|
-
* @memberof
|
|
1184
|
+
* @memberof ManagerBookingsApi
|
|
365
1185
|
*/
|
|
366
|
-
|
|
367
|
-
return (0, exports.
|
|
1186
|
+
applyNoShowFee(requestParameters, options) {
|
|
1187
|
+
return (0, exports.ManagerBookingsApiFp)(this.configuration).applyNoShowFee(requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
|
|
368
1188
|
}
|
|
369
1189
|
/**
|
|
370
|
-
*
|
|
371
|
-
* @summary
|
|
1190
|
+
* Enregistre l\'arrivée et le paiement des joueurs pour une réservation avec paiement sur place. Met à jour le statut des factures.
|
|
1191
|
+
* @summary Enregistrer l\'arrivée des joueurs
|
|
1192
|
+
* @param {ManagerBookingsApiCheckInPlayersRequest} requestParameters Request parameters.
|
|
372
1193
|
* @param {*} [options] Override http request option.
|
|
373
1194
|
* @throws {RequiredError}
|
|
374
|
-
* @memberof
|
|
1195
|
+
* @memberof ManagerBookingsApi
|
|
375
1196
|
*/
|
|
376
|
-
|
|
377
|
-
return (0, exports.
|
|
1197
|
+
checkInPlayers(requestParameters, options) {
|
|
1198
|
+
return (0, exports.ManagerBookingsApiFp)(this.configuration).checkInPlayers(requestParameters.bookingId, requestParameters.checkInPlayersRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1199
|
+
}
|
|
1200
|
+
/**
|
|
1201
|
+
* Récupère le statut détaillé des paiements pour tous les joueurs d\'une réservation. Utile pour l\'interface de check-in.
|
|
1202
|
+
* @summary Obtenir le statut des paiements d\'une réservation
|
|
1203
|
+
* @param {ManagerBookingsApiGetBookingPaymentStatusRequest} requestParameters Request parameters.
|
|
1204
|
+
* @param {*} [options] Override http request option.
|
|
1205
|
+
* @throws {RequiredError}
|
|
1206
|
+
* @memberof ManagerBookingsApi
|
|
1207
|
+
*/
|
|
1208
|
+
getBookingPaymentStatus(requestParameters, options) {
|
|
1209
|
+
return (0, exports.ManagerBookingsApiFp)(this.configuration).getBookingPaymentStatus(requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
|
|
1210
|
+
}
|
|
1211
|
+
/**
|
|
1212
|
+
* Permet à un gestionnaire d\'annuler n\'importe quelle réservation avec une raison obligatoire. Effectue un remboursement automatique si le paiement a été fait en ligne.
|
|
1213
|
+
* @summary Annuler une réservation (gestionnaire)
|
|
1214
|
+
* @param {ManagerBookingsApiManagerCancelBookingRequest} requestParameters Request parameters.
|
|
1215
|
+
* @param {*} [options] Override http request option.
|
|
1216
|
+
* @throws {RequiredError}
|
|
1217
|
+
* @memberof ManagerBookingsApi
|
|
1218
|
+
*/
|
|
1219
|
+
managerCancelBooking(requestParameters, options) {
|
|
1220
|
+
return (0, exports.ManagerBookingsApiFp)(this.configuration).managerCancelBooking(requestParameters.bookingId, requestParameters.managerCancelBookingRequest, options).then((request) => request(this.axios, this.basePath));
|
|
378
1221
|
}
|
|
379
1222
|
}
|
|
380
|
-
exports.
|
|
1223
|
+
exports.ManagerBookingsApi = ManagerBookingsApi;
|
|
381
1224
|
/**
|
|
382
1225
|
* ManagerClubCourtsApi - axios parameter creator
|
|
383
1226
|
* @export
|
|
@@ -2338,15 +3181,11 @@ const StaffClubAnalyticsApiAxiosParamCreator = function (configuration) {
|
|
|
2338
3181
|
/**
|
|
2339
3182
|
*
|
|
2340
3183
|
* @summary Get number of users subscribed to the club
|
|
2341
|
-
* @param {string} id ID du club
|
|
2342
3184
|
* @param {*} [options] Override http request option.
|
|
2343
3185
|
* @throws {RequiredError}
|
|
2344
3186
|
*/
|
|
2345
|
-
getNumberOfClubUsers: (
|
|
2346
|
-
|
|
2347
|
-
(0, common_1.assertParamExists)('getNumberOfClubUsers', 'id', id);
|
|
2348
|
-
const localVarPath = `/api/clubs/{id}/user-count`
|
|
2349
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
3187
|
+
getNumberOfClubUsers: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
3188
|
+
const localVarPath = `/api/clubs/user-count`;
|
|
2350
3189
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2351
3190
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2352
3191
|
let baseOptions;
|
|
@@ -2396,14 +3235,13 @@ const StaffClubAnalyticsApiFp = function (configuration) {
|
|
|
2396
3235
|
/**
|
|
2397
3236
|
*
|
|
2398
3237
|
* @summary Get number of users subscribed to the club
|
|
2399
|
-
* @param {string} id ID du club
|
|
2400
3238
|
* @param {*} [options] Override http request option.
|
|
2401
3239
|
* @throws {RequiredError}
|
|
2402
3240
|
*/
|
|
2403
|
-
getNumberOfClubUsers(
|
|
3241
|
+
getNumberOfClubUsers(options) {
|
|
2404
3242
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2405
3243
|
var _a, _b, _c;
|
|
2406
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getNumberOfClubUsers(
|
|
3244
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getNumberOfClubUsers(options);
|
|
2407
3245
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2408
3246
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['StaffClubAnalyticsApi.getNumberOfClubUsers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2409
3247
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -2432,12 +3270,11 @@ const StaffClubAnalyticsApiFactory = function (configuration, basePath, axios) {
|
|
|
2432
3270
|
/**
|
|
2433
3271
|
*
|
|
2434
3272
|
* @summary Get number of users subscribed to the club
|
|
2435
|
-
* @param {StaffClubAnalyticsApiGetNumberOfClubUsersRequest} requestParameters Request parameters.
|
|
2436
3273
|
* @param {*} [options] Override http request option.
|
|
2437
3274
|
* @throws {RequiredError}
|
|
2438
3275
|
*/
|
|
2439
|
-
getNumberOfClubUsers(
|
|
2440
|
-
return localVarFp.getNumberOfClubUsers(
|
|
3276
|
+
getNumberOfClubUsers(options) {
|
|
3277
|
+
return localVarFp.getNumberOfClubUsers(options).then((request) => request(axios, basePath));
|
|
2441
3278
|
},
|
|
2442
3279
|
};
|
|
2443
3280
|
};
|
|
@@ -2463,13 +3300,12 @@ class StaffClubAnalyticsApi extends base_1.BaseAPI {
|
|
|
2463
3300
|
/**
|
|
2464
3301
|
*
|
|
2465
3302
|
* @summary Get number of users subscribed to the club
|
|
2466
|
-
* @param {StaffClubAnalyticsApiGetNumberOfClubUsersRequest} requestParameters Request parameters.
|
|
2467
3303
|
* @param {*} [options] Override http request option.
|
|
2468
3304
|
* @throws {RequiredError}
|
|
2469
3305
|
* @memberof StaffClubAnalyticsApi
|
|
2470
3306
|
*/
|
|
2471
|
-
getNumberOfClubUsers(
|
|
2472
|
-
return (0, exports.StaffClubAnalyticsApiFp)(this.configuration).getNumberOfClubUsers(
|
|
3307
|
+
getNumberOfClubUsers(options) {
|
|
3308
|
+
return (0, exports.StaffClubAnalyticsApiFp)(this.configuration).getNumberOfClubUsers(options).then((request) => request(this.axios, this.basePath));
|
|
2473
3309
|
}
|
|
2474
3310
|
}
|
|
2475
3311
|
exports.StaffClubAnalyticsApi = StaffClubAnalyticsApi;
|
|
@@ -2589,13 +3425,10 @@ const StaffClubSettingsApiAxiosParamCreator = function (configuration) {
|
|
|
2589
3425
|
/**
|
|
2590
3426
|
*
|
|
2591
3427
|
* @summary Récupère les paramètres d\'un club
|
|
2592
|
-
* @param {GetClubSettingsRequest} getClubSettingsRequest
|
|
2593
3428
|
* @param {*} [options] Override http request option.
|
|
2594
3429
|
* @throws {RequiredError}
|
|
2595
3430
|
*/
|
|
2596
|
-
getClubSettings: (
|
|
2597
|
-
// verify required parameter 'getClubSettingsRequest' is not null or undefined
|
|
2598
|
-
(0, common_1.assertParamExists)('getClubSettings', 'getClubSettingsRequest', getClubSettingsRequest);
|
|
3431
|
+
getClubSettings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
2599
3432
|
const localVarPath = `/api/club-settings`;
|
|
2600
3433
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2601
3434
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -2609,11 +3442,9 @@ const StaffClubSettingsApiAxiosParamCreator = function (configuration) {
|
|
|
2609
3442
|
// authentication bearerAuth required
|
|
2610
3443
|
// http bearer authentication required
|
|
2611
3444
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2612
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2613
3445
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2614
3446
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2615
3447
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2616
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(getClubSettingsRequest, localVarRequestOptions, configuration);
|
|
2617
3448
|
return {
|
|
2618
3449
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2619
3450
|
options: localVarRequestOptions,
|
|
@@ -2632,14 +3463,13 @@ const StaffClubSettingsApiFp = function (configuration) {
|
|
|
2632
3463
|
/**
|
|
2633
3464
|
*
|
|
2634
3465
|
* @summary Récupère les paramètres d\'un club
|
|
2635
|
-
* @param {GetClubSettingsRequest} getClubSettingsRequest
|
|
2636
3466
|
* @param {*} [options] Override http request option.
|
|
2637
3467
|
* @throws {RequiredError}
|
|
2638
3468
|
*/
|
|
2639
|
-
getClubSettings(
|
|
3469
|
+
getClubSettings(options) {
|
|
2640
3470
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2641
3471
|
var _a, _b, _c;
|
|
2642
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubSettings(
|
|
3472
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubSettings(options);
|
|
2643
3473
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2644
3474
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['StaffClubSettingsApi.getClubSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2645
3475
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -2658,12 +3488,11 @@ const StaffClubSettingsApiFactory = function (configuration, basePath, axios) {
|
|
|
2658
3488
|
/**
|
|
2659
3489
|
*
|
|
2660
3490
|
* @summary Récupère les paramètres d\'un club
|
|
2661
|
-
* @param {StaffClubSettingsApiGetClubSettingsRequest} requestParameters Request parameters.
|
|
2662
3491
|
* @param {*} [options] Override http request option.
|
|
2663
3492
|
* @throws {RequiredError}
|
|
2664
3493
|
*/
|
|
2665
|
-
getClubSettings(
|
|
2666
|
-
return localVarFp.getClubSettings(
|
|
3494
|
+
getClubSettings(options) {
|
|
3495
|
+
return localVarFp.getClubSettings(options).then((request) => request(axios, basePath));
|
|
2667
3496
|
},
|
|
2668
3497
|
};
|
|
2669
3498
|
};
|
|
@@ -2678,13 +3507,12 @@ class StaffClubSettingsApi extends base_1.BaseAPI {
|
|
|
2678
3507
|
/**
|
|
2679
3508
|
*
|
|
2680
3509
|
* @summary Récupère les paramètres d\'un club
|
|
2681
|
-
* @param {StaffClubSettingsApiGetClubSettingsRequest} requestParameters Request parameters.
|
|
2682
3510
|
* @param {*} [options] Override http request option.
|
|
2683
3511
|
* @throws {RequiredError}
|
|
2684
3512
|
* @memberof StaffClubSettingsApi
|
|
2685
3513
|
*/
|
|
2686
|
-
getClubSettings(
|
|
2687
|
-
return (0, exports.StaffClubSettingsApiFp)(this.configuration).getClubSettings(
|
|
3514
|
+
getClubSettings(options) {
|
|
3515
|
+
return (0, exports.StaffClubSettingsApiFp)(this.configuration).getClubSettings(options).then((request) => request(this.axios, this.basePath));
|
|
2688
3516
|
}
|
|
2689
3517
|
}
|
|
2690
3518
|
exports.StaffClubSettingsApi = StaffClubSettingsApi;
|