@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/esm/api.js CHANGED
@@ -2039,6 +2039,41 @@ export const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration) {
2039
2039
  options: localVarRequestOptions,
2040
2040
  };
2041
2041
  }),
2042
+ /**
2043
+ * Nombre de réservations par jour en fonction des slots
2044
+ * @param {string} [startDate]
2045
+ * @param {string} [endDate]
2046
+ * @param {*} [options] Override http request option.
2047
+ * @throws {RequiredError}
2048
+ */
2049
+ getBookingsPerDay: (startDate_1, endDate_1, ...args_1) => __awaiter(this, [startDate_1, endDate_1, ...args_1], void 0, function* (startDate, endDate, options = {}) {
2050
+ const localVarPath = `/api/club-analytics/bookings/per-day`;
2051
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2052
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2053
+ let baseOptions;
2054
+ if (configuration) {
2055
+ baseOptions = configuration.baseOptions;
2056
+ }
2057
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2058
+ const localVarHeaderParameter = {};
2059
+ const localVarQueryParameter = {};
2060
+ // authentication bearerAuth required
2061
+ // http bearer authentication required
2062
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
2063
+ if (startDate !== undefined) {
2064
+ localVarQueryParameter['startDate'] = startDate;
2065
+ }
2066
+ if (endDate !== undefined) {
2067
+ localVarQueryParameter['endDate'] = endDate;
2068
+ }
2069
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2070
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2071
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2072
+ return {
2073
+ url: toPathString(localVarUrlObj),
2074
+ options: localVarRequestOptions,
2075
+ };
2076
+ }),
2042
2077
  /**
2043
2078
  * Récupère les réservations d\'un joueur par son ID (à venir et passées)
2044
2079
  * @param {string} playerId
@@ -2183,6 +2218,33 @@ export const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration) {
2183
2218
  options: localVarRequestOptions,
2184
2219
  };
2185
2220
  }),
2221
+ /**
2222
+ * Nombre total d\'abonnés actifs du club
2223
+ * @param {*} [options] Override http request option.
2224
+ * @throws {RequiredError}
2225
+ */
2226
+ getClubSubscribersSummary: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
2227
+ const localVarPath = `/api/club-analytics/subscribers/total`;
2228
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2229
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2230
+ let baseOptions;
2231
+ if (configuration) {
2232
+ baseOptions = configuration.baseOptions;
2233
+ }
2234
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2235
+ const localVarHeaderParameter = {};
2236
+ const localVarQueryParameter = {};
2237
+ // authentication bearerAuth required
2238
+ // http bearer authentication required
2239
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
2240
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2241
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2242
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2243
+ return {
2244
+ url: toPathString(localVarUrlObj),
2245
+ options: localVarRequestOptions,
2246
+ };
2247
+ }),
2186
2248
  /**
2187
2249
  * Récupère le chiffre d\'affaires quotidien
2188
2250
  * @param {string} date
@@ -2305,6 +2367,64 @@ export const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration) {
2305
2367
  options: localVarRequestOptions,
2306
2368
  };
2307
2369
  }),
2370
+ /**
2371
+ * Créneaux horaires les moins réservés (3 derniers mois)
2372
+ * @param {number} [limit]
2373
+ * @param {*} [options] Override http request option.
2374
+ * @throws {RequiredError}
2375
+ */
2376
+ getLeastBookedTimeSlots: (limit_1, ...args_1) => __awaiter(this, [limit_1, ...args_1], void 0, function* (limit, options = {}) {
2377
+ const localVarPath = `/api/club-analytics/bookings/least-booked-time-slots`;
2378
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2379
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2380
+ let baseOptions;
2381
+ if (configuration) {
2382
+ baseOptions = configuration.baseOptions;
2383
+ }
2384
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2385
+ const localVarHeaderParameter = {};
2386
+ const localVarQueryParameter = {};
2387
+ // authentication bearerAuth required
2388
+ // http bearer authentication required
2389
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
2390
+ if (limit !== undefined) {
2391
+ localVarQueryParameter['limit'] = limit;
2392
+ }
2393
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2394
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2395
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2396
+ return {
2397
+ url: toPathString(localVarUrlObj),
2398
+ options: localVarRequestOptions,
2399
+ };
2400
+ }),
2401
+ /**
2402
+ * Jour de la semaine le moins réservé (3 derniers mois)
2403
+ * @param {*} [options] Override http request option.
2404
+ * @throws {RequiredError}
2405
+ */
2406
+ getLeastBookedWeekday: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
2407
+ const localVarPath = `/api/club-analytics/bookings/least-booked-weekday`;
2408
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2409
+ const localVarUrlObj = new URL(localVarPath, 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 setBearerAuthToObject(localVarHeaderParameter, configuration);
2420
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2421
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2422
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2423
+ return {
2424
+ url: toPathString(localVarUrlObj),
2425
+ options: localVarRequestOptions,
2426
+ };
2427
+ }),
2308
2428
  /**
2309
2429
  * Récupère le chiffre d\'affaires mensuel
2310
2430
  * @param {string} year
@@ -2344,6 +2464,111 @@ export const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration) {
2344
2464
  options: localVarRequestOptions,
2345
2465
  };
2346
2466
  }),
2467
+ /**
2468
+ * Nouvelles réservations créées sur une période
2469
+ * @param {string} [startDate]
2470
+ * @param {string} [endDate]
2471
+ * @param {*} [options] Override http request option.
2472
+ * @throws {RequiredError}
2473
+ */
2474
+ getNewBookingsCount: (startDate_1, endDate_1, ...args_1) => __awaiter(this, [startDate_1, endDate_1, ...args_1], void 0, function* (startDate, endDate, options = {}) {
2475
+ const localVarPath = `/api/club-analytics/bookings/new`;
2476
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2477
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2478
+ let baseOptions;
2479
+ if (configuration) {
2480
+ baseOptions = configuration.baseOptions;
2481
+ }
2482
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2483
+ const localVarHeaderParameter = {};
2484
+ const localVarQueryParameter = {};
2485
+ // authentication bearerAuth required
2486
+ // http bearer authentication required
2487
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
2488
+ if (startDate !== undefined) {
2489
+ localVarQueryParameter['startDate'] = startDate;
2490
+ }
2491
+ if (endDate !== undefined) {
2492
+ localVarQueryParameter['endDate'] = endDate;
2493
+ }
2494
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2495
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2496
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2497
+ return {
2498
+ url: toPathString(localVarUrlObj),
2499
+ options: localVarRequestOptions,
2500
+ };
2501
+ }),
2502
+ /**
2503
+ * Nouveaux abonnés sur une période
2504
+ * @param {string} [startDate]
2505
+ * @param {string} [endDate]
2506
+ * @param {*} [options] Override http request option.
2507
+ * @throws {RequiredError}
2508
+ */
2509
+ getNewSubscribersCount: (startDate_1, endDate_1, ...args_1) => __awaiter(this, [startDate_1, endDate_1, ...args_1], void 0, function* (startDate, endDate, options = {}) {
2510
+ const localVarPath = `/api/club-analytics/subscribers/new`;
2511
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2512
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2513
+ let baseOptions;
2514
+ if (configuration) {
2515
+ baseOptions = configuration.baseOptions;
2516
+ }
2517
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2518
+ const localVarHeaderParameter = {};
2519
+ const localVarQueryParameter = {};
2520
+ // authentication bearerAuth required
2521
+ // http bearer authentication required
2522
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
2523
+ if (startDate !== undefined) {
2524
+ localVarQueryParameter['startDate'] = startDate;
2525
+ }
2526
+ if (endDate !== undefined) {
2527
+ localVarQueryParameter['endDate'] = endDate;
2528
+ }
2529
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2530
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2531
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2532
+ return {
2533
+ url: toPathString(localVarUrlObj),
2534
+ options: localVarRequestOptions,
2535
+ };
2536
+ }),
2537
+ /**
2538
+ * Taux de no-show global ou sur une période
2539
+ * @param {string} [startDate]
2540
+ * @param {string} [endDate]
2541
+ * @param {*} [options] Override http request option.
2542
+ * @throws {RequiredError}
2543
+ */
2544
+ getNoShowRate: (startDate_1, endDate_1, ...args_1) => __awaiter(this, [startDate_1, endDate_1, ...args_1], void 0, function* (startDate, endDate, options = {}) {
2545
+ const localVarPath = `/api/club-analytics/bookings/no-show-rate`;
2546
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2547
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2548
+ let baseOptions;
2549
+ if (configuration) {
2550
+ baseOptions = configuration.baseOptions;
2551
+ }
2552
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2553
+ const localVarHeaderParameter = {};
2554
+ const localVarQueryParameter = {};
2555
+ // authentication bearerAuth required
2556
+ // http bearer authentication required
2557
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
2558
+ if (startDate !== undefined) {
2559
+ localVarQueryParameter['startDate'] = startDate;
2560
+ }
2561
+ if (endDate !== undefined) {
2562
+ localVarQueryParameter['endDate'] = endDate;
2563
+ }
2564
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2565
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2566
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2567
+ return {
2568
+ url: toPathString(localVarUrlObj),
2569
+ options: localVarRequestOptions,
2570
+ };
2571
+ }),
2347
2572
  /**
2348
2573
  * Récupère le nombre d\'utilisateurs du club
2349
2574
  * @param {*} [options] Override http request option.
@@ -2536,6 +2761,22 @@ export const ClubAnalyticsStaffApiFp = function (configuration) {
2536
2761
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2537
2762
  });
2538
2763
  },
2764
+ /**
2765
+ * Nombre de réservations par jour en fonction des slots
2766
+ * @param {string} [startDate]
2767
+ * @param {string} [endDate]
2768
+ * @param {*} [options] Override http request option.
2769
+ * @throws {RequiredError}
2770
+ */
2771
+ getBookingsPerDay(startDate, endDate, options) {
2772
+ return __awaiter(this, void 0, void 0, function* () {
2773
+ var _a, _b, _c;
2774
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getBookingsPerDay(startDate, endDate, options);
2775
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2776
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubAnalyticsStaffApi.getBookingsPerDay']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2777
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2778
+ });
2779
+ },
2539
2780
  /**
2540
2781
  * Récupère les réservations d\'un joueur par son ID (à venir et passées)
2541
2782
  * @param {string} playerId
@@ -2601,6 +2842,20 @@ export const ClubAnalyticsStaffApiFp = function (configuration) {
2601
2842
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2602
2843
  });
2603
2844
  },
2845
+ /**
2846
+ * Nombre total d\'abonnés actifs du club
2847
+ * @param {*} [options] Override http request option.
2848
+ * @throws {RequiredError}
2849
+ */
2850
+ getClubSubscribersSummary(options) {
2851
+ return __awaiter(this, void 0, void 0, function* () {
2852
+ var _a, _b, _c;
2853
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubSubscribersSummary(options);
2854
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2855
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubAnalyticsStaffApi.getClubSubscribersSummary']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2856
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2857
+ });
2858
+ },
2604
2859
  /**
2605
2860
  * Récupère le chiffre d\'affaires quotidien
2606
2861
  * @param {string} date
@@ -2660,6 +2915,35 @@ export const ClubAnalyticsStaffApiFp = function (configuration) {
2660
2915
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2661
2916
  });
2662
2917
  },
2918
+ /**
2919
+ * Créneaux horaires les moins réservés (3 derniers mois)
2920
+ * @param {number} [limit]
2921
+ * @param {*} [options] Override http request option.
2922
+ * @throws {RequiredError}
2923
+ */
2924
+ getLeastBookedTimeSlots(limit, options) {
2925
+ return __awaiter(this, void 0, void 0, function* () {
2926
+ var _a, _b, _c;
2927
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getLeastBookedTimeSlots(limit, options);
2928
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2929
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubAnalyticsStaffApi.getLeastBookedTimeSlots']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2930
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2931
+ });
2932
+ },
2933
+ /**
2934
+ * Jour de la semaine le moins réservé (3 derniers mois)
2935
+ * @param {*} [options] Override http request option.
2936
+ * @throws {RequiredError}
2937
+ */
2938
+ getLeastBookedWeekday(options) {
2939
+ return __awaiter(this, void 0, void 0, function* () {
2940
+ var _a, _b, _c;
2941
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getLeastBookedWeekday(options);
2942
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2943
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubAnalyticsStaffApi.getLeastBookedWeekday']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2944
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2945
+ });
2946
+ },
2663
2947
  /**
2664
2948
  * Récupère le chiffre d\'affaires mensuel
2665
2949
  * @param {string} year
@@ -2676,6 +2960,54 @@ export const ClubAnalyticsStaffApiFp = function (configuration) {
2676
2960
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2677
2961
  });
2678
2962
  },
2963
+ /**
2964
+ * Nouvelles réservations créées sur une période
2965
+ * @param {string} [startDate]
2966
+ * @param {string} [endDate]
2967
+ * @param {*} [options] Override http request option.
2968
+ * @throws {RequiredError}
2969
+ */
2970
+ getNewBookingsCount(startDate, endDate, options) {
2971
+ return __awaiter(this, void 0, void 0, function* () {
2972
+ var _a, _b, _c;
2973
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getNewBookingsCount(startDate, endDate, options);
2974
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2975
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubAnalyticsStaffApi.getNewBookingsCount']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2976
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2977
+ });
2978
+ },
2979
+ /**
2980
+ * Nouveaux abonnés sur une période
2981
+ * @param {string} [startDate]
2982
+ * @param {string} [endDate]
2983
+ * @param {*} [options] Override http request option.
2984
+ * @throws {RequiredError}
2985
+ */
2986
+ getNewSubscribersCount(startDate, endDate, options) {
2987
+ return __awaiter(this, void 0, void 0, function* () {
2988
+ var _a, _b, _c;
2989
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getNewSubscribersCount(startDate, endDate, options);
2990
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2991
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubAnalyticsStaffApi.getNewSubscribersCount']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2992
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2993
+ });
2994
+ },
2995
+ /**
2996
+ * Taux de no-show global ou sur une période
2997
+ * @param {string} [startDate]
2998
+ * @param {string} [endDate]
2999
+ * @param {*} [options] Override http request option.
3000
+ * @throws {RequiredError}
3001
+ */
3002
+ getNoShowRate(startDate, endDate, options) {
3003
+ return __awaiter(this, void 0, void 0, function* () {
3004
+ var _a, _b, _c;
3005
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getNoShowRate(startDate, endDate, options);
3006
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3007
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubAnalyticsStaffApi.getNoShowRate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3008
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3009
+ });
3010
+ },
2679
3011
  /**
2680
3012
  * Récupère le nombre d\'utilisateurs du club
2681
3013
  * @param {*} [options] Override http request option.
@@ -2779,6 +3111,15 @@ export const ClubAnalyticsStaffApiFactory = function (configuration, basePath, a
2779
3111
  getAnalyticsBySport(requestParameters, options) {
2780
3112
  return localVarFp.getAnalyticsBySport(requestParameters.sportId, options).then((request) => request(axios, basePath));
2781
3113
  },
3114
+ /**
3115
+ * Nombre de réservations par jour en fonction des slots
3116
+ * @param {ClubAnalyticsStaffApiGetBookingsPerDayRequest} requestParameters Request parameters.
3117
+ * @param {*} [options] Override http request option.
3118
+ * @throws {RequiredError}
3119
+ */
3120
+ getBookingsPerDay(requestParameters = {}, options) {
3121
+ return localVarFp.getBookingsPerDay(requestParameters.startDate, requestParameters.endDate, options).then((request) => request(axios, basePath));
3122
+ },
2782
3123
  /**
2783
3124
  * Récupère les réservations d\'un joueur par son ID (à venir et passées)
2784
3125
  * @param {ClubAnalyticsStaffApiGetClubPlayerBookingsByIdRequest} requestParameters Request parameters.
@@ -2815,6 +3156,14 @@ export const ClubAnalyticsStaffApiFactory = function (configuration, basePath, a
2815
3156
  getClubPlayers(requestParameters = {}, options) {
2816
3157
  return localVarFp.getClubPlayers(requestParameters.page, requestParameters.pageSize, requestParameters.search, requestParameters.filters, options).then((request) => request(axios, basePath));
2817
3158
  },
3159
+ /**
3160
+ * Nombre total d\'abonnés actifs du club
3161
+ * @param {*} [options] Override http request option.
3162
+ * @throws {RequiredError}
3163
+ */
3164
+ getClubSubscribersSummary(options) {
3165
+ return localVarFp.getClubSubscribersSummary(options).then((request) => request(axios, basePath));
3166
+ },
2818
3167
  /**
2819
3168
  * Récupère le chiffre d\'affaires quotidien
2820
3169
  * @param {ClubAnalyticsStaffApiGetDailyTurnOverRequest} requestParameters Request parameters.
@@ -2849,6 +3198,23 @@ export const ClubAnalyticsStaffApiFactory = function (configuration, basePath, a
2849
3198
  getLastSixMonthsTurnover(options) {
2850
3199
  return localVarFp.getLastSixMonthsTurnover(options).then((request) => request(axios, basePath));
2851
3200
  },
3201
+ /**
3202
+ * Créneaux horaires les moins réservés (3 derniers mois)
3203
+ * @param {ClubAnalyticsStaffApiGetLeastBookedTimeSlotsRequest} requestParameters Request parameters.
3204
+ * @param {*} [options] Override http request option.
3205
+ * @throws {RequiredError}
3206
+ */
3207
+ getLeastBookedTimeSlots(requestParameters = {}, options) {
3208
+ return localVarFp.getLeastBookedTimeSlots(requestParameters.limit, options).then((request) => request(axios, basePath));
3209
+ },
3210
+ /**
3211
+ * Jour de la semaine le moins réservé (3 derniers mois)
3212
+ * @param {*} [options] Override http request option.
3213
+ * @throws {RequiredError}
3214
+ */
3215
+ getLeastBookedWeekday(options) {
3216
+ return localVarFp.getLeastBookedWeekday(options).then((request) => request(axios, basePath));
3217
+ },
2852
3218
  /**
2853
3219
  * Récupère le chiffre d\'affaires mensuel
2854
3220
  * @param {ClubAnalyticsStaffApiGetMonthlyTurnOverRequest} requestParameters Request parameters.
@@ -2858,6 +3224,33 @@ export const ClubAnalyticsStaffApiFactory = function (configuration, basePath, a
2858
3224
  getMonthlyTurnOver(requestParameters, options) {
2859
3225
  return localVarFp.getMonthlyTurnOver(requestParameters.year, requestParameters.month, options).then((request) => request(axios, basePath));
2860
3226
  },
3227
+ /**
3228
+ * Nouvelles réservations créées sur une période
3229
+ * @param {ClubAnalyticsStaffApiGetNewBookingsCountRequest} requestParameters Request parameters.
3230
+ * @param {*} [options] Override http request option.
3231
+ * @throws {RequiredError}
3232
+ */
3233
+ getNewBookingsCount(requestParameters = {}, options) {
3234
+ return localVarFp.getNewBookingsCount(requestParameters.startDate, requestParameters.endDate, options).then((request) => request(axios, basePath));
3235
+ },
3236
+ /**
3237
+ * Nouveaux abonnés sur une période
3238
+ * @param {ClubAnalyticsStaffApiGetNewSubscribersCountRequest} requestParameters Request parameters.
3239
+ * @param {*} [options] Override http request option.
3240
+ * @throws {RequiredError}
3241
+ */
3242
+ getNewSubscribersCount(requestParameters = {}, options) {
3243
+ return localVarFp.getNewSubscribersCount(requestParameters.startDate, requestParameters.endDate, options).then((request) => request(axios, basePath));
3244
+ },
3245
+ /**
3246
+ * Taux de no-show global ou sur une période
3247
+ * @param {ClubAnalyticsStaffApiGetNoShowRateRequest} requestParameters Request parameters.
3248
+ * @param {*} [options] Override http request option.
3249
+ * @throws {RequiredError}
3250
+ */
3251
+ getNoShowRate(requestParameters = {}, options) {
3252
+ return localVarFp.getNoShowRate(requestParameters.startDate, requestParameters.endDate, options).then((request) => request(axios, basePath));
3253
+ },
2861
3254
  /**
2862
3255
  * Récupère le nombre d\'utilisateurs du club
2863
3256
  * @param {*} [options] Override http request option.
@@ -2926,6 +3319,16 @@ export class ClubAnalyticsStaffApi extends BaseAPI {
2926
3319
  getAnalyticsBySport(requestParameters, options) {
2927
3320
  return ClubAnalyticsStaffApiFp(this.configuration).getAnalyticsBySport(requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
2928
3321
  }
3322
+ /**
3323
+ * Nombre de réservations par jour en fonction des slots
3324
+ * @param {ClubAnalyticsStaffApiGetBookingsPerDayRequest} requestParameters Request parameters.
3325
+ * @param {*} [options] Override http request option.
3326
+ * @throws {RequiredError}
3327
+ * @memberof ClubAnalyticsStaffApi
3328
+ */
3329
+ getBookingsPerDay(requestParameters = {}, options) {
3330
+ return ClubAnalyticsStaffApiFp(this.configuration).getBookingsPerDay(requestParameters.startDate, requestParameters.endDate, options).then((request) => request(this.axios, this.basePath));
3331
+ }
2929
3332
  /**
2930
3333
  * Récupère les réservations d\'un joueur par son ID (à venir et passées)
2931
3334
  * @param {ClubAnalyticsStaffApiGetClubPlayerBookingsByIdRequest} requestParameters Request parameters.
@@ -2966,6 +3369,15 @@ export class ClubAnalyticsStaffApi extends BaseAPI {
2966
3369
  getClubPlayers(requestParameters = {}, options) {
2967
3370
  return ClubAnalyticsStaffApiFp(this.configuration).getClubPlayers(requestParameters.page, requestParameters.pageSize, requestParameters.search, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
2968
3371
  }
3372
+ /**
3373
+ * Nombre total d\'abonnés actifs du club
3374
+ * @param {*} [options] Override http request option.
3375
+ * @throws {RequiredError}
3376
+ * @memberof ClubAnalyticsStaffApi
3377
+ */
3378
+ getClubSubscribersSummary(options) {
3379
+ return ClubAnalyticsStaffApiFp(this.configuration).getClubSubscribersSummary(options).then((request) => request(this.axios, this.basePath));
3380
+ }
2969
3381
  /**
2970
3382
  * Récupère le chiffre d\'affaires quotidien
2971
3383
  * @param {ClubAnalyticsStaffApiGetDailyTurnOverRequest} requestParameters Request parameters.
@@ -3004,6 +3416,25 @@ export class ClubAnalyticsStaffApi extends BaseAPI {
3004
3416
  getLastSixMonthsTurnover(options) {
3005
3417
  return ClubAnalyticsStaffApiFp(this.configuration).getLastSixMonthsTurnover(options).then((request) => request(this.axios, this.basePath));
3006
3418
  }
3419
+ /**
3420
+ * Créneaux horaires les moins réservés (3 derniers mois)
3421
+ * @param {ClubAnalyticsStaffApiGetLeastBookedTimeSlotsRequest} requestParameters Request parameters.
3422
+ * @param {*} [options] Override http request option.
3423
+ * @throws {RequiredError}
3424
+ * @memberof ClubAnalyticsStaffApi
3425
+ */
3426
+ getLeastBookedTimeSlots(requestParameters = {}, options) {
3427
+ return ClubAnalyticsStaffApiFp(this.configuration).getLeastBookedTimeSlots(requestParameters.limit, options).then((request) => request(this.axios, this.basePath));
3428
+ }
3429
+ /**
3430
+ * Jour de la semaine le moins réservé (3 derniers mois)
3431
+ * @param {*} [options] Override http request option.
3432
+ * @throws {RequiredError}
3433
+ * @memberof ClubAnalyticsStaffApi
3434
+ */
3435
+ getLeastBookedWeekday(options) {
3436
+ return ClubAnalyticsStaffApiFp(this.configuration).getLeastBookedWeekday(options).then((request) => request(this.axios, this.basePath));
3437
+ }
3007
3438
  /**
3008
3439
  * Récupère le chiffre d\'affaires mensuel
3009
3440
  * @param {ClubAnalyticsStaffApiGetMonthlyTurnOverRequest} requestParameters Request parameters.
@@ -3014,6 +3445,36 @@ export class ClubAnalyticsStaffApi extends BaseAPI {
3014
3445
  getMonthlyTurnOver(requestParameters, options) {
3015
3446
  return ClubAnalyticsStaffApiFp(this.configuration).getMonthlyTurnOver(requestParameters.year, requestParameters.month, options).then((request) => request(this.axios, this.basePath));
3016
3447
  }
3448
+ /**
3449
+ * Nouvelles réservations créées sur une période
3450
+ * @param {ClubAnalyticsStaffApiGetNewBookingsCountRequest} requestParameters Request parameters.
3451
+ * @param {*} [options] Override http request option.
3452
+ * @throws {RequiredError}
3453
+ * @memberof ClubAnalyticsStaffApi
3454
+ */
3455
+ getNewBookingsCount(requestParameters = {}, options) {
3456
+ return ClubAnalyticsStaffApiFp(this.configuration).getNewBookingsCount(requestParameters.startDate, requestParameters.endDate, options).then((request) => request(this.axios, this.basePath));
3457
+ }
3458
+ /**
3459
+ * Nouveaux abonnés sur une période
3460
+ * @param {ClubAnalyticsStaffApiGetNewSubscribersCountRequest} requestParameters Request parameters.
3461
+ * @param {*} [options] Override http request option.
3462
+ * @throws {RequiredError}
3463
+ * @memberof ClubAnalyticsStaffApi
3464
+ */
3465
+ getNewSubscribersCount(requestParameters = {}, options) {
3466
+ return ClubAnalyticsStaffApiFp(this.configuration).getNewSubscribersCount(requestParameters.startDate, requestParameters.endDate, options).then((request) => request(this.axios, this.basePath));
3467
+ }
3468
+ /**
3469
+ * Taux de no-show global ou sur une période
3470
+ * @param {ClubAnalyticsStaffApiGetNoShowRateRequest} requestParameters Request parameters.
3471
+ * @param {*} [options] Override http request option.
3472
+ * @throws {RequiredError}
3473
+ * @memberof ClubAnalyticsStaffApi
3474
+ */
3475
+ getNoShowRate(requestParameters = {}, options) {
3476
+ return ClubAnalyticsStaffApiFp(this.configuration).getNoShowRate(requestParameters.startDate, requestParameters.endDate, options).then((request) => request(this.axios, this.basePath));
3477
+ }
3017
3478
  /**
3018
3479
  * Récupère le nombre d\'utilisateurs du club
3019
3480
  * @param {*} [options] Override http request option.
@@ -0,0 +1,22 @@
1
+ # BookingsPerDayItem
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **date** | **string** | Jour au format YYYY-MM-DD | [default to undefined]
9
+ **bookingsCount** | **number** | Nombre de réservations dont la séance se déroule ce jour-là | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { BookingsPerDayItem } from '@tennac-booking/sdk';
15
+
16
+ const instance: BookingsPerDayItem = {
17
+ date,
18
+ bookingsCount,
19
+ };
20
+ ```
21
+
22
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,24 @@
1
+ # BookingsPerDayResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **startDate** | **string** | Date de début incluse (format ISO) | [default to undefined]
9
+ **endDate** | **string** | Date de fin incluse (format ISO) | [default to undefined]
10
+ **dailyCounts** | [**Array<BookingsPerDayItem>**](BookingsPerDayItem.md) | Comptes quotidiens | [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { BookingsPerDayResponse } from '@tennac-booking/sdk';
16
+
17
+ const instance: BookingsPerDayResponse = {
18
+ startDate,
19
+ endDate,
20
+ dailyCounts,
21
+ };
22
+ ```
23
+
24
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)