@tennac-booking/sdk 1.0.140 → 1.0.142
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 +16 -4
- package/README.md +25 -3
- package/api.ts +1249 -150
- package/dist/api.d.ts +810 -111
- package/dist/api.js +616 -4
- package/dist/esm/api.d.ts +810 -111
- package/dist/esm/api.js +612 -0
- package/docs/BookingsPerDayItem.md +22 -0
- package/docs/BookingsPerDayResponse.md +24 -0
- package/docs/ClubAnalyticsStaffApi.md +376 -0
- package/docs/{ClubDaySchedule.md → ClubDayInterval.md} +7 -7
- package/docs/ClubHoursSettingsResponse.md +1 -1
- package/docs/ClubNewBookingsResponse.md +24 -0
- package/docs/ClubNewSubscribersResponse.md +24 -0
- package/docs/ClubSettingsManagerApi.md +107 -0
- package/docs/ClubSubscriberSummaryResponse.md +20 -0
- package/docs/DuplicateClubDayScheduleRequest.md +22 -0
- package/docs/LeastBookedTimeSlotItem.md +26 -0
- package/docs/LeastBookedTimeSlotsResponse.md +24 -0
- package/docs/LeastBookedWeekdayResponse.md +26 -0
- package/docs/NoShowRateResponse.md +28 -0
- package/docs/PartialRecordWeekdayKeyClubDayScheduleOrNullOrUndefined.md +33 -0
- package/docs/RecordWeekdayKeyClubDaySchedule.md +33 -0
- package/docs/UpdateClubDayScheduleRequest.md +20 -0
- package/docs/UpdateClubHoursSettingsRequest.md +1 -1
- package/docs/WeekdayAverageItem.md +28 -0
- package/docs/WeekdayKey.md +20 -0
- package/package.json +1 -1
- package/docs/ClubWeeklySchedule.md +0 -32
- package/docs/PartialClubWeeklySchedule.md +0 -33
package/dist/api.js
CHANGED
|
@@ -22,10 +22,10 @@ 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.
|
|
28
|
-
exports.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.SubscriptionsUserApi = exports.SubscriptionsUserApiFactory = exports.SubscriptionsUserApiFp = exports.SubscriptionsUserApiAxiosParamCreator = exports.SubscriptionsStaffApi = exports.SubscriptionsStaffApiFactory = void 0;
|
|
25
|
+
exports.BookingsApiAxiosParamCreator = exports.WeekdayKey = exports.VisibilityType = exports.UserLocationSummaryTypeEnum = exports.UpdateRecurringDefinitionRequestRecurringTypeEnum = exports.UpdateRecurringDefinitionRequestParticipationTypeEnum = exports.UpdateRecurringDefinitionRequestTypeEnum = exports.UpdateRecurringDefinitionRequestVisibilityTypeEnum = exports.UpdateEventRequestVisibilityTypeEnum = exports.UpdateEventRequestParticipationTypeEnum = exports.UpdateEventRequestRecurringTypeEnum = exports.UpdateEventRequestTypeEnum = exports.UpdateClubRoleRequestRoleEnum = exports.UpdateClubMemberRequestRoleEnum = exports.SurfaceType = exports.StaffBookingPaymentState = exports.SportKey = exports.RegisterRequestBodyLocationTypeEnum = exports.RecurringDefinitionResponseRecurringTypeEnum = exports.PublicAccessSettingsPaymentModeEnum = exports.PlayerCategoryId = exports.PlanInterval = exports.PaymentMethod = exports.ParticipationType = exports.PartialPublicAccessSettingsPaymentModeEnum = exports.InvoiceStatusSETUPSUCCESS = exports.InvoiceStatusSETUPPENDING = exports.InvoiceStatus = exports.ImageContextType = exports.IUserLocationTypeEnum = exports.Gender = exports.EventResponseVisibilityTypeEnum = exports.EventResponseParticipationTypeEnum = exports.EventResponseRecurringTypeEnum = exports.EventResponseTypeEnum = exports.EventBookingStatus = exports.DiscountType = exports.CreateEventRequestVisibilityTypeEnum = exports.CreateEventRequestParticipationTypeEnum = exports.CreateEventRequestRecurringTypeEnum = exports.CreateEventRequestTypeEnum = exports.CreateClubRoleRequestRoleEnum = exports.CourtStatus = exports.ClubRoleResponseRoleEnum = exports.ClientOnboardingRequestBodyClubTypeEnum = exports.CaptureResultStatusEnum = exports.CaptureResultTypeEnum = exports.BookingStatus = exports.BookingHistoryPopulatedPerformedByTypeEnum = exports.AgendaPaymentStatus = void 0;
|
|
26
|
+
exports.ClubsManagerApiFactory = exports.ClubsManagerApiFp = exports.ClubsManagerApiAxiosParamCreator = exports.ClubsApi = exports.ClubsApiFactory = exports.ClubsApiFp = exports.ClubsApiAxiosParamCreator = exports.ClubSettingsStaffApi = exports.ClubSettingsStaffApiFactory = exports.ClubSettingsStaffApiFp = exports.ClubSettingsStaffApiAxiosParamCreator = exports.ClubSettingsManagerApi = exports.ClubSettingsManagerApiFactory = exports.ClubSettingsManagerApiFp = exports.ClubSettingsManagerApiAxiosParamCreator = exports.ClubRolesStaffApi = exports.ClubRolesStaffApiFactory = exports.ClubRolesStaffApiFp = exports.ClubRolesStaffApiAxiosParamCreator = exports.ClubRolesManagerApi = exports.ClubRolesManagerApiFactory = exports.ClubRolesManagerApiFp = exports.ClubRolesManagerApiAxiosParamCreator = exports.ClubAnalyticsStaffApi = exports.ClubAnalyticsStaffApiFactory = exports.ClubAnalyticsStaffApiFp = exports.ClubAnalyticsStaffApiAxiosParamCreator = exports.ClubAnalyticsApi = exports.ClubAnalyticsApiFactory = exports.ClubAnalyticsApiFp = exports.ClubAnalyticsApiAxiosParamCreator = exports.ClientApi = exports.ClientApiFactory = exports.ClientApiFp = exports.ClientApiAxiosParamCreator = exports.BookingsUserApi = exports.BookingsUserApiFactory = exports.BookingsUserApiFp = exports.BookingsUserApiAxiosParamCreator = exports.BookingsStaffApi = exports.BookingsStaffApiFactory = exports.BookingsStaffApiFp = exports.BookingsStaffApiAxiosParamCreator = exports.BookingsManagerApi = exports.BookingsManagerApiFactory = exports.BookingsManagerApiFp = exports.BookingsManagerApiAxiosParamCreator = exports.BookingsApi = exports.BookingsApiFactory = exports.BookingsApiFp = void 0;
|
|
27
|
+
exports.SubscriptionsStaffApiAxiosParamCreator = exports.SubscriptionsPublicApi = exports.SubscriptionsPublicApiFactory = exports.SubscriptionsPublicApiFp = exports.SubscriptionsPublicApiAxiosParamCreator = exports.SubscriptionsManagerApi = exports.SubscriptionsManagerApiFactory = exports.SubscriptionsManagerApiFp = exports.SubscriptionsManagerApiAxiosParamCreator = exports.SportsPublicApi = exports.SportsPublicApiFactory = exports.SportsPublicApiFp = exports.SportsPublicApiAxiosParamCreator = exports.SportsManagerApi = exports.SportsManagerApiFactory = exports.SportsManagerApiFp = exports.SportsManagerApiAxiosParamCreator = exports.ImagesApi = exports.ImagesApiFactory = exports.ImagesApiFp = exports.ImagesApiAxiosParamCreator = exports.GetWeeklyEventsTypeEnum = exports.GetWeeklyEventsVisibilityTypeEnum = exports.GetMonthlyEventsTypeEnum = exports.GetMonthlyEventsVisibilityTypeEnum = exports.GetDailyEventsTypeEnum = exports.GetDailyEventsVisibilityTypeEnum = exports.EventsStaffApi = exports.EventsStaffApiFactory = exports.EventsStaffApiFp = exports.EventsStaffApiAxiosParamCreator = exports.EventsManagerApi = exports.EventsManagerApiFactory = exports.EventsManagerApiFp = exports.EventsManagerApiAxiosParamCreator = exports.GetPublishedEventsByClubIdTypeEnum = exports.GetPublishedEventsByClubIdVisibilityTypeEnum = exports.EventsApi = exports.EventsApiFactory = exports.EventsApiFp = exports.EventsApiAxiosParamCreator = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.ClubsStaffApi = exports.ClubsStaffApiFactory = exports.ClubsStaffApiFp = exports.ClubsStaffApiAxiosParamCreator = exports.ClubsManagerApi = void 0;
|
|
28
|
+
exports.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.SubscriptionsUserApi = exports.SubscriptionsUserApiFactory = exports.SubscriptionsUserApiFp = exports.SubscriptionsUserApiAxiosParamCreator = exports.SubscriptionsStaffApi = exports.SubscriptionsStaffApiFactory = exports.SubscriptionsStaffApiFp = void 0;
|
|
29
29
|
const axios_1 = require("axios");
|
|
30
30
|
// Some imports not used depending on template conditions
|
|
31
31
|
// @ts-ignore
|
|
@@ -372,6 +372,20 @@ exports.VisibilityType = {
|
|
|
372
372
|
Private: 'private',
|
|
373
373
|
Invitation: 'invitation'
|
|
374
374
|
};
|
|
375
|
+
/**
|
|
376
|
+
*
|
|
377
|
+
* @export
|
|
378
|
+
* @enum {string}
|
|
379
|
+
*/
|
|
380
|
+
exports.WeekdayKey = {
|
|
381
|
+
Monday: 'monday',
|
|
382
|
+
Tuesday: 'tuesday',
|
|
383
|
+
Wednesday: 'wednesday',
|
|
384
|
+
Thursday: 'thursday',
|
|
385
|
+
Friday: 'friday',
|
|
386
|
+
Saturday: 'saturday',
|
|
387
|
+
Sunday: 'sunday'
|
|
388
|
+
};
|
|
375
389
|
/**
|
|
376
390
|
* BookingsApi - axios parameter creator
|
|
377
391
|
* @export
|
|
@@ -2055,6 +2069,41 @@ const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
2055
2069
|
options: localVarRequestOptions,
|
|
2056
2070
|
};
|
|
2057
2071
|
}),
|
|
2072
|
+
/**
|
|
2073
|
+
* Nombre de réservations par jour en fonction des slots
|
|
2074
|
+
* @param {string} [startDate]
|
|
2075
|
+
* @param {string} [endDate]
|
|
2076
|
+
* @param {*} [options] Override http request option.
|
|
2077
|
+
* @throws {RequiredError}
|
|
2078
|
+
*/
|
|
2079
|
+
getBookingsPerDay: (startDate_1, endDate_1, ...args_1) => __awaiter(this, [startDate_1, endDate_1, ...args_1], void 0, function* (startDate, endDate, options = {}) {
|
|
2080
|
+
const localVarPath = `/api/club-analytics/bookings/per-day`;
|
|
2081
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2082
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2083
|
+
let baseOptions;
|
|
2084
|
+
if (configuration) {
|
|
2085
|
+
baseOptions = configuration.baseOptions;
|
|
2086
|
+
}
|
|
2087
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2088
|
+
const localVarHeaderParameter = {};
|
|
2089
|
+
const localVarQueryParameter = {};
|
|
2090
|
+
// authentication bearerAuth required
|
|
2091
|
+
// http bearer authentication required
|
|
2092
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2093
|
+
if (startDate !== undefined) {
|
|
2094
|
+
localVarQueryParameter['startDate'] = startDate;
|
|
2095
|
+
}
|
|
2096
|
+
if (endDate !== undefined) {
|
|
2097
|
+
localVarQueryParameter['endDate'] = endDate;
|
|
2098
|
+
}
|
|
2099
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2100
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2101
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2102
|
+
return {
|
|
2103
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2104
|
+
options: localVarRequestOptions,
|
|
2105
|
+
};
|
|
2106
|
+
}),
|
|
2058
2107
|
/**
|
|
2059
2108
|
* Récupère les réservations d\'un joueur par son ID (à venir et passées)
|
|
2060
2109
|
* @param {string} playerId
|
|
@@ -2199,6 +2248,33 @@ const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
2199
2248
|
options: localVarRequestOptions,
|
|
2200
2249
|
};
|
|
2201
2250
|
}),
|
|
2251
|
+
/**
|
|
2252
|
+
* Nombre total d\'abonnés actifs du club
|
|
2253
|
+
* @param {*} [options] Override http request option.
|
|
2254
|
+
* @throws {RequiredError}
|
|
2255
|
+
*/
|
|
2256
|
+
getClubSubscribersSummary: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
2257
|
+
const localVarPath = `/api/club-analytics/subscribers/total`;
|
|
2258
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2259
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2260
|
+
let baseOptions;
|
|
2261
|
+
if (configuration) {
|
|
2262
|
+
baseOptions = configuration.baseOptions;
|
|
2263
|
+
}
|
|
2264
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2265
|
+
const localVarHeaderParameter = {};
|
|
2266
|
+
const localVarQueryParameter = {};
|
|
2267
|
+
// authentication bearerAuth required
|
|
2268
|
+
// http bearer authentication required
|
|
2269
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2270
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2271
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2272
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2273
|
+
return {
|
|
2274
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2275
|
+
options: localVarRequestOptions,
|
|
2276
|
+
};
|
|
2277
|
+
}),
|
|
2202
2278
|
/**
|
|
2203
2279
|
* Récupère le chiffre d\'affaires quotidien
|
|
2204
2280
|
* @param {string} date
|
|
@@ -2321,6 +2397,64 @@ const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
2321
2397
|
options: localVarRequestOptions,
|
|
2322
2398
|
};
|
|
2323
2399
|
}),
|
|
2400
|
+
/**
|
|
2401
|
+
* Créneaux horaires les moins réservés (3 derniers mois)
|
|
2402
|
+
* @param {number} [limit]
|
|
2403
|
+
* @param {*} [options] Override http request option.
|
|
2404
|
+
* @throws {RequiredError}
|
|
2405
|
+
*/
|
|
2406
|
+
getLeastBookedTimeSlots: (limit_1, ...args_1) => __awaiter(this, [limit_1, ...args_1], void 0, function* (limit, options = {}) {
|
|
2407
|
+
const localVarPath = `/api/club-analytics/bookings/least-booked-time-slots`;
|
|
2408
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2409
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2410
|
+
let baseOptions;
|
|
2411
|
+
if (configuration) {
|
|
2412
|
+
baseOptions = configuration.baseOptions;
|
|
2413
|
+
}
|
|
2414
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2415
|
+
const localVarHeaderParameter = {};
|
|
2416
|
+
const localVarQueryParameter = {};
|
|
2417
|
+
// authentication bearerAuth required
|
|
2418
|
+
// http bearer authentication required
|
|
2419
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2420
|
+
if (limit !== undefined) {
|
|
2421
|
+
localVarQueryParameter['limit'] = limit;
|
|
2422
|
+
}
|
|
2423
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2424
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2425
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2426
|
+
return {
|
|
2427
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2428
|
+
options: localVarRequestOptions,
|
|
2429
|
+
};
|
|
2430
|
+
}),
|
|
2431
|
+
/**
|
|
2432
|
+
* Jour de la semaine le moins réservé (3 derniers mois)
|
|
2433
|
+
* @param {*} [options] Override http request option.
|
|
2434
|
+
* @throws {RequiredError}
|
|
2435
|
+
*/
|
|
2436
|
+
getLeastBookedWeekday: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
2437
|
+
const localVarPath = `/api/club-analytics/bookings/least-booked-weekday`;
|
|
2438
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2439
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2440
|
+
let baseOptions;
|
|
2441
|
+
if (configuration) {
|
|
2442
|
+
baseOptions = configuration.baseOptions;
|
|
2443
|
+
}
|
|
2444
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2445
|
+
const localVarHeaderParameter = {};
|
|
2446
|
+
const localVarQueryParameter = {};
|
|
2447
|
+
// authentication bearerAuth required
|
|
2448
|
+
// http bearer authentication required
|
|
2449
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
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
|
+
return {
|
|
2454
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2455
|
+
options: localVarRequestOptions,
|
|
2456
|
+
};
|
|
2457
|
+
}),
|
|
2324
2458
|
/**
|
|
2325
2459
|
* Récupère le chiffre d\'affaires mensuel
|
|
2326
2460
|
* @param {string} year
|
|
@@ -2360,6 +2494,111 @@ const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
2360
2494
|
options: localVarRequestOptions,
|
|
2361
2495
|
};
|
|
2362
2496
|
}),
|
|
2497
|
+
/**
|
|
2498
|
+
* Nouvelles réservations créées sur une période
|
|
2499
|
+
* @param {string} [startDate]
|
|
2500
|
+
* @param {string} [endDate]
|
|
2501
|
+
* @param {*} [options] Override http request option.
|
|
2502
|
+
* @throws {RequiredError}
|
|
2503
|
+
*/
|
|
2504
|
+
getNewBookingsCount: (startDate_1, endDate_1, ...args_1) => __awaiter(this, [startDate_1, endDate_1, ...args_1], void 0, function* (startDate, endDate, options = {}) {
|
|
2505
|
+
const localVarPath = `/api/club-analytics/bookings/new`;
|
|
2506
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2507
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2508
|
+
let baseOptions;
|
|
2509
|
+
if (configuration) {
|
|
2510
|
+
baseOptions = configuration.baseOptions;
|
|
2511
|
+
}
|
|
2512
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2513
|
+
const localVarHeaderParameter = {};
|
|
2514
|
+
const localVarQueryParameter = {};
|
|
2515
|
+
// authentication bearerAuth required
|
|
2516
|
+
// http bearer authentication required
|
|
2517
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2518
|
+
if (startDate !== undefined) {
|
|
2519
|
+
localVarQueryParameter['startDate'] = startDate;
|
|
2520
|
+
}
|
|
2521
|
+
if (endDate !== undefined) {
|
|
2522
|
+
localVarQueryParameter['endDate'] = endDate;
|
|
2523
|
+
}
|
|
2524
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2525
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2526
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2527
|
+
return {
|
|
2528
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2529
|
+
options: localVarRequestOptions,
|
|
2530
|
+
};
|
|
2531
|
+
}),
|
|
2532
|
+
/**
|
|
2533
|
+
* Nouveaux abonnés sur une période
|
|
2534
|
+
* @param {string} [startDate]
|
|
2535
|
+
* @param {string} [endDate]
|
|
2536
|
+
* @param {*} [options] Override http request option.
|
|
2537
|
+
* @throws {RequiredError}
|
|
2538
|
+
*/
|
|
2539
|
+
getNewSubscribersCount: (startDate_1, endDate_1, ...args_1) => __awaiter(this, [startDate_1, endDate_1, ...args_1], void 0, function* (startDate, endDate, options = {}) {
|
|
2540
|
+
const localVarPath = `/api/club-analytics/subscribers/new`;
|
|
2541
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2542
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2543
|
+
let baseOptions;
|
|
2544
|
+
if (configuration) {
|
|
2545
|
+
baseOptions = configuration.baseOptions;
|
|
2546
|
+
}
|
|
2547
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2548
|
+
const localVarHeaderParameter = {};
|
|
2549
|
+
const localVarQueryParameter = {};
|
|
2550
|
+
// authentication bearerAuth required
|
|
2551
|
+
// http bearer authentication required
|
|
2552
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2553
|
+
if (startDate !== undefined) {
|
|
2554
|
+
localVarQueryParameter['startDate'] = startDate;
|
|
2555
|
+
}
|
|
2556
|
+
if (endDate !== undefined) {
|
|
2557
|
+
localVarQueryParameter['endDate'] = endDate;
|
|
2558
|
+
}
|
|
2559
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2560
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2561
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2562
|
+
return {
|
|
2563
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2564
|
+
options: localVarRequestOptions,
|
|
2565
|
+
};
|
|
2566
|
+
}),
|
|
2567
|
+
/**
|
|
2568
|
+
* Taux de no-show global ou sur une période
|
|
2569
|
+
* @param {string} [startDate]
|
|
2570
|
+
* @param {string} [endDate]
|
|
2571
|
+
* @param {*} [options] Override http request option.
|
|
2572
|
+
* @throws {RequiredError}
|
|
2573
|
+
*/
|
|
2574
|
+
getNoShowRate: (startDate_1, endDate_1, ...args_1) => __awaiter(this, [startDate_1, endDate_1, ...args_1], void 0, function* (startDate, endDate, options = {}) {
|
|
2575
|
+
const localVarPath = `/api/club-analytics/bookings/no-show-rate`;
|
|
2576
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2577
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2578
|
+
let baseOptions;
|
|
2579
|
+
if (configuration) {
|
|
2580
|
+
baseOptions = configuration.baseOptions;
|
|
2581
|
+
}
|
|
2582
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2583
|
+
const localVarHeaderParameter = {};
|
|
2584
|
+
const localVarQueryParameter = {};
|
|
2585
|
+
// authentication bearerAuth required
|
|
2586
|
+
// http bearer authentication required
|
|
2587
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2588
|
+
if (startDate !== undefined) {
|
|
2589
|
+
localVarQueryParameter['startDate'] = startDate;
|
|
2590
|
+
}
|
|
2591
|
+
if (endDate !== undefined) {
|
|
2592
|
+
localVarQueryParameter['endDate'] = endDate;
|
|
2593
|
+
}
|
|
2594
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2595
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2596
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2597
|
+
return {
|
|
2598
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2599
|
+
options: localVarRequestOptions,
|
|
2600
|
+
};
|
|
2601
|
+
}),
|
|
2363
2602
|
/**
|
|
2364
2603
|
* Récupère le nombre d\'utilisateurs du club
|
|
2365
2604
|
* @param {*} [options] Override http request option.
|
|
@@ -2553,6 +2792,22 @@ const ClubAnalyticsStaffApiFp = function (configuration) {
|
|
|
2553
2792
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2554
2793
|
});
|
|
2555
2794
|
},
|
|
2795
|
+
/**
|
|
2796
|
+
* Nombre de réservations par jour en fonction des slots
|
|
2797
|
+
* @param {string} [startDate]
|
|
2798
|
+
* @param {string} [endDate]
|
|
2799
|
+
* @param {*} [options] Override http request option.
|
|
2800
|
+
* @throws {RequiredError}
|
|
2801
|
+
*/
|
|
2802
|
+
getBookingsPerDay(startDate, endDate, options) {
|
|
2803
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2804
|
+
var _a, _b, _c;
|
|
2805
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getBookingsPerDay(startDate, endDate, options);
|
|
2806
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2807
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubAnalyticsStaffApi.getBookingsPerDay']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2808
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2809
|
+
});
|
|
2810
|
+
},
|
|
2556
2811
|
/**
|
|
2557
2812
|
* Récupère les réservations d\'un joueur par son ID (à venir et passées)
|
|
2558
2813
|
* @param {string} playerId
|
|
@@ -2618,6 +2873,20 @@ const ClubAnalyticsStaffApiFp = function (configuration) {
|
|
|
2618
2873
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2619
2874
|
});
|
|
2620
2875
|
},
|
|
2876
|
+
/**
|
|
2877
|
+
* Nombre total d\'abonnés actifs du club
|
|
2878
|
+
* @param {*} [options] Override http request option.
|
|
2879
|
+
* @throws {RequiredError}
|
|
2880
|
+
*/
|
|
2881
|
+
getClubSubscribersSummary(options) {
|
|
2882
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2883
|
+
var _a, _b, _c;
|
|
2884
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubSubscribersSummary(options);
|
|
2885
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2886
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubAnalyticsStaffApi.getClubSubscribersSummary']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2887
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2888
|
+
});
|
|
2889
|
+
},
|
|
2621
2890
|
/**
|
|
2622
2891
|
* Récupère le chiffre d\'affaires quotidien
|
|
2623
2892
|
* @param {string} date
|
|
@@ -2677,6 +2946,35 @@ const ClubAnalyticsStaffApiFp = function (configuration) {
|
|
|
2677
2946
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2678
2947
|
});
|
|
2679
2948
|
},
|
|
2949
|
+
/**
|
|
2950
|
+
* Créneaux horaires les moins réservés (3 derniers mois)
|
|
2951
|
+
* @param {number} [limit]
|
|
2952
|
+
* @param {*} [options] Override http request option.
|
|
2953
|
+
* @throws {RequiredError}
|
|
2954
|
+
*/
|
|
2955
|
+
getLeastBookedTimeSlots(limit, options) {
|
|
2956
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2957
|
+
var _a, _b, _c;
|
|
2958
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getLeastBookedTimeSlots(limit, options);
|
|
2959
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2960
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubAnalyticsStaffApi.getLeastBookedTimeSlots']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2961
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2962
|
+
});
|
|
2963
|
+
},
|
|
2964
|
+
/**
|
|
2965
|
+
* Jour de la semaine le moins réservé (3 derniers mois)
|
|
2966
|
+
* @param {*} [options] Override http request option.
|
|
2967
|
+
* @throws {RequiredError}
|
|
2968
|
+
*/
|
|
2969
|
+
getLeastBookedWeekday(options) {
|
|
2970
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2971
|
+
var _a, _b, _c;
|
|
2972
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getLeastBookedWeekday(options);
|
|
2973
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2974
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubAnalyticsStaffApi.getLeastBookedWeekday']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2975
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2976
|
+
});
|
|
2977
|
+
},
|
|
2680
2978
|
/**
|
|
2681
2979
|
* Récupère le chiffre d\'affaires mensuel
|
|
2682
2980
|
* @param {string} year
|
|
@@ -2693,6 +2991,54 @@ const ClubAnalyticsStaffApiFp = function (configuration) {
|
|
|
2693
2991
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2694
2992
|
});
|
|
2695
2993
|
},
|
|
2994
|
+
/**
|
|
2995
|
+
* Nouvelles réservations créées sur une période
|
|
2996
|
+
* @param {string} [startDate]
|
|
2997
|
+
* @param {string} [endDate]
|
|
2998
|
+
* @param {*} [options] Override http request option.
|
|
2999
|
+
* @throws {RequiredError}
|
|
3000
|
+
*/
|
|
3001
|
+
getNewBookingsCount(startDate, endDate, options) {
|
|
3002
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3003
|
+
var _a, _b, _c;
|
|
3004
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getNewBookingsCount(startDate, endDate, options);
|
|
3005
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3006
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubAnalyticsStaffApi.getNewBookingsCount']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3007
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3008
|
+
});
|
|
3009
|
+
},
|
|
3010
|
+
/**
|
|
3011
|
+
* Nouveaux abonnés sur une période
|
|
3012
|
+
* @param {string} [startDate]
|
|
3013
|
+
* @param {string} [endDate]
|
|
3014
|
+
* @param {*} [options] Override http request option.
|
|
3015
|
+
* @throws {RequiredError}
|
|
3016
|
+
*/
|
|
3017
|
+
getNewSubscribersCount(startDate, endDate, options) {
|
|
3018
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3019
|
+
var _a, _b, _c;
|
|
3020
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getNewSubscribersCount(startDate, endDate, options);
|
|
3021
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3022
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubAnalyticsStaffApi.getNewSubscribersCount']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3023
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3024
|
+
});
|
|
3025
|
+
},
|
|
3026
|
+
/**
|
|
3027
|
+
* Taux de no-show global ou sur une période
|
|
3028
|
+
* @param {string} [startDate]
|
|
3029
|
+
* @param {string} [endDate]
|
|
3030
|
+
* @param {*} [options] Override http request option.
|
|
3031
|
+
* @throws {RequiredError}
|
|
3032
|
+
*/
|
|
3033
|
+
getNoShowRate(startDate, endDate, options) {
|
|
3034
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3035
|
+
var _a, _b, _c;
|
|
3036
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getNoShowRate(startDate, endDate, options);
|
|
3037
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3038
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubAnalyticsStaffApi.getNoShowRate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3039
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3040
|
+
});
|
|
3041
|
+
},
|
|
2696
3042
|
/**
|
|
2697
3043
|
* Récupère le nombre d\'utilisateurs du club
|
|
2698
3044
|
* @param {*} [options] Override http request option.
|
|
@@ -2797,6 +3143,15 @@ const ClubAnalyticsStaffApiFactory = function (configuration, basePath, axios) {
|
|
|
2797
3143
|
getAnalyticsBySport(requestParameters, options) {
|
|
2798
3144
|
return localVarFp.getAnalyticsBySport(requestParameters.sportId, options).then((request) => request(axios, basePath));
|
|
2799
3145
|
},
|
|
3146
|
+
/**
|
|
3147
|
+
* Nombre de réservations par jour en fonction des slots
|
|
3148
|
+
* @param {ClubAnalyticsStaffApiGetBookingsPerDayRequest} requestParameters Request parameters.
|
|
3149
|
+
* @param {*} [options] Override http request option.
|
|
3150
|
+
* @throws {RequiredError}
|
|
3151
|
+
*/
|
|
3152
|
+
getBookingsPerDay(requestParameters = {}, options) {
|
|
3153
|
+
return localVarFp.getBookingsPerDay(requestParameters.startDate, requestParameters.endDate, options).then((request) => request(axios, basePath));
|
|
3154
|
+
},
|
|
2800
3155
|
/**
|
|
2801
3156
|
* Récupère les réservations d\'un joueur par son ID (à venir et passées)
|
|
2802
3157
|
* @param {ClubAnalyticsStaffApiGetClubPlayerBookingsByIdRequest} requestParameters Request parameters.
|
|
@@ -2833,6 +3188,14 @@ const ClubAnalyticsStaffApiFactory = function (configuration, basePath, axios) {
|
|
|
2833
3188
|
getClubPlayers(requestParameters = {}, options) {
|
|
2834
3189
|
return localVarFp.getClubPlayers(requestParameters.page, requestParameters.pageSize, requestParameters.search, requestParameters.filters, options).then((request) => request(axios, basePath));
|
|
2835
3190
|
},
|
|
3191
|
+
/**
|
|
3192
|
+
* Nombre total d\'abonnés actifs du club
|
|
3193
|
+
* @param {*} [options] Override http request option.
|
|
3194
|
+
* @throws {RequiredError}
|
|
3195
|
+
*/
|
|
3196
|
+
getClubSubscribersSummary(options) {
|
|
3197
|
+
return localVarFp.getClubSubscribersSummary(options).then((request) => request(axios, basePath));
|
|
3198
|
+
},
|
|
2836
3199
|
/**
|
|
2837
3200
|
* Récupère le chiffre d\'affaires quotidien
|
|
2838
3201
|
* @param {ClubAnalyticsStaffApiGetDailyTurnOverRequest} requestParameters Request parameters.
|
|
@@ -2867,6 +3230,23 @@ const ClubAnalyticsStaffApiFactory = function (configuration, basePath, axios) {
|
|
|
2867
3230
|
getLastSixMonthsTurnover(options) {
|
|
2868
3231
|
return localVarFp.getLastSixMonthsTurnover(options).then((request) => request(axios, basePath));
|
|
2869
3232
|
},
|
|
3233
|
+
/**
|
|
3234
|
+
* Créneaux horaires les moins réservés (3 derniers mois)
|
|
3235
|
+
* @param {ClubAnalyticsStaffApiGetLeastBookedTimeSlotsRequest} requestParameters Request parameters.
|
|
3236
|
+
* @param {*} [options] Override http request option.
|
|
3237
|
+
* @throws {RequiredError}
|
|
3238
|
+
*/
|
|
3239
|
+
getLeastBookedTimeSlots(requestParameters = {}, options) {
|
|
3240
|
+
return localVarFp.getLeastBookedTimeSlots(requestParameters.limit, options).then((request) => request(axios, basePath));
|
|
3241
|
+
},
|
|
3242
|
+
/**
|
|
3243
|
+
* Jour de la semaine le moins réservé (3 derniers mois)
|
|
3244
|
+
* @param {*} [options] Override http request option.
|
|
3245
|
+
* @throws {RequiredError}
|
|
3246
|
+
*/
|
|
3247
|
+
getLeastBookedWeekday(options) {
|
|
3248
|
+
return localVarFp.getLeastBookedWeekday(options).then((request) => request(axios, basePath));
|
|
3249
|
+
},
|
|
2870
3250
|
/**
|
|
2871
3251
|
* Récupère le chiffre d\'affaires mensuel
|
|
2872
3252
|
* @param {ClubAnalyticsStaffApiGetMonthlyTurnOverRequest} requestParameters Request parameters.
|
|
@@ -2876,6 +3256,33 @@ const ClubAnalyticsStaffApiFactory = function (configuration, basePath, axios) {
|
|
|
2876
3256
|
getMonthlyTurnOver(requestParameters, options) {
|
|
2877
3257
|
return localVarFp.getMonthlyTurnOver(requestParameters.year, requestParameters.month, options).then((request) => request(axios, basePath));
|
|
2878
3258
|
},
|
|
3259
|
+
/**
|
|
3260
|
+
* Nouvelles réservations créées sur une période
|
|
3261
|
+
* @param {ClubAnalyticsStaffApiGetNewBookingsCountRequest} requestParameters Request parameters.
|
|
3262
|
+
* @param {*} [options] Override http request option.
|
|
3263
|
+
* @throws {RequiredError}
|
|
3264
|
+
*/
|
|
3265
|
+
getNewBookingsCount(requestParameters = {}, options) {
|
|
3266
|
+
return localVarFp.getNewBookingsCount(requestParameters.startDate, requestParameters.endDate, options).then((request) => request(axios, basePath));
|
|
3267
|
+
},
|
|
3268
|
+
/**
|
|
3269
|
+
* Nouveaux abonnés sur une période
|
|
3270
|
+
* @param {ClubAnalyticsStaffApiGetNewSubscribersCountRequest} requestParameters Request parameters.
|
|
3271
|
+
* @param {*} [options] Override http request option.
|
|
3272
|
+
* @throws {RequiredError}
|
|
3273
|
+
*/
|
|
3274
|
+
getNewSubscribersCount(requestParameters = {}, options) {
|
|
3275
|
+
return localVarFp.getNewSubscribersCount(requestParameters.startDate, requestParameters.endDate, options).then((request) => request(axios, basePath));
|
|
3276
|
+
},
|
|
3277
|
+
/**
|
|
3278
|
+
* Taux de no-show global ou sur une période
|
|
3279
|
+
* @param {ClubAnalyticsStaffApiGetNoShowRateRequest} requestParameters Request parameters.
|
|
3280
|
+
* @param {*} [options] Override http request option.
|
|
3281
|
+
* @throws {RequiredError}
|
|
3282
|
+
*/
|
|
3283
|
+
getNoShowRate(requestParameters = {}, options) {
|
|
3284
|
+
return localVarFp.getNoShowRate(requestParameters.startDate, requestParameters.endDate, options).then((request) => request(axios, basePath));
|
|
3285
|
+
},
|
|
2879
3286
|
/**
|
|
2880
3287
|
* Récupère le nombre d\'utilisateurs du club
|
|
2881
3288
|
* @param {*} [options] Override http request option.
|
|
@@ -2945,6 +3352,16 @@ class ClubAnalyticsStaffApi extends base_1.BaseAPI {
|
|
|
2945
3352
|
getAnalyticsBySport(requestParameters, options) {
|
|
2946
3353
|
return (0, exports.ClubAnalyticsStaffApiFp)(this.configuration).getAnalyticsBySport(requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
|
|
2947
3354
|
}
|
|
3355
|
+
/**
|
|
3356
|
+
* Nombre de réservations par jour en fonction des slots
|
|
3357
|
+
* @param {ClubAnalyticsStaffApiGetBookingsPerDayRequest} requestParameters Request parameters.
|
|
3358
|
+
* @param {*} [options] Override http request option.
|
|
3359
|
+
* @throws {RequiredError}
|
|
3360
|
+
* @memberof ClubAnalyticsStaffApi
|
|
3361
|
+
*/
|
|
3362
|
+
getBookingsPerDay(requestParameters = {}, options) {
|
|
3363
|
+
return (0, exports.ClubAnalyticsStaffApiFp)(this.configuration).getBookingsPerDay(requestParameters.startDate, requestParameters.endDate, options).then((request) => request(this.axios, this.basePath));
|
|
3364
|
+
}
|
|
2948
3365
|
/**
|
|
2949
3366
|
* Récupère les réservations d\'un joueur par son ID (à venir et passées)
|
|
2950
3367
|
* @param {ClubAnalyticsStaffApiGetClubPlayerBookingsByIdRequest} requestParameters Request parameters.
|
|
@@ -2985,6 +3402,15 @@ class ClubAnalyticsStaffApi extends base_1.BaseAPI {
|
|
|
2985
3402
|
getClubPlayers(requestParameters = {}, options) {
|
|
2986
3403
|
return (0, exports.ClubAnalyticsStaffApiFp)(this.configuration).getClubPlayers(requestParameters.page, requestParameters.pageSize, requestParameters.search, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
2987
3404
|
}
|
|
3405
|
+
/**
|
|
3406
|
+
* Nombre total d\'abonnés actifs du club
|
|
3407
|
+
* @param {*} [options] Override http request option.
|
|
3408
|
+
* @throws {RequiredError}
|
|
3409
|
+
* @memberof ClubAnalyticsStaffApi
|
|
3410
|
+
*/
|
|
3411
|
+
getClubSubscribersSummary(options) {
|
|
3412
|
+
return (0, exports.ClubAnalyticsStaffApiFp)(this.configuration).getClubSubscribersSummary(options).then((request) => request(this.axios, this.basePath));
|
|
3413
|
+
}
|
|
2988
3414
|
/**
|
|
2989
3415
|
* Récupère le chiffre d\'affaires quotidien
|
|
2990
3416
|
* @param {ClubAnalyticsStaffApiGetDailyTurnOverRequest} requestParameters Request parameters.
|
|
@@ -3023,6 +3449,25 @@ class ClubAnalyticsStaffApi extends base_1.BaseAPI {
|
|
|
3023
3449
|
getLastSixMonthsTurnover(options) {
|
|
3024
3450
|
return (0, exports.ClubAnalyticsStaffApiFp)(this.configuration).getLastSixMonthsTurnover(options).then((request) => request(this.axios, this.basePath));
|
|
3025
3451
|
}
|
|
3452
|
+
/**
|
|
3453
|
+
* Créneaux horaires les moins réservés (3 derniers mois)
|
|
3454
|
+
* @param {ClubAnalyticsStaffApiGetLeastBookedTimeSlotsRequest} requestParameters Request parameters.
|
|
3455
|
+
* @param {*} [options] Override http request option.
|
|
3456
|
+
* @throws {RequiredError}
|
|
3457
|
+
* @memberof ClubAnalyticsStaffApi
|
|
3458
|
+
*/
|
|
3459
|
+
getLeastBookedTimeSlots(requestParameters = {}, options) {
|
|
3460
|
+
return (0, exports.ClubAnalyticsStaffApiFp)(this.configuration).getLeastBookedTimeSlots(requestParameters.limit, options).then((request) => request(this.axios, this.basePath));
|
|
3461
|
+
}
|
|
3462
|
+
/**
|
|
3463
|
+
* Jour de la semaine le moins réservé (3 derniers mois)
|
|
3464
|
+
* @param {*} [options] Override http request option.
|
|
3465
|
+
* @throws {RequiredError}
|
|
3466
|
+
* @memberof ClubAnalyticsStaffApi
|
|
3467
|
+
*/
|
|
3468
|
+
getLeastBookedWeekday(options) {
|
|
3469
|
+
return (0, exports.ClubAnalyticsStaffApiFp)(this.configuration).getLeastBookedWeekday(options).then((request) => request(this.axios, this.basePath));
|
|
3470
|
+
}
|
|
3026
3471
|
/**
|
|
3027
3472
|
* Récupère le chiffre d\'affaires mensuel
|
|
3028
3473
|
* @param {ClubAnalyticsStaffApiGetMonthlyTurnOverRequest} requestParameters Request parameters.
|
|
@@ -3033,6 +3478,36 @@ class ClubAnalyticsStaffApi extends base_1.BaseAPI {
|
|
|
3033
3478
|
getMonthlyTurnOver(requestParameters, options) {
|
|
3034
3479
|
return (0, exports.ClubAnalyticsStaffApiFp)(this.configuration).getMonthlyTurnOver(requestParameters.year, requestParameters.month, options).then((request) => request(this.axios, this.basePath));
|
|
3035
3480
|
}
|
|
3481
|
+
/**
|
|
3482
|
+
* Nouvelles réservations créées sur une période
|
|
3483
|
+
* @param {ClubAnalyticsStaffApiGetNewBookingsCountRequest} requestParameters Request parameters.
|
|
3484
|
+
* @param {*} [options] Override http request option.
|
|
3485
|
+
* @throws {RequiredError}
|
|
3486
|
+
* @memberof ClubAnalyticsStaffApi
|
|
3487
|
+
*/
|
|
3488
|
+
getNewBookingsCount(requestParameters = {}, options) {
|
|
3489
|
+
return (0, exports.ClubAnalyticsStaffApiFp)(this.configuration).getNewBookingsCount(requestParameters.startDate, requestParameters.endDate, options).then((request) => request(this.axios, this.basePath));
|
|
3490
|
+
}
|
|
3491
|
+
/**
|
|
3492
|
+
* Nouveaux abonnés sur une période
|
|
3493
|
+
* @param {ClubAnalyticsStaffApiGetNewSubscribersCountRequest} requestParameters Request parameters.
|
|
3494
|
+
* @param {*} [options] Override http request option.
|
|
3495
|
+
* @throws {RequiredError}
|
|
3496
|
+
* @memberof ClubAnalyticsStaffApi
|
|
3497
|
+
*/
|
|
3498
|
+
getNewSubscribersCount(requestParameters = {}, options) {
|
|
3499
|
+
return (0, exports.ClubAnalyticsStaffApiFp)(this.configuration).getNewSubscribersCount(requestParameters.startDate, requestParameters.endDate, options).then((request) => request(this.axios, this.basePath));
|
|
3500
|
+
}
|
|
3501
|
+
/**
|
|
3502
|
+
* Taux de no-show global ou sur une période
|
|
3503
|
+
* @param {ClubAnalyticsStaffApiGetNoShowRateRequest} requestParameters Request parameters.
|
|
3504
|
+
* @param {*} [options] Override http request option.
|
|
3505
|
+
* @throws {RequiredError}
|
|
3506
|
+
* @memberof ClubAnalyticsStaffApi
|
|
3507
|
+
*/
|
|
3508
|
+
getNoShowRate(requestParameters = {}, options) {
|
|
3509
|
+
return (0, exports.ClubAnalyticsStaffApiFp)(this.configuration).getNoShowRate(requestParameters.startDate, requestParameters.endDate, options).then((request) => request(this.axios, this.basePath));
|
|
3510
|
+
}
|
|
3036
3511
|
/**
|
|
3037
3512
|
* Récupère le nombre d\'utilisateurs du club
|
|
3038
3513
|
* @param {*} [options] Override http request option.
|
|
@@ -3555,6 +4030,38 @@ exports.ClubRolesStaffApi = ClubRolesStaffApi;
|
|
|
3555
4030
|
*/
|
|
3556
4031
|
const ClubSettingsManagerApiAxiosParamCreator = function (configuration) {
|
|
3557
4032
|
return {
|
|
4033
|
+
/**
|
|
4034
|
+
*
|
|
4035
|
+
* @param {DuplicateClubDayScheduleRequest} duplicateClubDayScheduleRequest
|
|
4036
|
+
* @param {*} [options] Override http request option.
|
|
4037
|
+
* @throws {RequiredError}
|
|
4038
|
+
*/
|
|
4039
|
+
duplicateDaySchedule: (duplicateClubDayScheduleRequest_1, ...args_1) => __awaiter(this, [duplicateClubDayScheduleRequest_1, ...args_1], void 0, function* (duplicateClubDayScheduleRequest, options = {}) {
|
|
4040
|
+
// verify required parameter 'duplicateClubDayScheduleRequest' is not null or undefined
|
|
4041
|
+
(0, common_1.assertParamExists)('duplicateDaySchedule', 'duplicateClubDayScheduleRequest', duplicateClubDayScheduleRequest);
|
|
4042
|
+
const localVarPath = `/api/club-settings/hours/day/duplicate`;
|
|
4043
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4044
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4045
|
+
let baseOptions;
|
|
4046
|
+
if (configuration) {
|
|
4047
|
+
baseOptions = configuration.baseOptions;
|
|
4048
|
+
}
|
|
4049
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
4050
|
+
const localVarHeaderParameter = {};
|
|
4051
|
+
const localVarQueryParameter = {};
|
|
4052
|
+
// authentication bearerAuth required
|
|
4053
|
+
// http bearer authentication required
|
|
4054
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
4055
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4056
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4057
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4058
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4059
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(duplicateClubDayScheduleRequest, localVarRequestOptions, configuration);
|
|
4060
|
+
return {
|
|
4061
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4062
|
+
options: localVarRequestOptions,
|
|
4063
|
+
};
|
|
4064
|
+
}),
|
|
3558
4065
|
/**
|
|
3559
4066
|
*
|
|
3560
4067
|
* @param {UpdateClubAccessSettingsRequest} updateClubAccessSettingsRequest
|
|
@@ -3619,6 +4126,42 @@ const ClubSettingsManagerApiAxiosParamCreator = function (configuration) {
|
|
|
3619
4126
|
options: localVarRequestOptions,
|
|
3620
4127
|
};
|
|
3621
4128
|
}),
|
|
4129
|
+
/**
|
|
4130
|
+
*
|
|
4131
|
+
* @param {WeekdayKey} day
|
|
4132
|
+
* @param {UpdateClubDayScheduleRequest} updateClubDayScheduleRequest
|
|
4133
|
+
* @param {*} [options] Override http request option.
|
|
4134
|
+
* @throws {RequiredError}
|
|
4135
|
+
*/
|
|
4136
|
+
updateDaySchedule: (day_1, updateClubDayScheduleRequest_1, ...args_1) => __awaiter(this, [day_1, updateClubDayScheduleRequest_1, ...args_1], void 0, function* (day, updateClubDayScheduleRequest, options = {}) {
|
|
4137
|
+
// verify required parameter 'day' is not null or undefined
|
|
4138
|
+
(0, common_1.assertParamExists)('updateDaySchedule', 'day', day);
|
|
4139
|
+
// verify required parameter 'updateClubDayScheduleRequest' is not null or undefined
|
|
4140
|
+
(0, common_1.assertParamExists)('updateDaySchedule', 'updateClubDayScheduleRequest', updateClubDayScheduleRequest);
|
|
4141
|
+
const localVarPath = `/api/club-settings/hours/day/{day}`
|
|
4142
|
+
.replace(`{${"day"}}`, encodeURIComponent(String(day)));
|
|
4143
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4144
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4145
|
+
let baseOptions;
|
|
4146
|
+
if (configuration) {
|
|
4147
|
+
baseOptions = configuration.baseOptions;
|
|
4148
|
+
}
|
|
4149
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
4150
|
+
const localVarHeaderParameter = {};
|
|
4151
|
+
const localVarQueryParameter = {};
|
|
4152
|
+
// authentication bearerAuth required
|
|
4153
|
+
// http bearer authentication required
|
|
4154
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
4155
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4156
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4157
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4158
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4159
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateClubDayScheduleRequest, localVarRequestOptions, configuration);
|
|
4160
|
+
return {
|
|
4161
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4162
|
+
options: localVarRequestOptions,
|
|
4163
|
+
};
|
|
4164
|
+
}),
|
|
3622
4165
|
/**
|
|
3623
4166
|
*
|
|
3624
4167
|
* @param {UpdateClubHoursSettingsRequest} updateClubHoursSettingsRequest
|
|
@@ -3725,6 +4268,21 @@ exports.ClubSettingsManagerApiAxiosParamCreator = ClubSettingsManagerApiAxiosPar
|
|
|
3725
4268
|
const ClubSettingsManagerApiFp = function (configuration) {
|
|
3726
4269
|
const localVarAxiosParamCreator = (0, exports.ClubSettingsManagerApiAxiosParamCreator)(configuration);
|
|
3727
4270
|
return {
|
|
4271
|
+
/**
|
|
4272
|
+
*
|
|
4273
|
+
* @param {DuplicateClubDayScheduleRequest} duplicateClubDayScheduleRequest
|
|
4274
|
+
* @param {*} [options] Override http request option.
|
|
4275
|
+
* @throws {RequiredError}
|
|
4276
|
+
*/
|
|
4277
|
+
duplicateDaySchedule(duplicateClubDayScheduleRequest, options) {
|
|
4278
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4279
|
+
var _a, _b, _c;
|
|
4280
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.duplicateDaySchedule(duplicateClubDayScheduleRequest, options);
|
|
4281
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4282
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubSettingsManagerApi.duplicateDaySchedule']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4283
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4284
|
+
});
|
|
4285
|
+
},
|
|
3728
4286
|
/**
|
|
3729
4287
|
*
|
|
3730
4288
|
* @param {UpdateClubAccessSettingsRequest} updateClubAccessSettingsRequest
|
|
@@ -3755,6 +4313,22 @@ const ClubSettingsManagerApiFp = function (configuration) {
|
|
|
3755
4313
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3756
4314
|
});
|
|
3757
4315
|
},
|
|
4316
|
+
/**
|
|
4317
|
+
*
|
|
4318
|
+
* @param {WeekdayKey} day
|
|
4319
|
+
* @param {UpdateClubDayScheduleRequest} updateClubDayScheduleRequest
|
|
4320
|
+
* @param {*} [options] Override http request option.
|
|
4321
|
+
* @throws {RequiredError}
|
|
4322
|
+
*/
|
|
4323
|
+
updateDaySchedule(day, updateClubDayScheduleRequest, options) {
|
|
4324
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4325
|
+
var _a, _b, _c;
|
|
4326
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateDaySchedule(day, updateClubDayScheduleRequest, options);
|
|
4327
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4328
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubSettingsManagerApi.updateDaySchedule']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4329
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4330
|
+
});
|
|
4331
|
+
},
|
|
3758
4332
|
/**
|
|
3759
4333
|
*
|
|
3760
4334
|
* @param {UpdateClubHoursSettingsRequest} updateClubHoursSettingsRequest
|
|
@@ -3810,6 +4384,15 @@ exports.ClubSettingsManagerApiFp = ClubSettingsManagerApiFp;
|
|
|
3810
4384
|
const ClubSettingsManagerApiFactory = function (configuration, basePath, axios) {
|
|
3811
4385
|
const localVarFp = (0, exports.ClubSettingsManagerApiFp)(configuration);
|
|
3812
4386
|
return {
|
|
4387
|
+
/**
|
|
4388
|
+
*
|
|
4389
|
+
* @param {ClubSettingsManagerApiDuplicateDayScheduleRequest} requestParameters Request parameters.
|
|
4390
|
+
* @param {*} [options] Override http request option.
|
|
4391
|
+
* @throws {RequiredError}
|
|
4392
|
+
*/
|
|
4393
|
+
duplicateDaySchedule(requestParameters, options) {
|
|
4394
|
+
return localVarFp.duplicateDaySchedule(requestParameters.duplicateClubDayScheduleRequest, options).then((request) => request(axios, basePath));
|
|
4395
|
+
},
|
|
3813
4396
|
/**
|
|
3814
4397
|
*
|
|
3815
4398
|
* @param {ClubSettingsManagerApiUpdateAccessSettingsRequest} requestParameters Request parameters.
|
|
@@ -3828,6 +4411,15 @@ const ClubSettingsManagerApiFactory = function (configuration, basePath, axios)
|
|
|
3828
4411
|
updateClubGeneralSettings(requestParameters, options) {
|
|
3829
4412
|
return localVarFp.updateClubGeneralSettings(requestParameters.updateClubGeneralSettingsRequest, options).then((request) => request(axios, basePath));
|
|
3830
4413
|
},
|
|
4414
|
+
/**
|
|
4415
|
+
*
|
|
4416
|
+
* @param {ClubSettingsManagerApiUpdateDayScheduleRequest} requestParameters Request parameters.
|
|
4417
|
+
* @param {*} [options] Override http request option.
|
|
4418
|
+
* @throws {RequiredError}
|
|
4419
|
+
*/
|
|
4420
|
+
updateDaySchedule(requestParameters, options) {
|
|
4421
|
+
return localVarFp.updateDaySchedule(requestParameters.day, requestParameters.updateClubDayScheduleRequest, options).then((request) => request(axios, basePath));
|
|
4422
|
+
},
|
|
3831
4423
|
/**
|
|
3832
4424
|
*
|
|
3833
4425
|
* @param {ClubSettingsManagerApiUpdateHoursSettingsRequest} requestParameters Request parameters.
|
|
@@ -3865,6 +4457,16 @@ exports.ClubSettingsManagerApiFactory = ClubSettingsManagerApiFactory;
|
|
|
3865
4457
|
* @extends {BaseAPI}
|
|
3866
4458
|
*/
|
|
3867
4459
|
class ClubSettingsManagerApi extends base_1.BaseAPI {
|
|
4460
|
+
/**
|
|
4461
|
+
*
|
|
4462
|
+
* @param {ClubSettingsManagerApiDuplicateDayScheduleRequest} requestParameters Request parameters.
|
|
4463
|
+
* @param {*} [options] Override http request option.
|
|
4464
|
+
* @throws {RequiredError}
|
|
4465
|
+
* @memberof ClubSettingsManagerApi
|
|
4466
|
+
*/
|
|
4467
|
+
duplicateDaySchedule(requestParameters, options) {
|
|
4468
|
+
return (0, exports.ClubSettingsManagerApiFp)(this.configuration).duplicateDaySchedule(requestParameters.duplicateClubDayScheduleRequest, options).then((request) => request(this.axios, this.basePath));
|
|
4469
|
+
}
|
|
3868
4470
|
/**
|
|
3869
4471
|
*
|
|
3870
4472
|
* @param {ClubSettingsManagerApiUpdateAccessSettingsRequest} requestParameters Request parameters.
|
|
@@ -3885,6 +4487,16 @@ class ClubSettingsManagerApi extends base_1.BaseAPI {
|
|
|
3885
4487
|
updateClubGeneralSettings(requestParameters, options) {
|
|
3886
4488
|
return (0, exports.ClubSettingsManagerApiFp)(this.configuration).updateClubGeneralSettings(requestParameters.updateClubGeneralSettingsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3887
4489
|
}
|
|
4490
|
+
/**
|
|
4491
|
+
*
|
|
4492
|
+
* @param {ClubSettingsManagerApiUpdateDayScheduleRequest} requestParameters Request parameters.
|
|
4493
|
+
* @param {*} [options] Override http request option.
|
|
4494
|
+
* @throws {RequiredError}
|
|
4495
|
+
* @memberof ClubSettingsManagerApi
|
|
4496
|
+
*/
|
|
4497
|
+
updateDaySchedule(requestParameters, options) {
|
|
4498
|
+
return (0, exports.ClubSettingsManagerApiFp)(this.configuration).updateDaySchedule(requestParameters.day, requestParameters.updateClubDayScheduleRequest, options).then((request) => request(this.axios, this.basePath));
|
|
4499
|
+
}
|
|
3888
4500
|
/**
|
|
3889
4501
|
*
|
|
3890
4502
|
* @param {ClubSettingsManagerApiUpdateHoursSettingsRequest} requestParameters Request parameters.
|