@tennac-booking/sdk 1.0.141 → 1.0.143

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/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.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;
25
+ 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.TrendDirection = 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.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 = exports.BookingsApiAxiosParamCreator = void 0;
27
+ 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 = exports.ClubsManagerApiFactory = 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 = exports.SubscriptionsStaffApiAxiosParamCreator = void 0;
29
29
  const axios_1 = require("axios");
30
30
  // Some imports not used depending on template conditions
31
31
  // @ts-ignore
@@ -311,6 +311,16 @@ exports.SurfaceType = {
311
311
  Carpet: 'carpet',
312
312
  Wooden: 'wooden'
313
313
  };
314
+ /**
315
+ *
316
+ * @export
317
+ * @enum {string}
318
+ */
319
+ exports.TrendDirection = {
320
+ Up: 'up',
321
+ Down: 'down',
322
+ Steady: 'steady'
323
+ };
314
324
  exports.UpdateClubMemberRequestRoleEnum = {
315
325
  Admin: 'admin',
316
326
  Manager: 'manager',
@@ -2069,6 +2079,41 @@ const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration) {
2069
2079
  options: localVarRequestOptions,
2070
2080
  };
2071
2081
  }),
2082
+ /**
2083
+ * Nombre de réservations par jour en fonction des slots
2084
+ * @param {string} [startDate]
2085
+ * @param {string} [endDate]
2086
+ * @param {*} [options] Override http request option.
2087
+ * @throws {RequiredError}
2088
+ */
2089
+ getBookingsPerDay: (startDate_1, endDate_1, ...args_1) => __awaiter(this, [startDate_1, endDate_1, ...args_1], void 0, function* (startDate, endDate, options = {}) {
2090
+ const localVarPath = `/api/club-analytics/bookings/per-day`;
2091
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2092
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2093
+ let baseOptions;
2094
+ if (configuration) {
2095
+ baseOptions = configuration.baseOptions;
2096
+ }
2097
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2098
+ const localVarHeaderParameter = {};
2099
+ const localVarQueryParameter = {};
2100
+ // authentication bearerAuth required
2101
+ // http bearer authentication required
2102
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2103
+ if (startDate !== undefined) {
2104
+ localVarQueryParameter['startDate'] = startDate;
2105
+ }
2106
+ if (endDate !== undefined) {
2107
+ localVarQueryParameter['endDate'] = endDate;
2108
+ }
2109
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2110
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2111
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2112
+ return {
2113
+ url: (0, common_1.toPathString)(localVarUrlObj),
2114
+ options: localVarRequestOptions,
2115
+ };
2116
+ }),
2072
2117
  /**
2073
2118
  * Récupère les réservations d\'un joueur par son ID (à venir et passées)
2074
2119
  * @param {string} playerId
@@ -2213,6 +2258,33 @@ const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration) {
2213
2258
  options: localVarRequestOptions,
2214
2259
  };
2215
2260
  }),
2261
+ /**
2262
+ * Nombre total d\'abonnés actifs du club
2263
+ * @param {*} [options] Override http request option.
2264
+ * @throws {RequiredError}
2265
+ */
2266
+ getClubSubscribersSummary: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
2267
+ const localVarPath = `/api/club-analytics/subscribers/total`;
2268
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2269
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2270
+ let baseOptions;
2271
+ if (configuration) {
2272
+ baseOptions = configuration.baseOptions;
2273
+ }
2274
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2275
+ const localVarHeaderParameter = {};
2276
+ const localVarQueryParameter = {};
2277
+ // authentication bearerAuth required
2278
+ // http bearer authentication required
2279
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2280
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2281
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2282
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2283
+ return {
2284
+ url: (0, common_1.toPathString)(localVarUrlObj),
2285
+ options: localVarRequestOptions,
2286
+ };
2287
+ }),
2216
2288
  /**
2217
2289
  * Récupère le chiffre d\'affaires quotidien
2218
2290
  * @param {string} date
@@ -2335,6 +2407,64 @@ const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration) {
2335
2407
  options: localVarRequestOptions,
2336
2408
  };
2337
2409
  }),
2410
+ /**
2411
+ * Créneaux horaires les moins réservés (3 derniers mois)
2412
+ * @param {number} [limit]
2413
+ * @param {*} [options] Override http request option.
2414
+ * @throws {RequiredError}
2415
+ */
2416
+ getLeastBookedTimeSlots: (limit_1, ...args_1) => __awaiter(this, [limit_1, ...args_1], void 0, function* (limit, options = {}) {
2417
+ const localVarPath = `/api/club-analytics/bookings/least-booked-time-slots`;
2418
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2419
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2420
+ let baseOptions;
2421
+ if (configuration) {
2422
+ baseOptions = configuration.baseOptions;
2423
+ }
2424
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2425
+ const localVarHeaderParameter = {};
2426
+ const localVarQueryParameter = {};
2427
+ // authentication bearerAuth required
2428
+ // http bearer authentication required
2429
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2430
+ if (limit !== undefined) {
2431
+ localVarQueryParameter['limit'] = limit;
2432
+ }
2433
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2434
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2435
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2436
+ return {
2437
+ url: (0, common_1.toPathString)(localVarUrlObj),
2438
+ options: localVarRequestOptions,
2439
+ };
2440
+ }),
2441
+ /**
2442
+ * Jour de la semaine le moins réservé (3 derniers mois)
2443
+ * @param {*} [options] Override http request option.
2444
+ * @throws {RequiredError}
2445
+ */
2446
+ getLeastBookedWeekday: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
2447
+ const localVarPath = `/api/club-analytics/bookings/least-booked-weekday`;
2448
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2449
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2450
+ let baseOptions;
2451
+ if (configuration) {
2452
+ baseOptions = configuration.baseOptions;
2453
+ }
2454
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2455
+ const localVarHeaderParameter = {};
2456
+ const localVarQueryParameter = {};
2457
+ // authentication bearerAuth required
2458
+ // http bearer authentication required
2459
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2460
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2461
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2462
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2463
+ return {
2464
+ url: (0, common_1.toPathString)(localVarUrlObj),
2465
+ options: localVarRequestOptions,
2466
+ };
2467
+ }),
2338
2468
  /**
2339
2469
  * Récupère le chiffre d\'affaires mensuel
2340
2470
  * @param {string} year
@@ -2374,6 +2504,111 @@ const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration) {
2374
2504
  options: localVarRequestOptions,
2375
2505
  };
2376
2506
  }),
2507
+ /**
2508
+ * Nouvelles réservations créées sur une période
2509
+ * @param {string} [startDate]
2510
+ * @param {string} [endDate]
2511
+ * @param {*} [options] Override http request option.
2512
+ * @throws {RequiredError}
2513
+ */
2514
+ getNewBookingsCount: (startDate_1, endDate_1, ...args_1) => __awaiter(this, [startDate_1, endDate_1, ...args_1], void 0, function* (startDate, endDate, options = {}) {
2515
+ const localVarPath = `/api/club-analytics/bookings/new`;
2516
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2517
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2518
+ let baseOptions;
2519
+ if (configuration) {
2520
+ baseOptions = configuration.baseOptions;
2521
+ }
2522
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2523
+ const localVarHeaderParameter = {};
2524
+ const localVarQueryParameter = {};
2525
+ // authentication bearerAuth required
2526
+ // http bearer authentication required
2527
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2528
+ if (startDate !== undefined) {
2529
+ localVarQueryParameter['startDate'] = startDate;
2530
+ }
2531
+ if (endDate !== undefined) {
2532
+ localVarQueryParameter['endDate'] = endDate;
2533
+ }
2534
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2535
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2536
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2537
+ return {
2538
+ url: (0, common_1.toPathString)(localVarUrlObj),
2539
+ options: localVarRequestOptions,
2540
+ };
2541
+ }),
2542
+ /**
2543
+ * Nouveaux abonnés sur une période
2544
+ * @param {string} [startDate]
2545
+ * @param {string} [endDate]
2546
+ * @param {*} [options] Override http request option.
2547
+ * @throws {RequiredError}
2548
+ */
2549
+ getNewSubscribersCount: (startDate_1, endDate_1, ...args_1) => __awaiter(this, [startDate_1, endDate_1, ...args_1], void 0, function* (startDate, endDate, options = {}) {
2550
+ const localVarPath = `/api/club-analytics/subscribers/new`;
2551
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2552
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2553
+ let baseOptions;
2554
+ if (configuration) {
2555
+ baseOptions = configuration.baseOptions;
2556
+ }
2557
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2558
+ const localVarHeaderParameter = {};
2559
+ const localVarQueryParameter = {};
2560
+ // authentication bearerAuth required
2561
+ // http bearer authentication required
2562
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2563
+ if (startDate !== undefined) {
2564
+ localVarQueryParameter['startDate'] = startDate;
2565
+ }
2566
+ if (endDate !== undefined) {
2567
+ localVarQueryParameter['endDate'] = endDate;
2568
+ }
2569
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2570
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2571
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2572
+ return {
2573
+ url: (0, common_1.toPathString)(localVarUrlObj),
2574
+ options: localVarRequestOptions,
2575
+ };
2576
+ }),
2577
+ /**
2578
+ * Taux de no-show global ou sur une période
2579
+ * @param {string} [startDate]
2580
+ * @param {string} [endDate]
2581
+ * @param {*} [options] Override http request option.
2582
+ * @throws {RequiredError}
2583
+ */
2584
+ getNoShowRate: (startDate_1, endDate_1, ...args_1) => __awaiter(this, [startDate_1, endDate_1, ...args_1], void 0, function* (startDate, endDate, options = {}) {
2585
+ const localVarPath = `/api/club-analytics/bookings/no-show-rate`;
2586
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2587
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2588
+ let baseOptions;
2589
+ if (configuration) {
2590
+ baseOptions = configuration.baseOptions;
2591
+ }
2592
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2593
+ const localVarHeaderParameter = {};
2594
+ const localVarQueryParameter = {};
2595
+ // authentication bearerAuth required
2596
+ // http bearer authentication required
2597
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2598
+ if (startDate !== undefined) {
2599
+ localVarQueryParameter['startDate'] = startDate;
2600
+ }
2601
+ if (endDate !== undefined) {
2602
+ localVarQueryParameter['endDate'] = endDate;
2603
+ }
2604
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2605
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2606
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2607
+ return {
2608
+ url: (0, common_1.toPathString)(localVarUrlObj),
2609
+ options: localVarRequestOptions,
2610
+ };
2611
+ }),
2377
2612
  /**
2378
2613
  * Récupère le nombre d\'utilisateurs du club
2379
2614
  * @param {*} [options] Override http request option.
@@ -2403,10 +2638,12 @@ const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration) {
2403
2638
  }),
2404
2639
  /**
2405
2640
  * Calcule le taux de fidélisation des joueurs
2641
+ * @param {string} [startDate]
2642
+ * @param {string} [endDate]
2406
2643
  * @param {*} [options] Override http request option.
2407
2644
  * @throws {RequiredError}
2408
2645
  */
2409
- getRetentionRate: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
2646
+ getRetentionRate: (startDate_1, endDate_1, ...args_1) => __awaiter(this, [startDate_1, endDate_1, ...args_1], void 0, function* (startDate, endDate, options = {}) {
2410
2647
  const localVarPath = `/api/club-analytics/retention-rate`;
2411
2648
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2412
2649
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -2420,6 +2657,12 @@ const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration) {
2420
2657
  // authentication bearerAuth required
2421
2658
  // http bearer authentication required
2422
2659
  yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2660
+ if (startDate !== undefined) {
2661
+ localVarQueryParameter['startDate'] = startDate;
2662
+ }
2663
+ if (endDate !== undefined) {
2664
+ localVarQueryParameter['endDate'] = endDate;
2665
+ }
2423
2666
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2424
2667
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2425
2668
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -2567,6 +2810,22 @@ const ClubAnalyticsStaffApiFp = function (configuration) {
2567
2810
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2568
2811
  });
2569
2812
  },
2813
+ /**
2814
+ * Nombre de réservations par jour en fonction des slots
2815
+ * @param {string} [startDate]
2816
+ * @param {string} [endDate]
2817
+ * @param {*} [options] Override http request option.
2818
+ * @throws {RequiredError}
2819
+ */
2820
+ getBookingsPerDay(startDate, endDate, options) {
2821
+ return __awaiter(this, void 0, void 0, function* () {
2822
+ var _a, _b, _c;
2823
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getBookingsPerDay(startDate, endDate, options);
2824
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2825
+ 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;
2826
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2827
+ });
2828
+ },
2570
2829
  /**
2571
2830
  * Récupère les réservations d\'un joueur par son ID (à venir et passées)
2572
2831
  * @param {string} playerId
@@ -2632,6 +2891,20 @@ const ClubAnalyticsStaffApiFp = function (configuration) {
2632
2891
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2633
2892
  });
2634
2893
  },
2894
+ /**
2895
+ * Nombre total d\'abonnés actifs du club
2896
+ * @param {*} [options] Override http request option.
2897
+ * @throws {RequiredError}
2898
+ */
2899
+ getClubSubscribersSummary(options) {
2900
+ return __awaiter(this, void 0, void 0, function* () {
2901
+ var _a, _b, _c;
2902
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubSubscribersSummary(options);
2903
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2904
+ 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;
2905
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2906
+ });
2907
+ },
2635
2908
  /**
2636
2909
  * Récupère le chiffre d\'affaires quotidien
2637
2910
  * @param {string} date
@@ -2691,6 +2964,35 @@ const ClubAnalyticsStaffApiFp = function (configuration) {
2691
2964
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2692
2965
  });
2693
2966
  },
2967
+ /**
2968
+ * Créneaux horaires les moins réservés (3 derniers mois)
2969
+ * @param {number} [limit]
2970
+ * @param {*} [options] Override http request option.
2971
+ * @throws {RequiredError}
2972
+ */
2973
+ getLeastBookedTimeSlots(limit, options) {
2974
+ return __awaiter(this, void 0, void 0, function* () {
2975
+ var _a, _b, _c;
2976
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getLeastBookedTimeSlots(limit, options);
2977
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2978
+ 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;
2979
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2980
+ });
2981
+ },
2982
+ /**
2983
+ * Jour de la semaine le moins réservé (3 derniers mois)
2984
+ * @param {*} [options] Override http request option.
2985
+ * @throws {RequiredError}
2986
+ */
2987
+ getLeastBookedWeekday(options) {
2988
+ return __awaiter(this, void 0, void 0, function* () {
2989
+ var _a, _b, _c;
2990
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getLeastBookedWeekday(options);
2991
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2992
+ 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;
2993
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2994
+ });
2995
+ },
2694
2996
  /**
2695
2997
  * Récupère le chiffre d\'affaires mensuel
2696
2998
  * @param {string} year
@@ -2707,6 +3009,54 @@ const ClubAnalyticsStaffApiFp = function (configuration) {
2707
3009
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2708
3010
  });
2709
3011
  },
3012
+ /**
3013
+ * Nouvelles réservations créées sur une période
3014
+ * @param {string} [startDate]
3015
+ * @param {string} [endDate]
3016
+ * @param {*} [options] Override http request option.
3017
+ * @throws {RequiredError}
3018
+ */
3019
+ getNewBookingsCount(startDate, endDate, options) {
3020
+ return __awaiter(this, void 0, void 0, function* () {
3021
+ var _a, _b, _c;
3022
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getNewBookingsCount(startDate, endDate, options);
3023
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3024
+ 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;
3025
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3026
+ });
3027
+ },
3028
+ /**
3029
+ * Nouveaux abonnés sur une période
3030
+ * @param {string} [startDate]
3031
+ * @param {string} [endDate]
3032
+ * @param {*} [options] Override http request option.
3033
+ * @throws {RequiredError}
3034
+ */
3035
+ getNewSubscribersCount(startDate, endDate, options) {
3036
+ return __awaiter(this, void 0, void 0, function* () {
3037
+ var _a, _b, _c;
3038
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getNewSubscribersCount(startDate, endDate, options);
3039
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3040
+ 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;
3041
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3042
+ });
3043
+ },
3044
+ /**
3045
+ * Taux de no-show global ou sur une période
3046
+ * @param {string} [startDate]
3047
+ * @param {string} [endDate]
3048
+ * @param {*} [options] Override http request option.
3049
+ * @throws {RequiredError}
3050
+ */
3051
+ getNoShowRate(startDate, endDate, options) {
3052
+ return __awaiter(this, void 0, void 0, function* () {
3053
+ var _a, _b, _c;
3054
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getNoShowRate(startDate, endDate, options);
3055
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3056
+ 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;
3057
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3058
+ });
3059
+ },
2710
3060
  /**
2711
3061
  * Récupère le nombre d\'utilisateurs du club
2712
3062
  * @param {*} [options] Override http request option.
@@ -2723,13 +3073,15 @@ const ClubAnalyticsStaffApiFp = function (configuration) {
2723
3073
  },
2724
3074
  /**
2725
3075
  * Calcule le taux de fidélisation des joueurs
3076
+ * @param {string} [startDate]
3077
+ * @param {string} [endDate]
2726
3078
  * @param {*} [options] Override http request option.
2727
3079
  * @throws {RequiredError}
2728
3080
  */
2729
- getRetentionRate(options) {
3081
+ getRetentionRate(startDate, endDate, options) {
2730
3082
  return __awaiter(this, void 0, void 0, function* () {
2731
3083
  var _a, _b, _c;
2732
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getRetentionRate(options);
3084
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getRetentionRate(startDate, endDate, options);
2733
3085
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2734
3086
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubAnalyticsStaffApi.getRetentionRate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2735
3087
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -2811,6 +3163,15 @@ const ClubAnalyticsStaffApiFactory = function (configuration, basePath, axios) {
2811
3163
  getAnalyticsBySport(requestParameters, options) {
2812
3164
  return localVarFp.getAnalyticsBySport(requestParameters.sportId, options).then((request) => request(axios, basePath));
2813
3165
  },
3166
+ /**
3167
+ * Nombre de réservations par jour en fonction des slots
3168
+ * @param {ClubAnalyticsStaffApiGetBookingsPerDayRequest} requestParameters Request parameters.
3169
+ * @param {*} [options] Override http request option.
3170
+ * @throws {RequiredError}
3171
+ */
3172
+ getBookingsPerDay(requestParameters = {}, options) {
3173
+ return localVarFp.getBookingsPerDay(requestParameters.startDate, requestParameters.endDate, options).then((request) => request(axios, basePath));
3174
+ },
2814
3175
  /**
2815
3176
  * Récupère les réservations d\'un joueur par son ID (à venir et passées)
2816
3177
  * @param {ClubAnalyticsStaffApiGetClubPlayerBookingsByIdRequest} requestParameters Request parameters.
@@ -2847,6 +3208,14 @@ const ClubAnalyticsStaffApiFactory = function (configuration, basePath, axios) {
2847
3208
  getClubPlayers(requestParameters = {}, options) {
2848
3209
  return localVarFp.getClubPlayers(requestParameters.page, requestParameters.pageSize, requestParameters.search, requestParameters.filters, options).then((request) => request(axios, basePath));
2849
3210
  },
3211
+ /**
3212
+ * Nombre total d\'abonnés actifs du club
3213
+ * @param {*} [options] Override http request option.
3214
+ * @throws {RequiredError}
3215
+ */
3216
+ getClubSubscribersSummary(options) {
3217
+ return localVarFp.getClubSubscribersSummary(options).then((request) => request(axios, basePath));
3218
+ },
2850
3219
  /**
2851
3220
  * Récupère le chiffre d\'affaires quotidien
2852
3221
  * @param {ClubAnalyticsStaffApiGetDailyTurnOverRequest} requestParameters Request parameters.
@@ -2881,6 +3250,23 @@ const ClubAnalyticsStaffApiFactory = function (configuration, basePath, axios) {
2881
3250
  getLastSixMonthsTurnover(options) {
2882
3251
  return localVarFp.getLastSixMonthsTurnover(options).then((request) => request(axios, basePath));
2883
3252
  },
3253
+ /**
3254
+ * Créneaux horaires les moins réservés (3 derniers mois)
3255
+ * @param {ClubAnalyticsStaffApiGetLeastBookedTimeSlotsRequest} requestParameters Request parameters.
3256
+ * @param {*} [options] Override http request option.
3257
+ * @throws {RequiredError}
3258
+ */
3259
+ getLeastBookedTimeSlots(requestParameters = {}, options) {
3260
+ return localVarFp.getLeastBookedTimeSlots(requestParameters.limit, options).then((request) => request(axios, basePath));
3261
+ },
3262
+ /**
3263
+ * Jour de la semaine le moins réservé (3 derniers mois)
3264
+ * @param {*} [options] Override http request option.
3265
+ * @throws {RequiredError}
3266
+ */
3267
+ getLeastBookedWeekday(options) {
3268
+ return localVarFp.getLeastBookedWeekday(options).then((request) => request(axios, basePath));
3269
+ },
2884
3270
  /**
2885
3271
  * Récupère le chiffre d\'affaires mensuel
2886
3272
  * @param {ClubAnalyticsStaffApiGetMonthlyTurnOverRequest} requestParameters Request parameters.
@@ -2890,6 +3276,33 @@ const ClubAnalyticsStaffApiFactory = function (configuration, basePath, axios) {
2890
3276
  getMonthlyTurnOver(requestParameters, options) {
2891
3277
  return localVarFp.getMonthlyTurnOver(requestParameters.year, requestParameters.month, options).then((request) => request(axios, basePath));
2892
3278
  },
3279
+ /**
3280
+ * Nouvelles réservations créées sur une période
3281
+ * @param {ClubAnalyticsStaffApiGetNewBookingsCountRequest} requestParameters Request parameters.
3282
+ * @param {*} [options] Override http request option.
3283
+ * @throws {RequiredError}
3284
+ */
3285
+ getNewBookingsCount(requestParameters = {}, options) {
3286
+ return localVarFp.getNewBookingsCount(requestParameters.startDate, requestParameters.endDate, options).then((request) => request(axios, basePath));
3287
+ },
3288
+ /**
3289
+ * Nouveaux abonnés sur une période
3290
+ * @param {ClubAnalyticsStaffApiGetNewSubscribersCountRequest} requestParameters Request parameters.
3291
+ * @param {*} [options] Override http request option.
3292
+ * @throws {RequiredError}
3293
+ */
3294
+ getNewSubscribersCount(requestParameters = {}, options) {
3295
+ return localVarFp.getNewSubscribersCount(requestParameters.startDate, requestParameters.endDate, options).then((request) => request(axios, basePath));
3296
+ },
3297
+ /**
3298
+ * Taux de no-show global ou sur une période
3299
+ * @param {ClubAnalyticsStaffApiGetNoShowRateRequest} requestParameters Request parameters.
3300
+ * @param {*} [options] Override http request option.
3301
+ * @throws {RequiredError}
3302
+ */
3303
+ getNoShowRate(requestParameters = {}, options) {
3304
+ return localVarFp.getNoShowRate(requestParameters.startDate, requestParameters.endDate, options).then((request) => request(axios, basePath));
3305
+ },
2893
3306
  /**
2894
3307
  * Récupère le nombre d\'utilisateurs du club
2895
3308
  * @param {*} [options] Override http request option.
@@ -2900,11 +3313,12 @@ const ClubAnalyticsStaffApiFactory = function (configuration, basePath, axios) {
2900
3313
  },
2901
3314
  /**
2902
3315
  * Calcule le taux de fidélisation des joueurs
3316
+ * @param {ClubAnalyticsStaffApiGetRetentionRateRequest} requestParameters Request parameters.
2903
3317
  * @param {*} [options] Override http request option.
2904
3318
  * @throws {RequiredError}
2905
3319
  */
2906
- getRetentionRate(options) {
2907
- return localVarFp.getRetentionRate(options).then((request) => request(axios, basePath));
3320
+ getRetentionRate(requestParameters = {}, options) {
3321
+ return localVarFp.getRetentionRate(requestParameters.startDate, requestParameters.endDate, options).then((request) => request(axios, basePath));
2908
3322
  },
2909
3323
  /**
2910
3324
  * Récupère le chiffre d\'affaires par sport
@@ -2959,6 +3373,16 @@ class ClubAnalyticsStaffApi extends base_1.BaseAPI {
2959
3373
  getAnalyticsBySport(requestParameters, options) {
2960
3374
  return (0, exports.ClubAnalyticsStaffApiFp)(this.configuration).getAnalyticsBySport(requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
2961
3375
  }
3376
+ /**
3377
+ * Nombre de réservations par jour en fonction des slots
3378
+ * @param {ClubAnalyticsStaffApiGetBookingsPerDayRequest} requestParameters Request parameters.
3379
+ * @param {*} [options] Override http request option.
3380
+ * @throws {RequiredError}
3381
+ * @memberof ClubAnalyticsStaffApi
3382
+ */
3383
+ getBookingsPerDay(requestParameters = {}, options) {
3384
+ return (0, exports.ClubAnalyticsStaffApiFp)(this.configuration).getBookingsPerDay(requestParameters.startDate, requestParameters.endDate, options).then((request) => request(this.axios, this.basePath));
3385
+ }
2962
3386
  /**
2963
3387
  * Récupère les réservations d\'un joueur par son ID (à venir et passées)
2964
3388
  * @param {ClubAnalyticsStaffApiGetClubPlayerBookingsByIdRequest} requestParameters Request parameters.
@@ -2999,6 +3423,15 @@ class ClubAnalyticsStaffApi extends base_1.BaseAPI {
2999
3423
  getClubPlayers(requestParameters = {}, options) {
3000
3424
  return (0, exports.ClubAnalyticsStaffApiFp)(this.configuration).getClubPlayers(requestParameters.page, requestParameters.pageSize, requestParameters.search, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
3001
3425
  }
3426
+ /**
3427
+ * Nombre total d\'abonnés actifs du club
3428
+ * @param {*} [options] Override http request option.
3429
+ * @throws {RequiredError}
3430
+ * @memberof ClubAnalyticsStaffApi
3431
+ */
3432
+ getClubSubscribersSummary(options) {
3433
+ return (0, exports.ClubAnalyticsStaffApiFp)(this.configuration).getClubSubscribersSummary(options).then((request) => request(this.axios, this.basePath));
3434
+ }
3002
3435
  /**
3003
3436
  * Récupère le chiffre d\'affaires quotidien
3004
3437
  * @param {ClubAnalyticsStaffApiGetDailyTurnOverRequest} requestParameters Request parameters.
@@ -3037,6 +3470,25 @@ class ClubAnalyticsStaffApi extends base_1.BaseAPI {
3037
3470
  getLastSixMonthsTurnover(options) {
3038
3471
  return (0, exports.ClubAnalyticsStaffApiFp)(this.configuration).getLastSixMonthsTurnover(options).then((request) => request(this.axios, this.basePath));
3039
3472
  }
3473
+ /**
3474
+ * Créneaux horaires les moins réservés (3 derniers mois)
3475
+ * @param {ClubAnalyticsStaffApiGetLeastBookedTimeSlotsRequest} requestParameters Request parameters.
3476
+ * @param {*} [options] Override http request option.
3477
+ * @throws {RequiredError}
3478
+ * @memberof ClubAnalyticsStaffApi
3479
+ */
3480
+ getLeastBookedTimeSlots(requestParameters = {}, options) {
3481
+ return (0, exports.ClubAnalyticsStaffApiFp)(this.configuration).getLeastBookedTimeSlots(requestParameters.limit, options).then((request) => request(this.axios, this.basePath));
3482
+ }
3483
+ /**
3484
+ * Jour de la semaine le moins réservé (3 derniers mois)
3485
+ * @param {*} [options] Override http request option.
3486
+ * @throws {RequiredError}
3487
+ * @memberof ClubAnalyticsStaffApi
3488
+ */
3489
+ getLeastBookedWeekday(options) {
3490
+ return (0, exports.ClubAnalyticsStaffApiFp)(this.configuration).getLeastBookedWeekday(options).then((request) => request(this.axios, this.basePath));
3491
+ }
3040
3492
  /**
3041
3493
  * Récupère le chiffre d\'affaires mensuel
3042
3494
  * @param {ClubAnalyticsStaffApiGetMonthlyTurnOverRequest} requestParameters Request parameters.
@@ -3047,6 +3499,36 @@ class ClubAnalyticsStaffApi extends base_1.BaseAPI {
3047
3499
  getMonthlyTurnOver(requestParameters, options) {
3048
3500
  return (0, exports.ClubAnalyticsStaffApiFp)(this.configuration).getMonthlyTurnOver(requestParameters.year, requestParameters.month, options).then((request) => request(this.axios, this.basePath));
3049
3501
  }
3502
+ /**
3503
+ * Nouvelles réservations créées sur une période
3504
+ * @param {ClubAnalyticsStaffApiGetNewBookingsCountRequest} requestParameters Request parameters.
3505
+ * @param {*} [options] Override http request option.
3506
+ * @throws {RequiredError}
3507
+ * @memberof ClubAnalyticsStaffApi
3508
+ */
3509
+ getNewBookingsCount(requestParameters = {}, options) {
3510
+ return (0, exports.ClubAnalyticsStaffApiFp)(this.configuration).getNewBookingsCount(requestParameters.startDate, requestParameters.endDate, options).then((request) => request(this.axios, this.basePath));
3511
+ }
3512
+ /**
3513
+ * Nouveaux abonnés sur une période
3514
+ * @param {ClubAnalyticsStaffApiGetNewSubscribersCountRequest} requestParameters Request parameters.
3515
+ * @param {*} [options] Override http request option.
3516
+ * @throws {RequiredError}
3517
+ * @memberof ClubAnalyticsStaffApi
3518
+ */
3519
+ getNewSubscribersCount(requestParameters = {}, options) {
3520
+ return (0, exports.ClubAnalyticsStaffApiFp)(this.configuration).getNewSubscribersCount(requestParameters.startDate, requestParameters.endDate, options).then((request) => request(this.axios, this.basePath));
3521
+ }
3522
+ /**
3523
+ * Taux de no-show global ou sur une période
3524
+ * @param {ClubAnalyticsStaffApiGetNoShowRateRequest} requestParameters Request parameters.
3525
+ * @param {*} [options] Override http request option.
3526
+ * @throws {RequiredError}
3527
+ * @memberof ClubAnalyticsStaffApi
3528
+ */
3529
+ getNoShowRate(requestParameters = {}, options) {
3530
+ return (0, exports.ClubAnalyticsStaffApiFp)(this.configuration).getNoShowRate(requestParameters.startDate, requestParameters.endDate, options).then((request) => request(this.axios, this.basePath));
3531
+ }
3050
3532
  /**
3051
3533
  * Récupère le nombre d\'utilisateurs du club
3052
3534
  * @param {*} [options] Override http request option.
@@ -3058,12 +3540,13 @@ class ClubAnalyticsStaffApi extends base_1.BaseAPI {
3058
3540
  }
3059
3541
  /**
3060
3542
  * Calcule le taux de fidélisation des joueurs
3543
+ * @param {ClubAnalyticsStaffApiGetRetentionRateRequest} requestParameters Request parameters.
3061
3544
  * @param {*} [options] Override http request option.
3062
3545
  * @throws {RequiredError}
3063
3546
  * @memberof ClubAnalyticsStaffApi
3064
3547
  */
3065
- getRetentionRate(options) {
3066
- return (0, exports.ClubAnalyticsStaffApiFp)(this.configuration).getRetentionRate(options).then((request) => request(this.axios, this.basePath));
3548
+ getRetentionRate(requestParameters = {}, options) {
3549
+ return (0, exports.ClubAnalyticsStaffApiFp)(this.configuration).getRetentionRate(requestParameters.startDate, requestParameters.endDate, options).then((request) => request(this.axios, this.basePath));
3067
3550
  }
3068
3551
  /**
3069
3552
  * Récupère le chiffre d\'affaires par sport