@tennac-booking/sdk 1.0.141 → 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/dist/api.js CHANGED
@@ -2069,6 +2069,41 @@ const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration) {
2069
2069
  options: localVarRequestOptions,
2070
2070
  };
2071
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
+ }),
2072
2107
  /**
2073
2108
  * Récupère les réservations d\'un joueur par son ID (à venir et passées)
2074
2109
  * @param {string} playerId
@@ -2213,6 +2248,33 @@ const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration) {
2213
2248
  options: localVarRequestOptions,
2214
2249
  };
2215
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
+ }),
2216
2278
  /**
2217
2279
  * Récupère le chiffre d\'affaires quotidien
2218
2280
  * @param {string} date
@@ -2335,6 +2397,64 @@ const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration) {
2335
2397
  options: localVarRequestOptions,
2336
2398
  };
2337
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
+ }),
2338
2458
  /**
2339
2459
  * Récupère le chiffre d\'affaires mensuel
2340
2460
  * @param {string} year
@@ -2374,6 +2494,111 @@ const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration) {
2374
2494
  options: localVarRequestOptions,
2375
2495
  };
2376
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
+ }),
2377
2602
  /**
2378
2603
  * Récupère le nombre d\'utilisateurs du club
2379
2604
  * @param {*} [options] Override http request option.
@@ -2567,6 +2792,22 @@ const ClubAnalyticsStaffApiFp = function (configuration) {
2567
2792
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2568
2793
  });
2569
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
+ },
2570
2811
  /**
2571
2812
  * Récupère les réservations d\'un joueur par son ID (à venir et passées)
2572
2813
  * @param {string} playerId
@@ -2632,6 +2873,20 @@ const ClubAnalyticsStaffApiFp = function (configuration) {
2632
2873
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2633
2874
  });
2634
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
+ },
2635
2890
  /**
2636
2891
  * Récupère le chiffre d\'affaires quotidien
2637
2892
  * @param {string} date
@@ -2691,6 +2946,35 @@ const ClubAnalyticsStaffApiFp = function (configuration) {
2691
2946
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2692
2947
  });
2693
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
+ },
2694
2978
  /**
2695
2979
  * Récupère le chiffre d\'affaires mensuel
2696
2980
  * @param {string} year
@@ -2707,6 +2991,54 @@ const ClubAnalyticsStaffApiFp = function (configuration) {
2707
2991
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2708
2992
  });
2709
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
+ },
2710
3042
  /**
2711
3043
  * Récupère le nombre d\'utilisateurs du club
2712
3044
  * @param {*} [options] Override http request option.
@@ -2811,6 +3143,15 @@ const ClubAnalyticsStaffApiFactory = function (configuration, basePath, axios) {
2811
3143
  getAnalyticsBySport(requestParameters, options) {
2812
3144
  return localVarFp.getAnalyticsBySport(requestParameters.sportId, options).then((request) => request(axios, basePath));
2813
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
+ },
2814
3155
  /**
2815
3156
  * Récupère les réservations d\'un joueur par son ID (à venir et passées)
2816
3157
  * @param {ClubAnalyticsStaffApiGetClubPlayerBookingsByIdRequest} requestParameters Request parameters.
@@ -2847,6 +3188,14 @@ const ClubAnalyticsStaffApiFactory = function (configuration, basePath, axios) {
2847
3188
  getClubPlayers(requestParameters = {}, options) {
2848
3189
  return localVarFp.getClubPlayers(requestParameters.page, requestParameters.pageSize, requestParameters.search, requestParameters.filters, options).then((request) => request(axios, basePath));
2849
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
+ },
2850
3199
  /**
2851
3200
  * Récupère le chiffre d\'affaires quotidien
2852
3201
  * @param {ClubAnalyticsStaffApiGetDailyTurnOverRequest} requestParameters Request parameters.
@@ -2881,6 +3230,23 @@ const ClubAnalyticsStaffApiFactory = function (configuration, basePath, axios) {
2881
3230
  getLastSixMonthsTurnover(options) {
2882
3231
  return localVarFp.getLastSixMonthsTurnover(options).then((request) => request(axios, basePath));
2883
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
+ },
2884
3250
  /**
2885
3251
  * Récupère le chiffre d\'affaires mensuel
2886
3252
  * @param {ClubAnalyticsStaffApiGetMonthlyTurnOverRequest} requestParameters Request parameters.
@@ -2890,6 +3256,33 @@ const ClubAnalyticsStaffApiFactory = function (configuration, basePath, axios) {
2890
3256
  getMonthlyTurnOver(requestParameters, options) {
2891
3257
  return localVarFp.getMonthlyTurnOver(requestParameters.year, requestParameters.month, options).then((request) => request(axios, basePath));
2892
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
+ },
2893
3286
  /**
2894
3287
  * Récupère le nombre d\'utilisateurs du club
2895
3288
  * @param {*} [options] Override http request option.
@@ -2959,6 +3352,16 @@ class ClubAnalyticsStaffApi extends base_1.BaseAPI {
2959
3352
  getAnalyticsBySport(requestParameters, options) {
2960
3353
  return (0, exports.ClubAnalyticsStaffApiFp)(this.configuration).getAnalyticsBySport(requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
2961
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
+ }
2962
3365
  /**
2963
3366
  * Récupère les réservations d\'un joueur par son ID (à venir et passées)
2964
3367
  * @param {ClubAnalyticsStaffApiGetClubPlayerBookingsByIdRequest} requestParameters Request parameters.
@@ -2999,6 +3402,15 @@ class ClubAnalyticsStaffApi extends base_1.BaseAPI {
2999
3402
  getClubPlayers(requestParameters = {}, options) {
3000
3403
  return (0, exports.ClubAnalyticsStaffApiFp)(this.configuration).getClubPlayers(requestParameters.page, requestParameters.pageSize, requestParameters.search, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
3001
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
+ }
3002
3414
  /**
3003
3415
  * Récupère le chiffre d\'affaires quotidien
3004
3416
  * @param {ClubAnalyticsStaffApiGetDailyTurnOverRequest} requestParameters Request parameters.
@@ -3037,6 +3449,25 @@ class ClubAnalyticsStaffApi extends base_1.BaseAPI {
3037
3449
  getLastSixMonthsTurnover(options) {
3038
3450
  return (0, exports.ClubAnalyticsStaffApiFp)(this.configuration).getLastSixMonthsTurnover(options).then((request) => request(this.axios, this.basePath));
3039
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
+ }
3040
3471
  /**
3041
3472
  * Récupère le chiffre d\'affaires mensuel
3042
3473
  * @param {ClubAnalyticsStaffApiGetMonthlyTurnOverRequest} requestParameters Request parameters.
@@ -3047,6 +3478,36 @@ class ClubAnalyticsStaffApi extends base_1.BaseAPI {
3047
3478
  getMonthlyTurnOver(requestParameters, options) {
3048
3479
  return (0, exports.ClubAnalyticsStaffApiFp)(this.configuration).getMonthlyTurnOver(requestParameters.year, requestParameters.month, options).then((request) => request(this.axios, this.basePath));
3049
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
+ }
3050
3511
  /**
3051
3512
  * Récupère le nombre d\'utilisateurs du club
3052
3513
  * @param {*} [options] Override http request option.