@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/api.ts CHANGED
@@ -1257,6 +1257,50 @@ export interface BookingSummary {
1257
1257
  */
1258
1258
  export interface BookingSummaryClubAddress {
1259
1259
  }
1260
+ /**
1261
+ *
1262
+ * @export
1263
+ * @interface BookingsPerDayItem
1264
+ */
1265
+ export interface BookingsPerDayItem {
1266
+ /**
1267
+ * Jour au format YYYY-MM-DD
1268
+ * @type {string}
1269
+ * @memberof BookingsPerDayItem
1270
+ */
1271
+ 'date': string;
1272
+ /**
1273
+ * Nombre de réservations dont la séance se déroule ce jour-là
1274
+ * @type {number}
1275
+ * @memberof BookingsPerDayItem
1276
+ */
1277
+ 'bookingsCount': number;
1278
+ }
1279
+ /**
1280
+ *
1281
+ * @export
1282
+ * @interface BookingsPerDayResponse
1283
+ */
1284
+ export interface BookingsPerDayResponse {
1285
+ /**
1286
+ * Date de début incluse (format ISO)
1287
+ * @type {string}
1288
+ * @memberof BookingsPerDayResponse
1289
+ */
1290
+ 'startDate': string;
1291
+ /**
1292
+ * Date de fin incluse (format ISO)
1293
+ * @type {string}
1294
+ * @memberof BookingsPerDayResponse
1295
+ */
1296
+ 'endDate': string;
1297
+ /**
1298
+ * Comptes quotidiens
1299
+ * @type {Array<BookingsPerDayItem>}
1300
+ * @memberof BookingsPerDayResponse
1301
+ */
1302
+ 'dailyCounts': Array<BookingsPerDayItem>;
1303
+ }
1260
1304
  /**
1261
1305
  *
1262
1306
  * @export
@@ -2184,6 +2228,56 @@ export interface ClubMetadataResponseLocation {
2184
2228
  */
2185
2229
  'address'?: string;
2186
2230
  }
2231
+ /**
2232
+ *
2233
+ * @export
2234
+ * @interface ClubNewBookingsResponse
2235
+ */
2236
+ export interface ClubNewBookingsResponse {
2237
+ /**
2238
+ * Date de début incluse (format ISO)
2239
+ * @type {string}
2240
+ * @memberof ClubNewBookingsResponse
2241
+ */
2242
+ 'startDate': string;
2243
+ /**
2244
+ * Date de fin incluse (format ISO)
2245
+ * @type {string}
2246
+ * @memberof ClubNewBookingsResponse
2247
+ */
2248
+ 'endDate': string;
2249
+ /**
2250
+ * Nombre de nouvelles réservations créées durant la période
2251
+ * @type {number}
2252
+ * @memberof ClubNewBookingsResponse
2253
+ */
2254
+ 'newBookings': number;
2255
+ }
2256
+ /**
2257
+ *
2258
+ * @export
2259
+ * @interface ClubNewSubscribersResponse
2260
+ */
2261
+ export interface ClubNewSubscribersResponse {
2262
+ /**
2263
+ * Date de début incluse (format ISO)
2264
+ * @type {string}
2265
+ * @memberof ClubNewSubscribersResponse
2266
+ */
2267
+ 'startDate': string;
2268
+ /**
2269
+ * Date de fin incluse (format ISO)
2270
+ * @type {string}
2271
+ * @memberof ClubNewSubscribersResponse
2272
+ */
2273
+ 'endDate': string;
2274
+ /**
2275
+ * Nombre de nouveaux abonnés sur la période
2276
+ * @type {number}
2277
+ * @memberof ClubNewSubscribersResponse
2278
+ */
2279
+ 'newSubscribers': number;
2280
+ }
2187
2281
  /**
2188
2282
  *
2189
2283
  * @export
@@ -3274,6 +3368,19 @@ export const ClubRoleResponseRoleEnum = {
3274
3368
 
3275
3369
  export type ClubRoleResponseRoleEnum = typeof ClubRoleResponseRoleEnum[keyof typeof ClubRoleResponseRoleEnum];
3276
3370
 
3371
+ /**
3372
+ *
3373
+ * @export
3374
+ * @interface ClubSubscriberSummaryResponse
3375
+ */
3376
+ export interface ClubSubscriberSummaryResponse {
3377
+ /**
3378
+ * Nombre total d\'abonnés actifs au club
3379
+ * @type {number}
3380
+ * @memberof ClubSubscriberSummaryResponse
3381
+ */
3382
+ 'totalSubscribers': number;
3383
+ }
3277
3384
  /**
3278
3385
  *
3279
3386
  * @export
@@ -6391,6 +6498,93 @@ export interface LastSixMonthsTurnoverItem {
6391
6498
  */
6392
6499
  'value': number;
6393
6500
  }
6501
+ /**
6502
+ *
6503
+ * @export
6504
+ * @interface LeastBookedTimeSlotItem
6505
+ */
6506
+ export interface LeastBookedTimeSlotItem {
6507
+ /**
6508
+ * Jour de la semaine (0 = dimanche)
6509
+ * @type {number}
6510
+ * @memberof LeastBookedTimeSlotItem
6511
+ */
6512
+ 'weekday': number;
6513
+ /**
6514
+ * Nom du jour
6515
+ * @type {string}
6516
+ * @memberof LeastBookedTimeSlotItem
6517
+ */
6518
+ 'weekdayName': string;
6519
+ /**
6520
+ * Heure de début (format HH:00)
6521
+ * @type {string}
6522
+ * @memberof LeastBookedTimeSlotItem
6523
+ */
6524
+ 'hour': string;
6525
+ /**
6526
+ * Nombre total de réservations observées pour ce créneau
6527
+ * @type {number}
6528
+ * @memberof LeastBookedTimeSlotItem
6529
+ */
6530
+ 'totalBookings': number;
6531
+ }
6532
+ /**
6533
+ *
6534
+ * @export
6535
+ * @interface LeastBookedTimeSlotsResponse
6536
+ */
6537
+ export interface LeastBookedTimeSlotsResponse {
6538
+ /**
6539
+ * Début de la fenêtre analysée
6540
+ * @type {string}
6541
+ * @memberof LeastBookedTimeSlotsResponse
6542
+ */
6543
+ 'periodStart': string;
6544
+ /**
6545
+ * Fin de la fenêtre analysée
6546
+ * @type {string}
6547
+ * @memberof LeastBookedTimeSlotsResponse
6548
+ */
6549
+ 'periodEnd': string;
6550
+ /**
6551
+ * Créneaux les moins réservés
6552
+ * @type {Array<LeastBookedTimeSlotItem>}
6553
+ * @memberof LeastBookedTimeSlotsResponse
6554
+ */
6555
+ 'timeSlots': Array<LeastBookedTimeSlotItem>;
6556
+ }
6557
+ /**
6558
+ *
6559
+ * @export
6560
+ * @interface LeastBookedWeekdayResponse
6561
+ */
6562
+ export interface LeastBookedWeekdayResponse {
6563
+ /**
6564
+ * Date de début de la période analysée
6565
+ * @type {string}
6566
+ * @memberof LeastBookedWeekdayResponse
6567
+ */
6568
+ 'periodStart': string;
6569
+ /**
6570
+ * Date de fin de la période analysée
6571
+ * @type {string}
6572
+ * @memberof LeastBookedWeekdayResponse
6573
+ */
6574
+ 'periodEnd': string;
6575
+ /**
6576
+ * Jour le moins réservé (null si aucune donnée)
6577
+ * @type {WeekdayAverageItem}
6578
+ * @memberof LeastBookedWeekdayResponse
6579
+ */
6580
+ 'leastBooked': WeekdayAverageItem | null;
6581
+ /**
6582
+ * Détail des moyennes par jour de la semaine
6583
+ * @type {Array<WeekdayAverageItem>}
6584
+ * @memberof LeastBookedWeekdayResponse
6585
+ */
6586
+ 'weekdayAverages': Array<WeekdayAverageItem>;
6587
+ }
6394
6588
  /**
6395
6589
  *
6396
6590
  * @export
@@ -6653,6 +6847,43 @@ export interface NoShowFeeResponse {
6653
6847
  */
6654
6848
  'creatorChargeResult'?: CreatorChargeResult;
6655
6849
  }
6850
+ /**
6851
+ *
6852
+ * @export
6853
+ * @interface NoShowRateResponse
6854
+ */
6855
+ export interface NoShowRateResponse {
6856
+ /**
6857
+ * Date de début si la période est fournie
6858
+ * @type {string}
6859
+ * @memberof NoShowRateResponse
6860
+ */
6861
+ 'startDate'?: string;
6862
+ /**
6863
+ * Date de fin si la période est fournie
6864
+ * @type {string}
6865
+ * @memberof NoShowRateResponse
6866
+ */
6867
+ 'endDate'?: string;
6868
+ /**
6869
+ * Nombre de réservations marquées no-show
6870
+ * @type {number}
6871
+ * @memberof NoShowRateResponse
6872
+ */
6873
+ 'noShowCount': number;
6874
+ /**
6875
+ * Nombre total de réservations considérées
6876
+ * @type {number}
6877
+ * @memberof NoShowRateResponse
6878
+ */
6879
+ 'totalBookings': number;
6880
+ /**
6881
+ * Ratio no-show / total (0-1)
6882
+ * @type {number}
6883
+ * @memberof NoShowRateResponse
6884
+ */
6885
+ 'rate': number;
6886
+ }
6656
6887
  /**
6657
6888
  *
6658
6889
  * @export
@@ -11386,6 +11617,43 @@ export const VisibilityType = {
11386
11617
  export type VisibilityType = typeof VisibilityType[keyof typeof VisibilityType];
11387
11618
 
11388
11619
 
11620
+ /**
11621
+ *
11622
+ * @export
11623
+ * @interface WeekdayAverageItem
11624
+ */
11625
+ export interface WeekdayAverageItem {
11626
+ /**
11627
+ * Jour de la semaine (0 = dimanche)
11628
+ * @type {number}
11629
+ * @memberof WeekdayAverageItem
11630
+ */
11631
+ 'weekday': number;
11632
+ /**
11633
+ * Nom lisible du jour
11634
+ * @type {string}
11635
+ * @memberof WeekdayAverageItem
11636
+ */
11637
+ 'weekdayName': string;
11638
+ /**
11639
+ * Nombre total de réservations enregistrées pour ce jour
11640
+ * @type {number}
11641
+ * @memberof WeekdayAverageItem
11642
+ */
11643
+ 'totalBookings': number;
11644
+ /**
11645
+ * Nombre de jours observés pour ce jour de la semaine
11646
+ * @type {number}
11647
+ * @memberof WeekdayAverageItem
11648
+ */
11649
+ 'daysCount': number;
11650
+ /**
11651
+ * Moyenne de réservations par jour de la semaine
11652
+ * @type {number}
11653
+ * @memberof WeekdayAverageItem
11654
+ */
11655
+ 'averageBookings': number;
11656
+ }
11389
11657
  /**
11390
11658
  *
11391
11659
  * @export
@@ -13578,6 +13846,49 @@ export const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration?:
13578
13846
 
13579
13847
 
13580
13848
 
13849
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
13850
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13851
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
13852
+
13853
+ return {
13854
+ url: toPathString(localVarUrlObj),
13855
+ options: localVarRequestOptions,
13856
+ };
13857
+ },
13858
+ /**
13859
+ * Nombre de réservations par jour en fonction des slots
13860
+ * @param {string} [startDate]
13861
+ * @param {string} [endDate]
13862
+ * @param {*} [options] Override http request option.
13863
+ * @throws {RequiredError}
13864
+ */
13865
+ getBookingsPerDay: async (startDate?: string, endDate?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
13866
+ const localVarPath = `/api/club-analytics/bookings/per-day`;
13867
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
13868
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13869
+ let baseOptions;
13870
+ if (configuration) {
13871
+ baseOptions = configuration.baseOptions;
13872
+ }
13873
+
13874
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
13875
+ const localVarHeaderParameter = {} as any;
13876
+ const localVarQueryParameter = {} as any;
13877
+
13878
+ // authentication bearerAuth required
13879
+ // http bearer authentication required
13880
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
13881
+
13882
+ if (startDate !== undefined) {
13883
+ localVarQueryParameter['startDate'] = startDate;
13884
+ }
13885
+
13886
+ if (endDate !== undefined) {
13887
+ localVarQueryParameter['endDate'] = endDate;
13888
+ }
13889
+
13890
+
13891
+
13581
13892
  setSearchParams(localVarUrlObj, localVarQueryParameter);
13582
13893
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13583
13894
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -13752,6 +14063,39 @@ export const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration?:
13752
14063
 
13753
14064
 
13754
14065
 
14066
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
14067
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14068
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
14069
+
14070
+ return {
14071
+ url: toPathString(localVarUrlObj),
14072
+ options: localVarRequestOptions,
14073
+ };
14074
+ },
14075
+ /**
14076
+ * Nombre total d\'abonnés actifs du club
14077
+ * @param {*} [options] Override http request option.
14078
+ * @throws {RequiredError}
14079
+ */
14080
+ getClubSubscribersSummary: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
14081
+ const localVarPath = `/api/club-analytics/subscribers/total`;
14082
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
14083
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
14084
+ let baseOptions;
14085
+ if (configuration) {
14086
+ baseOptions = configuration.baseOptions;
14087
+ }
14088
+
14089
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
14090
+ const localVarHeaderParameter = {} as any;
14091
+ const localVarQueryParameter = {} as any;
14092
+
14093
+ // authentication bearerAuth required
14094
+ // http bearer authentication required
14095
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
14096
+
14097
+
14098
+
13755
14099
  setSearchParams(localVarUrlObj, localVarQueryParameter);
13756
14100
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13757
14101
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -13911,18 +14255,13 @@ export const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration?:
13911
14255
  };
13912
14256
  },
13913
14257
  /**
13914
- * Récupère le chiffre d\'affaires mensuel
13915
- * @param {string} year
13916
- * @param {string} month
14258
+ * Créneaux horaires les moins réservés (3 derniers mois)
14259
+ * @param {number} [limit]
13917
14260
  * @param {*} [options] Override http request option.
13918
14261
  * @throws {RequiredError}
13919
14262
  */
13920
- getMonthlyTurnOver: async (year: string, month: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
13921
- // verify required parameter 'year' is not null or undefined
13922
- assertParamExists('getMonthlyTurnOver', 'year', year)
13923
- // verify required parameter 'month' is not null or undefined
13924
- assertParamExists('getMonthlyTurnOver', 'month', month)
13925
- const localVarPath = `/api/club-analytics/monthly-turnover`;
14263
+ getLeastBookedTimeSlots: async (limit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
14264
+ const localVarPath = `/api/club-analytics/bookings/least-booked-time-slots`;
13926
14265
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
13927
14266
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13928
14267
  let baseOptions;
@@ -13938,12 +14277,8 @@ export const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration?:
13938
14277
  // http bearer authentication required
13939
14278
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
13940
14279
 
13941
- if (year !== undefined) {
13942
- localVarQueryParameter['year'] = year;
13943
- }
13944
-
13945
- if (month !== undefined) {
13946
- localVarQueryParameter['month'] = month;
14280
+ if (limit !== undefined) {
14281
+ localVarQueryParameter['limit'] = limit;
13947
14282
  }
13948
14283
 
13949
14284
 
@@ -13958,12 +14293,12 @@ export const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration?:
13958
14293
  };
13959
14294
  },
13960
14295
  /**
13961
- * Récupère le nombre d\'utilisateurs du club
14296
+ * Jour de la semaine le moins réservé (3 derniers mois)
13962
14297
  * @param {*} [options] Override http request option.
13963
14298
  * @throws {RequiredError}
13964
14299
  */
13965
- getNumberOfClubUsers: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
13966
- const localVarPath = `/api/club-analytics/users-count`;
14300
+ getLeastBookedWeekday: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
14301
+ const localVarPath = `/api/club-analytics/bookings/least-booked-weekday`;
13967
14302
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
13968
14303
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13969
14304
  let baseOptions;
@@ -13991,13 +14326,222 @@ export const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration?:
13991
14326
  };
13992
14327
  },
13993
14328
  /**
13994
- * Calcule le taux de fidélisation des joueurs
14329
+ * Récupère le chiffre d\'affaires mensuel
14330
+ * @param {string} year
14331
+ * @param {string} month
13995
14332
  * @param {*} [options] Override http request option.
13996
14333
  * @throws {RequiredError}
13997
14334
  */
13998
- getRetentionRate: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
13999
- const localVarPath = `/api/club-analytics/retention-rate`;
14000
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
14335
+ getMonthlyTurnOver: async (year: string, month: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
14336
+ // verify required parameter 'year' is not null or undefined
14337
+ assertParamExists('getMonthlyTurnOver', 'year', year)
14338
+ // verify required parameter 'month' is not null or undefined
14339
+ assertParamExists('getMonthlyTurnOver', 'month', month)
14340
+ const localVarPath = `/api/club-analytics/monthly-turnover`;
14341
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
14342
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
14343
+ let baseOptions;
14344
+ if (configuration) {
14345
+ baseOptions = configuration.baseOptions;
14346
+ }
14347
+
14348
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
14349
+ const localVarHeaderParameter = {} as any;
14350
+ const localVarQueryParameter = {} as any;
14351
+
14352
+ // authentication bearerAuth required
14353
+ // http bearer authentication required
14354
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
14355
+
14356
+ if (year !== undefined) {
14357
+ localVarQueryParameter['year'] = year;
14358
+ }
14359
+
14360
+ if (month !== undefined) {
14361
+ localVarQueryParameter['month'] = month;
14362
+ }
14363
+
14364
+
14365
+
14366
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
14367
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14368
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
14369
+
14370
+ return {
14371
+ url: toPathString(localVarUrlObj),
14372
+ options: localVarRequestOptions,
14373
+ };
14374
+ },
14375
+ /**
14376
+ * Nouvelles réservations créées sur une période
14377
+ * @param {string} [startDate]
14378
+ * @param {string} [endDate]
14379
+ * @param {*} [options] Override http request option.
14380
+ * @throws {RequiredError}
14381
+ */
14382
+ getNewBookingsCount: async (startDate?: string, endDate?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
14383
+ const localVarPath = `/api/club-analytics/bookings/new`;
14384
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
14385
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
14386
+ let baseOptions;
14387
+ if (configuration) {
14388
+ baseOptions = configuration.baseOptions;
14389
+ }
14390
+
14391
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
14392
+ const localVarHeaderParameter = {} as any;
14393
+ const localVarQueryParameter = {} as any;
14394
+
14395
+ // authentication bearerAuth required
14396
+ // http bearer authentication required
14397
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
14398
+
14399
+ if (startDate !== undefined) {
14400
+ localVarQueryParameter['startDate'] = startDate;
14401
+ }
14402
+
14403
+ if (endDate !== undefined) {
14404
+ localVarQueryParameter['endDate'] = endDate;
14405
+ }
14406
+
14407
+
14408
+
14409
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
14410
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14411
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
14412
+
14413
+ return {
14414
+ url: toPathString(localVarUrlObj),
14415
+ options: localVarRequestOptions,
14416
+ };
14417
+ },
14418
+ /**
14419
+ * Nouveaux abonnés sur une période
14420
+ * @param {string} [startDate]
14421
+ * @param {string} [endDate]
14422
+ * @param {*} [options] Override http request option.
14423
+ * @throws {RequiredError}
14424
+ */
14425
+ getNewSubscribersCount: async (startDate?: string, endDate?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
14426
+ const localVarPath = `/api/club-analytics/subscribers/new`;
14427
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
14428
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
14429
+ let baseOptions;
14430
+ if (configuration) {
14431
+ baseOptions = configuration.baseOptions;
14432
+ }
14433
+
14434
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
14435
+ const localVarHeaderParameter = {} as any;
14436
+ const localVarQueryParameter = {} as any;
14437
+
14438
+ // authentication bearerAuth required
14439
+ // http bearer authentication required
14440
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
14441
+
14442
+ if (startDate !== undefined) {
14443
+ localVarQueryParameter['startDate'] = startDate;
14444
+ }
14445
+
14446
+ if (endDate !== undefined) {
14447
+ localVarQueryParameter['endDate'] = endDate;
14448
+ }
14449
+
14450
+
14451
+
14452
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
14453
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14454
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
14455
+
14456
+ return {
14457
+ url: toPathString(localVarUrlObj),
14458
+ options: localVarRequestOptions,
14459
+ };
14460
+ },
14461
+ /**
14462
+ * Taux de no-show global ou sur une période
14463
+ * @param {string} [startDate]
14464
+ * @param {string} [endDate]
14465
+ * @param {*} [options] Override http request option.
14466
+ * @throws {RequiredError}
14467
+ */
14468
+ getNoShowRate: async (startDate?: string, endDate?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
14469
+ const localVarPath = `/api/club-analytics/bookings/no-show-rate`;
14470
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
14471
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
14472
+ let baseOptions;
14473
+ if (configuration) {
14474
+ baseOptions = configuration.baseOptions;
14475
+ }
14476
+
14477
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
14478
+ const localVarHeaderParameter = {} as any;
14479
+ const localVarQueryParameter = {} as any;
14480
+
14481
+ // authentication bearerAuth required
14482
+ // http bearer authentication required
14483
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
14484
+
14485
+ if (startDate !== undefined) {
14486
+ localVarQueryParameter['startDate'] = startDate;
14487
+ }
14488
+
14489
+ if (endDate !== undefined) {
14490
+ localVarQueryParameter['endDate'] = endDate;
14491
+ }
14492
+
14493
+
14494
+
14495
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
14496
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14497
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
14498
+
14499
+ return {
14500
+ url: toPathString(localVarUrlObj),
14501
+ options: localVarRequestOptions,
14502
+ };
14503
+ },
14504
+ /**
14505
+ * Récupère le nombre d\'utilisateurs du club
14506
+ * @param {*} [options] Override http request option.
14507
+ * @throws {RequiredError}
14508
+ */
14509
+ getNumberOfClubUsers: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
14510
+ const localVarPath = `/api/club-analytics/users-count`;
14511
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
14512
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
14513
+ let baseOptions;
14514
+ if (configuration) {
14515
+ baseOptions = configuration.baseOptions;
14516
+ }
14517
+
14518
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
14519
+ const localVarHeaderParameter = {} as any;
14520
+ const localVarQueryParameter = {} as any;
14521
+
14522
+ // authentication bearerAuth required
14523
+ // http bearer authentication required
14524
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
14525
+
14526
+
14527
+
14528
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
14529
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14530
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
14531
+
14532
+ return {
14533
+ url: toPathString(localVarUrlObj),
14534
+ options: localVarRequestOptions,
14535
+ };
14536
+ },
14537
+ /**
14538
+ * Calcule le taux de fidélisation des joueurs
14539
+ * @param {*} [options] Override http request option.
14540
+ * @throws {RequiredError}
14541
+ */
14542
+ getRetentionRate: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
14543
+ const localVarPath = `/api/club-analytics/retention-rate`;
14544
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
14001
14545
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
14002
14546
  let baseOptions;
14003
14547
  if (configuration) {
@@ -14184,6 +14728,19 @@ export const ClubAnalyticsStaffApiFp = function(configuration?: Configuration) {
14184
14728
  const localVarOperationServerBasePath = operationServerMap['ClubAnalyticsStaffApi.getAnalyticsBySport']?.[localVarOperationServerIndex]?.url;
14185
14729
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14186
14730
  },
14731
+ /**
14732
+ * Nombre de réservations par jour en fonction des slots
14733
+ * @param {string} [startDate]
14734
+ * @param {string} [endDate]
14735
+ * @param {*} [options] Override http request option.
14736
+ * @throws {RequiredError}
14737
+ */
14738
+ async getBookingsPerDay(startDate?: string, endDate?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BookingsPerDayResponse>> {
14739
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingsPerDay(startDate, endDate, options);
14740
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
14741
+ const localVarOperationServerBasePath = operationServerMap['ClubAnalyticsStaffApi.getBookingsPerDay']?.[localVarOperationServerIndex]?.url;
14742
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14743
+ },
14187
14744
  /**
14188
14745
  * Récupère les réservations d\'un joueur par son ID (à venir et passées)
14189
14746
  * @param {string} playerId
@@ -14237,6 +14794,17 @@ export const ClubAnalyticsStaffApiFp = function(configuration?: Configuration) {
14237
14794
  const localVarOperationServerBasePath = operationServerMap['ClubAnalyticsStaffApi.getClubPlayers']?.[localVarOperationServerIndex]?.url;
14238
14795
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14239
14796
  },
14797
+ /**
14798
+ * Nombre total d\'abonnés actifs du club
14799
+ * @param {*} [options] Override http request option.
14800
+ * @throws {RequiredError}
14801
+ */
14802
+ async getClubSubscribersSummary(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClubSubscriberSummaryResponse>> {
14803
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getClubSubscribersSummary(options);
14804
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
14805
+ const localVarOperationServerBasePath = operationServerMap['ClubAnalyticsStaffApi.getClubSubscribersSummary']?.[localVarOperationServerIndex]?.url;
14806
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14807
+ },
14240
14808
  /**
14241
14809
  * Récupère le chiffre d\'affaires quotidien
14242
14810
  * @param {string} date
@@ -14284,6 +14852,29 @@ export const ClubAnalyticsStaffApiFp = function(configuration?: Configuration) {
14284
14852
  const localVarOperationServerBasePath = operationServerMap['ClubAnalyticsStaffApi.getLastSixMonthsTurnover']?.[localVarOperationServerIndex]?.url;
14285
14853
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14286
14854
  },
14855
+ /**
14856
+ * Créneaux horaires les moins réservés (3 derniers mois)
14857
+ * @param {number} [limit]
14858
+ * @param {*} [options] Override http request option.
14859
+ * @throws {RequiredError}
14860
+ */
14861
+ async getLeastBookedTimeSlots(limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LeastBookedTimeSlotsResponse>> {
14862
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getLeastBookedTimeSlots(limit, options);
14863
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
14864
+ const localVarOperationServerBasePath = operationServerMap['ClubAnalyticsStaffApi.getLeastBookedTimeSlots']?.[localVarOperationServerIndex]?.url;
14865
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14866
+ },
14867
+ /**
14868
+ * Jour de la semaine le moins réservé (3 derniers mois)
14869
+ * @param {*} [options] Override http request option.
14870
+ * @throws {RequiredError}
14871
+ */
14872
+ async getLeastBookedWeekday(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LeastBookedWeekdayResponse>> {
14873
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getLeastBookedWeekday(options);
14874
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
14875
+ const localVarOperationServerBasePath = operationServerMap['ClubAnalyticsStaffApi.getLeastBookedWeekday']?.[localVarOperationServerIndex]?.url;
14876
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14877
+ },
14287
14878
  /**
14288
14879
  * Récupère le chiffre d\'affaires mensuel
14289
14880
  * @param {string} year
@@ -14297,6 +14888,45 @@ export const ClubAnalyticsStaffApiFp = function(configuration?: Configuration) {
14297
14888
  const localVarOperationServerBasePath = operationServerMap['ClubAnalyticsStaffApi.getMonthlyTurnOver']?.[localVarOperationServerIndex]?.url;
14298
14889
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14299
14890
  },
14891
+ /**
14892
+ * Nouvelles réservations créées sur une période
14893
+ * @param {string} [startDate]
14894
+ * @param {string} [endDate]
14895
+ * @param {*} [options] Override http request option.
14896
+ * @throws {RequiredError}
14897
+ */
14898
+ async getNewBookingsCount(startDate?: string, endDate?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClubNewBookingsResponse>> {
14899
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getNewBookingsCount(startDate, endDate, options);
14900
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
14901
+ const localVarOperationServerBasePath = operationServerMap['ClubAnalyticsStaffApi.getNewBookingsCount']?.[localVarOperationServerIndex]?.url;
14902
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14903
+ },
14904
+ /**
14905
+ * Nouveaux abonnés sur une période
14906
+ * @param {string} [startDate]
14907
+ * @param {string} [endDate]
14908
+ * @param {*} [options] Override http request option.
14909
+ * @throws {RequiredError}
14910
+ */
14911
+ async getNewSubscribersCount(startDate?: string, endDate?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClubNewSubscribersResponse>> {
14912
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getNewSubscribersCount(startDate, endDate, options);
14913
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
14914
+ const localVarOperationServerBasePath = operationServerMap['ClubAnalyticsStaffApi.getNewSubscribersCount']?.[localVarOperationServerIndex]?.url;
14915
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14916
+ },
14917
+ /**
14918
+ * Taux de no-show global ou sur une période
14919
+ * @param {string} [startDate]
14920
+ * @param {string} [endDate]
14921
+ * @param {*} [options] Override http request option.
14922
+ * @throws {RequiredError}
14923
+ */
14924
+ async getNoShowRate(startDate?: string, endDate?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<NoShowRateResponse>> {
14925
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getNoShowRate(startDate, endDate, options);
14926
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
14927
+ const localVarOperationServerBasePath = operationServerMap['ClubAnalyticsStaffApi.getNoShowRate']?.[localVarOperationServerIndex]?.url;
14928
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14929
+ },
14300
14930
  /**
14301
14931
  * Récupère le nombre d\'utilisateurs du club
14302
14932
  * @param {*} [options] Override http request option.
@@ -14383,6 +15013,15 @@ export const ClubAnalyticsStaffApiFactory = function (configuration?: Configurat
14383
15013
  getAnalyticsBySport(requestParameters: ClubAnalyticsStaffApiGetAnalyticsBySportRequest, options?: RawAxiosRequestConfig): AxiosPromise<SportAnalyticsResponse> {
14384
15014
  return localVarFp.getAnalyticsBySport(requestParameters.sportId, options).then((request) => request(axios, basePath));
14385
15015
  },
15016
+ /**
15017
+ * Nombre de réservations par jour en fonction des slots
15018
+ * @param {ClubAnalyticsStaffApiGetBookingsPerDayRequest} requestParameters Request parameters.
15019
+ * @param {*} [options] Override http request option.
15020
+ * @throws {RequiredError}
15021
+ */
15022
+ getBookingsPerDay(requestParameters: ClubAnalyticsStaffApiGetBookingsPerDayRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<BookingsPerDayResponse> {
15023
+ return localVarFp.getBookingsPerDay(requestParameters.startDate, requestParameters.endDate, options).then((request) => request(axios, basePath));
15024
+ },
14386
15025
  /**
14387
15026
  * Récupère les réservations d\'un joueur par son ID (à venir et passées)
14388
15027
  * @param {ClubAnalyticsStaffApiGetClubPlayerBookingsByIdRequest} requestParameters Request parameters.
@@ -14419,6 +15058,14 @@ export const ClubAnalyticsStaffApiFactory = function (configuration?: Configurat
14419
15058
  getClubPlayers(requestParameters: ClubAnalyticsStaffApiGetClubPlayersRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<ClubPlayersPaginatedResponse> {
14420
15059
  return localVarFp.getClubPlayers(requestParameters.page, requestParameters.pageSize, requestParameters.search, requestParameters.filters, options).then((request) => request(axios, basePath));
14421
15060
  },
15061
+ /**
15062
+ * Nombre total d\'abonnés actifs du club
15063
+ * @param {*} [options] Override http request option.
15064
+ * @throws {RequiredError}
15065
+ */
15066
+ getClubSubscribersSummary(options?: RawAxiosRequestConfig): AxiosPromise<ClubSubscriberSummaryResponse> {
15067
+ return localVarFp.getClubSubscribersSummary(options).then((request) => request(axios, basePath));
15068
+ },
14422
15069
  /**
14423
15070
  * Récupère le chiffre d\'affaires quotidien
14424
15071
  * @param {ClubAnalyticsStaffApiGetDailyTurnOverRequest} requestParameters Request parameters.
@@ -14453,6 +15100,23 @@ export const ClubAnalyticsStaffApiFactory = function (configuration?: Configurat
14453
15100
  getLastSixMonthsTurnover(options?: RawAxiosRequestConfig): AxiosPromise<Array<LastSixMonthsTurnoverItem>> {
14454
15101
  return localVarFp.getLastSixMonthsTurnover(options).then((request) => request(axios, basePath));
14455
15102
  },
15103
+ /**
15104
+ * Créneaux horaires les moins réservés (3 derniers mois)
15105
+ * @param {ClubAnalyticsStaffApiGetLeastBookedTimeSlotsRequest} requestParameters Request parameters.
15106
+ * @param {*} [options] Override http request option.
15107
+ * @throws {RequiredError}
15108
+ */
15109
+ getLeastBookedTimeSlots(requestParameters: ClubAnalyticsStaffApiGetLeastBookedTimeSlotsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<LeastBookedTimeSlotsResponse> {
15110
+ return localVarFp.getLeastBookedTimeSlots(requestParameters.limit, options).then((request) => request(axios, basePath));
15111
+ },
15112
+ /**
15113
+ * Jour de la semaine le moins réservé (3 derniers mois)
15114
+ * @param {*} [options] Override http request option.
15115
+ * @throws {RequiredError}
15116
+ */
15117
+ getLeastBookedWeekday(options?: RawAxiosRequestConfig): AxiosPromise<LeastBookedWeekdayResponse> {
15118
+ return localVarFp.getLeastBookedWeekday(options).then((request) => request(axios, basePath));
15119
+ },
14456
15120
  /**
14457
15121
  * Récupère le chiffre d\'affaires mensuel
14458
15122
  * @param {ClubAnalyticsStaffApiGetMonthlyTurnOverRequest} requestParameters Request parameters.
@@ -14462,6 +15126,33 @@ export const ClubAnalyticsStaffApiFactory = function (configuration?: Configurat
14462
15126
  getMonthlyTurnOver(requestParameters: ClubAnalyticsStaffApiGetMonthlyTurnOverRequest, options?: RawAxiosRequestConfig): AxiosPromise<MonthlyTurnoverResponse> {
14463
15127
  return localVarFp.getMonthlyTurnOver(requestParameters.year, requestParameters.month, options).then((request) => request(axios, basePath));
14464
15128
  },
15129
+ /**
15130
+ * Nouvelles réservations créées sur une période
15131
+ * @param {ClubAnalyticsStaffApiGetNewBookingsCountRequest} requestParameters Request parameters.
15132
+ * @param {*} [options] Override http request option.
15133
+ * @throws {RequiredError}
15134
+ */
15135
+ getNewBookingsCount(requestParameters: ClubAnalyticsStaffApiGetNewBookingsCountRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<ClubNewBookingsResponse> {
15136
+ return localVarFp.getNewBookingsCount(requestParameters.startDate, requestParameters.endDate, options).then((request) => request(axios, basePath));
15137
+ },
15138
+ /**
15139
+ * Nouveaux abonnés sur une période
15140
+ * @param {ClubAnalyticsStaffApiGetNewSubscribersCountRequest} requestParameters Request parameters.
15141
+ * @param {*} [options] Override http request option.
15142
+ * @throws {RequiredError}
15143
+ */
15144
+ getNewSubscribersCount(requestParameters: ClubAnalyticsStaffApiGetNewSubscribersCountRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<ClubNewSubscribersResponse> {
15145
+ return localVarFp.getNewSubscribersCount(requestParameters.startDate, requestParameters.endDate, options).then((request) => request(axios, basePath));
15146
+ },
15147
+ /**
15148
+ * Taux de no-show global ou sur une période
15149
+ * @param {ClubAnalyticsStaffApiGetNoShowRateRequest} requestParameters Request parameters.
15150
+ * @param {*} [options] Override http request option.
15151
+ * @throws {RequiredError}
15152
+ */
15153
+ getNoShowRate(requestParameters: ClubAnalyticsStaffApiGetNoShowRateRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<NoShowRateResponse> {
15154
+ return localVarFp.getNoShowRate(requestParameters.startDate, requestParameters.endDate, options).then((request) => request(axios, basePath));
15155
+ },
14465
15156
  /**
14466
15157
  * Récupère le nombre d\'utilisateurs du club
14467
15158
  * @param {*} [options] Override http request option.
@@ -14528,6 +15219,27 @@ export interface ClubAnalyticsStaffApiGetAnalyticsBySportRequest {
14528
15219
  readonly sportId: string
14529
15220
  }
14530
15221
 
15222
+ /**
15223
+ * Request parameters for getBookingsPerDay operation in ClubAnalyticsStaffApi.
15224
+ * @export
15225
+ * @interface ClubAnalyticsStaffApiGetBookingsPerDayRequest
15226
+ */
15227
+ export interface ClubAnalyticsStaffApiGetBookingsPerDayRequest {
15228
+ /**
15229
+ *
15230
+ * @type {string}
15231
+ * @memberof ClubAnalyticsStaffApiGetBookingsPerDay
15232
+ */
15233
+ readonly startDate?: string
15234
+
15235
+ /**
15236
+ *
15237
+ * @type {string}
15238
+ * @memberof ClubAnalyticsStaffApiGetBookingsPerDay
15239
+ */
15240
+ readonly endDate?: string
15241
+ }
15242
+
14531
15243
  /**
14532
15244
  * Request parameters for getClubPlayerBookingsById operation in ClubAnalyticsStaffApi.
14533
15245
  * @export
@@ -14654,6 +15366,20 @@ export interface ClubAnalyticsStaffApiGetInfillPercentagePerPeriodRequest {
14654
15366
  readonly endDate?: string
14655
15367
  }
14656
15368
 
15369
+ /**
15370
+ * Request parameters for getLeastBookedTimeSlots operation in ClubAnalyticsStaffApi.
15371
+ * @export
15372
+ * @interface ClubAnalyticsStaffApiGetLeastBookedTimeSlotsRequest
15373
+ */
15374
+ export interface ClubAnalyticsStaffApiGetLeastBookedTimeSlotsRequest {
15375
+ /**
15376
+ *
15377
+ * @type {number}
15378
+ * @memberof ClubAnalyticsStaffApiGetLeastBookedTimeSlots
15379
+ */
15380
+ readonly limit?: number
15381
+ }
15382
+
14657
15383
  /**
14658
15384
  * Request parameters for getMonthlyTurnOver operation in ClubAnalyticsStaffApi.
14659
15385
  * @export
@@ -14675,6 +15401,69 @@ export interface ClubAnalyticsStaffApiGetMonthlyTurnOverRequest {
14675
15401
  readonly month: string
14676
15402
  }
14677
15403
 
15404
+ /**
15405
+ * Request parameters for getNewBookingsCount operation in ClubAnalyticsStaffApi.
15406
+ * @export
15407
+ * @interface ClubAnalyticsStaffApiGetNewBookingsCountRequest
15408
+ */
15409
+ export interface ClubAnalyticsStaffApiGetNewBookingsCountRequest {
15410
+ /**
15411
+ *
15412
+ * @type {string}
15413
+ * @memberof ClubAnalyticsStaffApiGetNewBookingsCount
15414
+ */
15415
+ readonly startDate?: string
15416
+
15417
+ /**
15418
+ *
15419
+ * @type {string}
15420
+ * @memberof ClubAnalyticsStaffApiGetNewBookingsCount
15421
+ */
15422
+ readonly endDate?: string
15423
+ }
15424
+
15425
+ /**
15426
+ * Request parameters for getNewSubscribersCount operation in ClubAnalyticsStaffApi.
15427
+ * @export
15428
+ * @interface ClubAnalyticsStaffApiGetNewSubscribersCountRequest
15429
+ */
15430
+ export interface ClubAnalyticsStaffApiGetNewSubscribersCountRequest {
15431
+ /**
15432
+ *
15433
+ * @type {string}
15434
+ * @memberof ClubAnalyticsStaffApiGetNewSubscribersCount
15435
+ */
15436
+ readonly startDate?: string
15437
+
15438
+ /**
15439
+ *
15440
+ * @type {string}
15441
+ * @memberof ClubAnalyticsStaffApiGetNewSubscribersCount
15442
+ */
15443
+ readonly endDate?: string
15444
+ }
15445
+
15446
+ /**
15447
+ * Request parameters for getNoShowRate operation in ClubAnalyticsStaffApi.
15448
+ * @export
15449
+ * @interface ClubAnalyticsStaffApiGetNoShowRateRequest
15450
+ */
15451
+ export interface ClubAnalyticsStaffApiGetNoShowRateRequest {
15452
+ /**
15453
+ *
15454
+ * @type {string}
15455
+ * @memberof ClubAnalyticsStaffApiGetNoShowRate
15456
+ */
15457
+ readonly startDate?: string
15458
+
15459
+ /**
15460
+ *
15461
+ * @type {string}
15462
+ * @memberof ClubAnalyticsStaffApiGetNoShowRate
15463
+ */
15464
+ readonly endDate?: string
15465
+ }
15466
+
14678
15467
  /**
14679
15468
  * Request parameters for getYearlyTurnOver operation in ClubAnalyticsStaffApi.
14680
15469
  * @export
@@ -14707,6 +15496,17 @@ export class ClubAnalyticsStaffApi extends BaseAPI {
14707
15496
  return ClubAnalyticsStaffApiFp(this.configuration).getAnalyticsBySport(requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
14708
15497
  }
14709
15498
 
15499
+ /**
15500
+ * Nombre de réservations par jour en fonction des slots
15501
+ * @param {ClubAnalyticsStaffApiGetBookingsPerDayRequest} requestParameters Request parameters.
15502
+ * @param {*} [options] Override http request option.
15503
+ * @throws {RequiredError}
15504
+ * @memberof ClubAnalyticsStaffApi
15505
+ */
15506
+ public getBookingsPerDay(requestParameters: ClubAnalyticsStaffApiGetBookingsPerDayRequest = {}, options?: RawAxiosRequestConfig) {
15507
+ return ClubAnalyticsStaffApiFp(this.configuration).getBookingsPerDay(requestParameters.startDate, requestParameters.endDate, options).then((request) => request(this.axios, this.basePath));
15508
+ }
15509
+
14710
15510
  /**
14711
15511
  * Récupère les réservations d\'un joueur par son ID (à venir et passées)
14712
15512
  * @param {ClubAnalyticsStaffApiGetClubPlayerBookingsByIdRequest} requestParameters Request parameters.
@@ -14751,6 +15551,16 @@ export class ClubAnalyticsStaffApi extends BaseAPI {
14751
15551
  return ClubAnalyticsStaffApiFp(this.configuration).getClubPlayers(requestParameters.page, requestParameters.pageSize, requestParameters.search, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
14752
15552
  }
14753
15553
 
15554
+ /**
15555
+ * Nombre total d\'abonnés actifs du club
15556
+ * @param {*} [options] Override http request option.
15557
+ * @throws {RequiredError}
15558
+ * @memberof ClubAnalyticsStaffApi
15559
+ */
15560
+ public getClubSubscribersSummary(options?: RawAxiosRequestConfig) {
15561
+ return ClubAnalyticsStaffApiFp(this.configuration).getClubSubscribersSummary(options).then((request) => request(this.axios, this.basePath));
15562
+ }
15563
+
14754
15564
  /**
14755
15565
  * Récupère le chiffre d\'affaires quotidien
14756
15566
  * @param {ClubAnalyticsStaffApiGetDailyTurnOverRequest} requestParameters Request parameters.
@@ -14793,6 +15603,27 @@ export class ClubAnalyticsStaffApi extends BaseAPI {
14793
15603
  return ClubAnalyticsStaffApiFp(this.configuration).getLastSixMonthsTurnover(options).then((request) => request(this.axios, this.basePath));
14794
15604
  }
14795
15605
 
15606
+ /**
15607
+ * Créneaux horaires les moins réservés (3 derniers mois)
15608
+ * @param {ClubAnalyticsStaffApiGetLeastBookedTimeSlotsRequest} requestParameters Request parameters.
15609
+ * @param {*} [options] Override http request option.
15610
+ * @throws {RequiredError}
15611
+ * @memberof ClubAnalyticsStaffApi
15612
+ */
15613
+ public getLeastBookedTimeSlots(requestParameters: ClubAnalyticsStaffApiGetLeastBookedTimeSlotsRequest = {}, options?: RawAxiosRequestConfig) {
15614
+ return ClubAnalyticsStaffApiFp(this.configuration).getLeastBookedTimeSlots(requestParameters.limit, options).then((request) => request(this.axios, this.basePath));
15615
+ }
15616
+
15617
+ /**
15618
+ * Jour de la semaine le moins réservé (3 derniers mois)
15619
+ * @param {*} [options] Override http request option.
15620
+ * @throws {RequiredError}
15621
+ * @memberof ClubAnalyticsStaffApi
15622
+ */
15623
+ public getLeastBookedWeekday(options?: RawAxiosRequestConfig) {
15624
+ return ClubAnalyticsStaffApiFp(this.configuration).getLeastBookedWeekday(options).then((request) => request(this.axios, this.basePath));
15625
+ }
15626
+
14796
15627
  /**
14797
15628
  * Récupère le chiffre d\'affaires mensuel
14798
15629
  * @param {ClubAnalyticsStaffApiGetMonthlyTurnOverRequest} requestParameters Request parameters.
@@ -14804,6 +15635,39 @@ export class ClubAnalyticsStaffApi extends BaseAPI {
14804
15635
  return ClubAnalyticsStaffApiFp(this.configuration).getMonthlyTurnOver(requestParameters.year, requestParameters.month, options).then((request) => request(this.axios, this.basePath));
14805
15636
  }
14806
15637
 
15638
+ /**
15639
+ * Nouvelles réservations créées sur une période
15640
+ * @param {ClubAnalyticsStaffApiGetNewBookingsCountRequest} requestParameters Request parameters.
15641
+ * @param {*} [options] Override http request option.
15642
+ * @throws {RequiredError}
15643
+ * @memberof ClubAnalyticsStaffApi
15644
+ */
15645
+ public getNewBookingsCount(requestParameters: ClubAnalyticsStaffApiGetNewBookingsCountRequest = {}, options?: RawAxiosRequestConfig) {
15646
+ return ClubAnalyticsStaffApiFp(this.configuration).getNewBookingsCount(requestParameters.startDate, requestParameters.endDate, options).then((request) => request(this.axios, this.basePath));
15647
+ }
15648
+
15649
+ /**
15650
+ * Nouveaux abonnés sur une période
15651
+ * @param {ClubAnalyticsStaffApiGetNewSubscribersCountRequest} requestParameters Request parameters.
15652
+ * @param {*} [options] Override http request option.
15653
+ * @throws {RequiredError}
15654
+ * @memberof ClubAnalyticsStaffApi
15655
+ */
15656
+ public getNewSubscribersCount(requestParameters: ClubAnalyticsStaffApiGetNewSubscribersCountRequest = {}, options?: RawAxiosRequestConfig) {
15657
+ return ClubAnalyticsStaffApiFp(this.configuration).getNewSubscribersCount(requestParameters.startDate, requestParameters.endDate, options).then((request) => request(this.axios, this.basePath));
15658
+ }
15659
+
15660
+ /**
15661
+ * Taux de no-show global ou sur une période
15662
+ * @param {ClubAnalyticsStaffApiGetNoShowRateRequest} requestParameters Request parameters.
15663
+ * @param {*} [options] Override http request option.
15664
+ * @throws {RequiredError}
15665
+ * @memberof ClubAnalyticsStaffApi
15666
+ */
15667
+ public getNoShowRate(requestParameters: ClubAnalyticsStaffApiGetNoShowRateRequest = {}, options?: RawAxiosRequestConfig) {
15668
+ return ClubAnalyticsStaffApiFp(this.configuration).getNoShowRate(requestParameters.startDate, requestParameters.endDate, options).then((request) => request(this.axios, this.basePath));
15669
+ }
15670
+
14807
15671
  /**
14808
15672
  * Récupère le nombre d\'utilisateurs du club
14809
15673
  * @param {*} [options] Override http request option.