@tennac-booking/sdk 1.0.69 → 1.0.70
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +5 -2
- package/README.md +6 -2
- package/api.ts +483 -54
- package/dist/api.d.ts +397 -48
- package/dist/api.js +115 -13
- package/dist/esm/api.d.ts +397 -48
- package/dist/esm/api.js +114 -12
- package/docs/BookingDetailResponse.md +1 -1
- package/docs/{BookingHistory.md → BookingHistoryPopulated.md} +4 -4
- package/docs/BookingPopulated.md +27 -7
- package/docs/BookingStatus.md +1 -1
- package/docs/BookingSummary.md +1 -1
- package/docs/BookingsApi.md +81 -2
- package/docs/BookingsStaffApi.md +2 -2
- package/docs/QuickReservationClubSummary.md +28 -0
- package/docs/QuickReservationClubSummaryLocation.md +31 -0
- package/docs/QuickReservationResponse.md +22 -0
- package/docs/QuickReservationSlotSummary.md +42 -0
- package/docs/UserInfo.md +4 -0
- package/docs/UsersApi.md +0 -3
- package/package.json +1 -1
- package/docs/BookingSummaryBookingHistory.md +0 -18
package/api.ts
CHANGED
|
@@ -240,10 +240,10 @@ export interface BookingDetailResponse {
|
|
|
240
240
|
'clubAddress'?: BookingSummaryClubAddress | null;
|
|
241
241
|
/**
|
|
242
242
|
*
|
|
243
|
-
* @type {
|
|
243
|
+
* @type {BookingHistoryPopulated}
|
|
244
244
|
* @memberof BookingDetailResponse
|
|
245
245
|
*/
|
|
246
|
-
'bookingHistory'?:
|
|
246
|
+
'bookingHistory'?: BookingHistoryPopulated;
|
|
247
247
|
/**
|
|
248
248
|
*
|
|
249
249
|
* @type {Array<{ [key: string]: any; }>}
|
|
@@ -254,66 +254,66 @@ export interface BookingDetailResponse {
|
|
|
254
254
|
/**
|
|
255
255
|
*
|
|
256
256
|
* @export
|
|
257
|
-
* @interface
|
|
257
|
+
* @interface BookingHistoryPopulated
|
|
258
258
|
*/
|
|
259
|
-
export interface
|
|
259
|
+
export interface BookingHistoryPopulated {
|
|
260
260
|
/**
|
|
261
261
|
*
|
|
262
262
|
* @type {string}
|
|
263
|
-
* @memberof
|
|
263
|
+
* @memberof BookingHistoryPopulated
|
|
264
264
|
*/
|
|
265
265
|
'action': string;
|
|
266
266
|
/**
|
|
267
267
|
*
|
|
268
|
-
* @type {
|
|
269
|
-
* @memberof
|
|
268
|
+
* @type {UserInfo}
|
|
269
|
+
* @memberof BookingHistoryPopulated
|
|
270
270
|
*/
|
|
271
|
-
'performedBy':
|
|
271
|
+
'performedBy': UserInfo;
|
|
272
272
|
/**
|
|
273
273
|
*
|
|
274
274
|
* @type {string}
|
|
275
|
-
* @memberof
|
|
275
|
+
* @memberof BookingHistoryPopulated
|
|
276
276
|
*/
|
|
277
|
-
'performedByType':
|
|
277
|
+
'performedByType': BookingHistoryPopulatedPerformedByTypeEnum;
|
|
278
278
|
/**
|
|
279
279
|
*
|
|
280
280
|
* @type {string}
|
|
281
|
-
* @memberof
|
|
281
|
+
* @memberof BookingHistoryPopulated
|
|
282
282
|
*/
|
|
283
283
|
'details': string;
|
|
284
284
|
/**
|
|
285
285
|
*
|
|
286
286
|
* @type {any}
|
|
287
|
-
* @memberof
|
|
287
|
+
* @memberof BookingHistoryPopulated
|
|
288
288
|
*/
|
|
289
289
|
'metadata'?: any;
|
|
290
290
|
/**
|
|
291
291
|
*
|
|
292
292
|
* @type {string}
|
|
293
|
-
* @memberof
|
|
293
|
+
* @memberof BookingHistoryPopulated
|
|
294
294
|
*/
|
|
295
295
|
'previousStatus'?: string;
|
|
296
296
|
/**
|
|
297
297
|
*
|
|
298
298
|
* @type {string}
|
|
299
|
-
* @memberof
|
|
299
|
+
* @memberof BookingHistoryPopulated
|
|
300
300
|
*/
|
|
301
301
|
'newStatus'?: string;
|
|
302
302
|
/**
|
|
303
303
|
*
|
|
304
304
|
* @type {string}
|
|
305
|
-
* @memberof
|
|
305
|
+
* @memberof BookingHistoryPopulated
|
|
306
306
|
*/
|
|
307
307
|
'createdAt'?: string;
|
|
308
308
|
}
|
|
309
309
|
|
|
310
|
-
export const
|
|
310
|
+
export const BookingHistoryPopulatedPerformedByTypeEnum = {
|
|
311
311
|
User: 'user',
|
|
312
312
|
Manager: 'manager',
|
|
313
313
|
System: 'system'
|
|
314
314
|
} as const;
|
|
315
315
|
|
|
316
|
-
export type
|
|
316
|
+
export type BookingHistoryPopulatedPerformedByTypeEnum = typeof BookingHistoryPopulatedPerformedByTypeEnum[keyof typeof BookingHistoryPopulatedPerformedByTypeEnum];
|
|
317
317
|
|
|
318
318
|
/**
|
|
319
319
|
*
|
|
@@ -528,30 +528,92 @@ export interface BookingPopulated {
|
|
|
528
528
|
*/
|
|
529
529
|
'id': string;
|
|
530
530
|
/**
|
|
531
|
-
*
|
|
531
|
+
*
|
|
532
532
|
* @type {string}
|
|
533
533
|
* @memberof BookingPopulated
|
|
534
534
|
*/
|
|
535
|
-
'
|
|
535
|
+
'clubId': string;
|
|
536
536
|
/**
|
|
537
537
|
*
|
|
538
538
|
* @type {UserInfo}
|
|
539
539
|
* @memberof BookingPopulated
|
|
540
540
|
*/
|
|
541
|
-
'
|
|
541
|
+
'creator': UserInfo;
|
|
542
542
|
/**
|
|
543
543
|
*
|
|
544
544
|
* @type {SlotInfo}
|
|
545
545
|
* @memberof BookingPopulated
|
|
546
546
|
*/
|
|
547
|
-
'
|
|
547
|
+
'slotInfos': SlotInfo;
|
|
548
548
|
/**
|
|
549
549
|
* Statut des paiements par joueur
|
|
550
550
|
* @type {Array<PaymentByPlayerInfo>}
|
|
551
551
|
* @memberof BookingPopulated
|
|
552
552
|
*/
|
|
553
|
-
'
|
|
553
|
+
'paymentByPlayers': Array<PaymentByPlayerInfo>;
|
|
554
|
+
/**
|
|
555
|
+
*
|
|
556
|
+
* @type {boolean}
|
|
557
|
+
* @memberof BookingPopulated
|
|
558
|
+
*/
|
|
559
|
+
'noShowChargeApplied'?: boolean;
|
|
560
|
+
/**
|
|
561
|
+
*
|
|
562
|
+
* @type {number}
|
|
563
|
+
* @memberof BookingPopulated
|
|
564
|
+
*/
|
|
565
|
+
'noShowChargeAmount'?: number;
|
|
566
|
+
/**
|
|
567
|
+
*
|
|
568
|
+
* @type {number}
|
|
569
|
+
* @memberof BookingPopulated
|
|
570
|
+
*/
|
|
571
|
+
'totalPrice': number;
|
|
572
|
+
/**
|
|
573
|
+
*
|
|
574
|
+
* @type {boolean}
|
|
575
|
+
* @memberof BookingPopulated
|
|
576
|
+
*/
|
|
577
|
+
'isCreatorPayingAll': boolean;
|
|
578
|
+
/**
|
|
579
|
+
*
|
|
580
|
+
* @type {Array<string>}
|
|
581
|
+
* @memberof BookingPopulated
|
|
582
|
+
*/
|
|
583
|
+
'playersIds': Array<string>;
|
|
584
|
+
/**
|
|
585
|
+
*
|
|
586
|
+
* @type {Array<BookingHistoryPopulated>}
|
|
587
|
+
* @memberof BookingPopulated
|
|
588
|
+
*/
|
|
589
|
+
'history': Array<BookingHistoryPopulated>;
|
|
590
|
+
/**
|
|
591
|
+
*
|
|
592
|
+
* @type {BookingStatus}
|
|
593
|
+
* @memberof BookingPopulated
|
|
594
|
+
*/
|
|
595
|
+
'status': BookingStatus;
|
|
596
|
+
/**
|
|
597
|
+
*
|
|
598
|
+
* @type {boolean}
|
|
599
|
+
* @memberof BookingPopulated
|
|
600
|
+
*/
|
|
601
|
+
'cancelledByManager'?: boolean;
|
|
602
|
+
/**
|
|
603
|
+
*
|
|
604
|
+
* @type {string}
|
|
605
|
+
* @memberof BookingPopulated
|
|
606
|
+
*/
|
|
607
|
+
'cancelledBy'?: string;
|
|
608
|
+
/**
|
|
609
|
+
*
|
|
610
|
+
* @type {string}
|
|
611
|
+
* @memberof BookingPopulated
|
|
612
|
+
*/
|
|
613
|
+
'cancellationReason'?: string;
|
|
554
614
|
}
|
|
615
|
+
|
|
616
|
+
|
|
555
617
|
/**
|
|
556
618
|
*
|
|
557
619
|
* @export
|
|
@@ -618,7 +680,7 @@ export const BookingStatus = {
|
|
|
618
680
|
Paid: 'paid',
|
|
619
681
|
Active: 'active',
|
|
620
682
|
Pending: 'pending',
|
|
621
|
-
|
|
683
|
+
ActivePaymentsTimeout: 'active_payments_timeout',
|
|
622
684
|
Canceled: 'canceled',
|
|
623
685
|
NoShow: 'no-show'
|
|
624
686
|
} as const;
|
|
@@ -706,17 +768,10 @@ export interface BookingSummary {
|
|
|
706
768
|
'clubAddress'?: BookingSummaryClubAddress | null;
|
|
707
769
|
/**
|
|
708
770
|
*
|
|
709
|
-
* @type {
|
|
771
|
+
* @type {BookingHistoryPopulated}
|
|
710
772
|
* @memberof BookingSummary
|
|
711
773
|
*/
|
|
712
|
-
'bookingHistory'?:
|
|
713
|
-
}
|
|
714
|
-
/**
|
|
715
|
-
*
|
|
716
|
-
* @export
|
|
717
|
-
* @interface BookingSummaryBookingHistory
|
|
718
|
-
*/
|
|
719
|
-
export interface BookingSummaryBookingHistory {
|
|
774
|
+
'bookingHistory'?: BookingHistoryPopulated;
|
|
720
775
|
}
|
|
721
776
|
/**
|
|
722
777
|
*
|
|
@@ -4123,6 +4178,184 @@ export interface PublishEventResponse {
|
|
|
4123
4178
|
*/
|
|
4124
4179
|
'event': EventResponse;
|
|
4125
4180
|
}
|
|
4181
|
+
/**
|
|
4182
|
+
*
|
|
4183
|
+
* @export
|
|
4184
|
+
* @interface QuickReservationClubSummary
|
|
4185
|
+
*/
|
|
4186
|
+
export interface QuickReservationClubSummary {
|
|
4187
|
+
/**
|
|
4188
|
+
* ID du club
|
|
4189
|
+
* @type {string}
|
|
4190
|
+
* @memberof QuickReservationClubSummary
|
|
4191
|
+
*/
|
|
4192
|
+
'clubId': string;
|
|
4193
|
+
/**
|
|
4194
|
+
* Nom du club
|
|
4195
|
+
* @type {string}
|
|
4196
|
+
* @memberof QuickReservationClubSummary
|
|
4197
|
+
*/
|
|
4198
|
+
'clubName': string;
|
|
4199
|
+
/**
|
|
4200
|
+
* Distance par rapport à la recherche, en mètres
|
|
4201
|
+
* @type {number}
|
|
4202
|
+
* @memberof QuickReservationClubSummary
|
|
4203
|
+
*/
|
|
4204
|
+
'distanceInMeters': number;
|
|
4205
|
+
/**
|
|
4206
|
+
*
|
|
4207
|
+
* @type {QuickReservationClubSummaryLocation}
|
|
4208
|
+
* @memberof QuickReservationClubSummary
|
|
4209
|
+
*/
|
|
4210
|
+
'location'?: QuickReservationClubSummaryLocation;
|
|
4211
|
+
/**
|
|
4212
|
+
* Créneaux disponibles correspondant aux filtres
|
|
4213
|
+
* @type {Array<QuickReservationSlotSummary>}
|
|
4214
|
+
* @memberof QuickReservationClubSummary
|
|
4215
|
+
*/
|
|
4216
|
+
'slots': Array<QuickReservationSlotSummary>;
|
|
4217
|
+
}
|
|
4218
|
+
/**
|
|
4219
|
+
* Localisation du club
|
|
4220
|
+
* @export
|
|
4221
|
+
* @interface QuickReservationClubSummaryLocation
|
|
4222
|
+
*/
|
|
4223
|
+
export interface QuickReservationClubSummaryLocation {
|
|
4224
|
+
/**
|
|
4225
|
+
*
|
|
4226
|
+
* @type {string}
|
|
4227
|
+
* @memberof QuickReservationClubSummaryLocation
|
|
4228
|
+
*/
|
|
4229
|
+
'country'?: string;
|
|
4230
|
+
/**
|
|
4231
|
+
*
|
|
4232
|
+
* @type {string}
|
|
4233
|
+
* @memberof QuickReservationClubSummaryLocation
|
|
4234
|
+
*/
|
|
4235
|
+
'postalCode'?: string;
|
|
4236
|
+
/**
|
|
4237
|
+
*
|
|
4238
|
+
* @type {string}
|
|
4239
|
+
* @memberof QuickReservationClubSummaryLocation
|
|
4240
|
+
*/
|
|
4241
|
+
'city'?: string;
|
|
4242
|
+
/**
|
|
4243
|
+
*
|
|
4244
|
+
* @type {string}
|
|
4245
|
+
* @memberof QuickReservationClubSummaryLocation
|
|
4246
|
+
*/
|
|
4247
|
+
'address'?: string;
|
|
4248
|
+
/**
|
|
4249
|
+
*
|
|
4250
|
+
* @type {number}
|
|
4251
|
+
* @memberof QuickReservationClubSummaryLocation
|
|
4252
|
+
*/
|
|
4253
|
+
'longitude'?: number;
|
|
4254
|
+
/**
|
|
4255
|
+
*
|
|
4256
|
+
* @type {number}
|
|
4257
|
+
* @memberof QuickReservationClubSummaryLocation
|
|
4258
|
+
*/
|
|
4259
|
+
'latitude'?: number;
|
|
4260
|
+
}
|
|
4261
|
+
/**
|
|
4262
|
+
*
|
|
4263
|
+
* @export
|
|
4264
|
+
* @interface QuickReservationResponse
|
|
4265
|
+
*/
|
|
4266
|
+
export interface QuickReservationResponse {
|
|
4267
|
+
/**
|
|
4268
|
+
* Nombre total de clubs contenant des créneaux disponibles
|
|
4269
|
+
* @type {number}
|
|
4270
|
+
* @memberof QuickReservationResponse
|
|
4271
|
+
*/
|
|
4272
|
+
'totalClubs': number;
|
|
4273
|
+
/**
|
|
4274
|
+
* Liste des clubs et de leurs créneaux disponibles
|
|
4275
|
+
* @type {Array<QuickReservationClubSummary>}
|
|
4276
|
+
* @memberof QuickReservationResponse
|
|
4277
|
+
*/
|
|
4278
|
+
'clubs': Array<QuickReservationClubSummary>;
|
|
4279
|
+
}
|
|
4280
|
+
/**
|
|
4281
|
+
*
|
|
4282
|
+
* @export
|
|
4283
|
+
* @interface QuickReservationSlotSummary
|
|
4284
|
+
*/
|
|
4285
|
+
export interface QuickReservationSlotSummary {
|
|
4286
|
+
/**
|
|
4287
|
+
* ID du créneau
|
|
4288
|
+
* @type {string}
|
|
4289
|
+
* @memberof QuickReservationSlotSummary
|
|
4290
|
+
*/
|
|
4291
|
+
'id': string;
|
|
4292
|
+
/**
|
|
4293
|
+
* Date de début ISO
|
|
4294
|
+
* @type {string}
|
|
4295
|
+
* @memberof QuickReservationSlotSummary
|
|
4296
|
+
*/
|
|
4297
|
+
'startDate': string;
|
|
4298
|
+
/**
|
|
4299
|
+
* Date de fin ISO
|
|
4300
|
+
* @type {string}
|
|
4301
|
+
* @memberof QuickReservationSlotSummary
|
|
4302
|
+
*/
|
|
4303
|
+
'endDate': string;
|
|
4304
|
+
/**
|
|
4305
|
+
* Durée du créneau en minutes
|
|
4306
|
+
* @type {number}
|
|
4307
|
+
* @memberof QuickReservationSlotSummary
|
|
4308
|
+
*/
|
|
4309
|
+
'durationMinutes': number;
|
|
4310
|
+
/**
|
|
4311
|
+
* ID du terrain
|
|
4312
|
+
* @type {string}
|
|
4313
|
+
* @memberof QuickReservationSlotSummary
|
|
4314
|
+
*/
|
|
4315
|
+
'courtId': string;
|
|
4316
|
+
/**
|
|
4317
|
+
* Nom du terrain
|
|
4318
|
+
* @type {string}
|
|
4319
|
+
* @memberof QuickReservationSlotSummary
|
|
4320
|
+
*/
|
|
4321
|
+
'courtName': string;
|
|
4322
|
+
/**
|
|
4323
|
+
* Indique si le terrain est en intérieur
|
|
4324
|
+
* @type {boolean}
|
|
4325
|
+
* @memberof QuickReservationSlotSummary
|
|
4326
|
+
*/
|
|
4327
|
+
'isIndoor': boolean;
|
|
4328
|
+
/**
|
|
4329
|
+
* Surface du terrain
|
|
4330
|
+
* @type {string}
|
|
4331
|
+
* @memberof QuickReservationSlotSummary
|
|
4332
|
+
*/
|
|
4333
|
+
'surface'?: string;
|
|
4334
|
+
/**
|
|
4335
|
+
* Prix horaire du terrain (en euros)
|
|
4336
|
+
* @type {number}
|
|
4337
|
+
* @memberof QuickReservationSlotSummary
|
|
4338
|
+
*/
|
|
4339
|
+
'pricePerHour'?: number;
|
|
4340
|
+
/**
|
|
4341
|
+
* Prix total estimé pour le créneau (en euros)
|
|
4342
|
+
* @type {number}
|
|
4343
|
+
* @memberof QuickReservationSlotSummary
|
|
4344
|
+
*/
|
|
4345
|
+
'totalPrice'?: number;
|
|
4346
|
+
/**
|
|
4347
|
+
* ID du sport associé
|
|
4348
|
+
* @type {string}
|
|
4349
|
+
* @memberof QuickReservationSlotSummary
|
|
4350
|
+
*/
|
|
4351
|
+
'sportId': string;
|
|
4352
|
+
/**
|
|
4353
|
+
* Clé du sport associé
|
|
4354
|
+
* @type {string}
|
|
4355
|
+
* @memberof QuickReservationSlotSummary
|
|
4356
|
+
*/
|
|
4357
|
+
'sportKey'?: string;
|
|
4358
|
+
}
|
|
4126
4359
|
/**
|
|
4127
4360
|
*
|
|
4128
4361
|
* @export
|
|
@@ -6652,6 +6885,18 @@ export interface UserInfo {
|
|
|
6652
6885
|
* @memberof UserInfo
|
|
6653
6886
|
*/
|
|
6654
6887
|
'lastName': string;
|
|
6888
|
+
/**
|
|
6889
|
+
*
|
|
6890
|
+
* @type {string}
|
|
6891
|
+
* @memberof UserInfo
|
|
6892
|
+
*/
|
|
6893
|
+
'email': string;
|
|
6894
|
+
/**
|
|
6895
|
+
*
|
|
6896
|
+
* @type {string}
|
|
6897
|
+
* @memberof UserInfo
|
|
6898
|
+
*/
|
|
6899
|
+
'profilePictureUrl'?: string;
|
|
6655
6900
|
}
|
|
6656
6901
|
/**
|
|
6657
6902
|
*
|
|
@@ -7087,6 +7332,85 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
7087
7332
|
|
|
7088
7333
|
|
|
7089
7334
|
|
|
7335
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7336
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7337
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
7338
|
+
|
|
7339
|
+
return {
|
|
7340
|
+
url: toPathString(localVarUrlObj),
|
|
7341
|
+
options: localVarRequestOptions,
|
|
7342
|
+
};
|
|
7343
|
+
},
|
|
7344
|
+
/**
|
|
7345
|
+
* Recherche des créneaux disponibles pour une réservation rapide
|
|
7346
|
+
* @param {number} [latitude]
|
|
7347
|
+
* @param {number} [longitude]
|
|
7348
|
+
* @param {number} [radiusInKm]
|
|
7349
|
+
* @param {string} [date]
|
|
7350
|
+
* @param {string} [sportId]
|
|
7351
|
+
* @param {string} [startTime]
|
|
7352
|
+
* @param {number} [priceMax]
|
|
7353
|
+
* @param {string} [courtTypes]
|
|
7354
|
+
* @param {number} [limitPerClub]
|
|
7355
|
+
* @param {number} [maxClubs]
|
|
7356
|
+
* @param {*} [options] Override http request option.
|
|
7357
|
+
* @throws {RequiredError}
|
|
7358
|
+
*/
|
|
7359
|
+
getQuickReservationSlots: async (latitude?: number, longitude?: number, radiusInKm?: number, date?: string, sportId?: string, startTime?: string, priceMax?: number, courtTypes?: string, limitPerClub?: number, maxClubs?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
7360
|
+
const localVarPath = `/api/bookings/quick-reservations`;
|
|
7361
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7362
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7363
|
+
let baseOptions;
|
|
7364
|
+
if (configuration) {
|
|
7365
|
+
baseOptions = configuration.baseOptions;
|
|
7366
|
+
}
|
|
7367
|
+
|
|
7368
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
7369
|
+
const localVarHeaderParameter = {} as any;
|
|
7370
|
+
const localVarQueryParameter = {} as any;
|
|
7371
|
+
|
|
7372
|
+
if (latitude !== undefined) {
|
|
7373
|
+
localVarQueryParameter['latitude'] = latitude;
|
|
7374
|
+
}
|
|
7375
|
+
|
|
7376
|
+
if (longitude !== undefined) {
|
|
7377
|
+
localVarQueryParameter['longitude'] = longitude;
|
|
7378
|
+
}
|
|
7379
|
+
|
|
7380
|
+
if (radiusInKm !== undefined) {
|
|
7381
|
+
localVarQueryParameter['radiusInKm'] = radiusInKm;
|
|
7382
|
+
}
|
|
7383
|
+
|
|
7384
|
+
if (date !== undefined) {
|
|
7385
|
+
localVarQueryParameter['date'] = date;
|
|
7386
|
+
}
|
|
7387
|
+
|
|
7388
|
+
if (sportId !== undefined) {
|
|
7389
|
+
localVarQueryParameter['sportId'] = sportId;
|
|
7390
|
+
}
|
|
7391
|
+
|
|
7392
|
+
if (startTime !== undefined) {
|
|
7393
|
+
localVarQueryParameter['startTime'] = startTime;
|
|
7394
|
+
}
|
|
7395
|
+
|
|
7396
|
+
if (priceMax !== undefined) {
|
|
7397
|
+
localVarQueryParameter['priceMax'] = priceMax;
|
|
7398
|
+
}
|
|
7399
|
+
|
|
7400
|
+
if (courtTypes !== undefined) {
|
|
7401
|
+
localVarQueryParameter['courtTypes'] = courtTypes;
|
|
7402
|
+
}
|
|
7403
|
+
|
|
7404
|
+
if (limitPerClub !== undefined) {
|
|
7405
|
+
localVarQueryParameter['limitPerClub'] = limitPerClub;
|
|
7406
|
+
}
|
|
7407
|
+
|
|
7408
|
+
if (maxClubs !== undefined) {
|
|
7409
|
+
localVarQueryParameter['maxClubs'] = maxClubs;
|
|
7410
|
+
}
|
|
7411
|
+
|
|
7412
|
+
|
|
7413
|
+
|
|
7090
7414
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7091
7415
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7092
7416
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -7112,12 +7436,33 @@ export const BookingsApiFp = function(configuration?: Configuration) {
|
|
|
7112
7436
|
* @param {*} [options] Override http request option.
|
|
7113
7437
|
* @throws {RequiredError}
|
|
7114
7438
|
*/
|
|
7115
|
-
async getBookingHistory(bookingId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
7439
|
+
async getBookingHistory(bookingId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BookingHistoryPopulated>> {
|
|
7116
7440
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingHistory(bookingId, options);
|
|
7117
7441
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
7118
7442
|
const localVarOperationServerBasePath = operationServerMap['BookingsApi.getBookingHistory']?.[localVarOperationServerIndex]?.url;
|
|
7119
7443
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7120
7444
|
},
|
|
7445
|
+
/**
|
|
7446
|
+
* Recherche des créneaux disponibles pour une réservation rapide
|
|
7447
|
+
* @param {number} [latitude]
|
|
7448
|
+
* @param {number} [longitude]
|
|
7449
|
+
* @param {number} [radiusInKm]
|
|
7450
|
+
* @param {string} [date]
|
|
7451
|
+
* @param {string} [sportId]
|
|
7452
|
+
* @param {string} [startTime]
|
|
7453
|
+
* @param {number} [priceMax]
|
|
7454
|
+
* @param {string} [courtTypes]
|
|
7455
|
+
* @param {number} [limitPerClub]
|
|
7456
|
+
* @param {number} [maxClubs]
|
|
7457
|
+
* @param {*} [options] Override http request option.
|
|
7458
|
+
* @throws {RequiredError}
|
|
7459
|
+
*/
|
|
7460
|
+
async getQuickReservationSlots(latitude?: number, longitude?: number, radiusInKm?: number, date?: string, sportId?: string, startTime?: string, priceMax?: number, courtTypes?: string, limitPerClub?: number, maxClubs?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<QuickReservationResponse>> {
|
|
7461
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getQuickReservationSlots(latitude, longitude, radiusInKm, date, sportId, startTime, priceMax, courtTypes, limitPerClub, maxClubs, options);
|
|
7462
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
7463
|
+
const localVarOperationServerBasePath = operationServerMap['BookingsApi.getQuickReservationSlots']?.[localVarOperationServerIndex]?.url;
|
|
7464
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7465
|
+
},
|
|
7121
7466
|
}
|
|
7122
7467
|
};
|
|
7123
7468
|
|
|
@@ -7134,9 +7479,18 @@ export const BookingsApiFactory = function (configuration?: Configuration, baseP
|
|
|
7134
7479
|
* @param {*} [options] Override http request option.
|
|
7135
7480
|
* @throws {RequiredError}
|
|
7136
7481
|
*/
|
|
7137
|
-
getBookingHistory(requestParameters: BookingsApiGetBookingHistoryRequest, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
7482
|
+
getBookingHistory(requestParameters: BookingsApiGetBookingHistoryRequest, options?: RawAxiosRequestConfig): AxiosPromise<BookingHistoryPopulated> {
|
|
7138
7483
|
return localVarFp.getBookingHistory(requestParameters.bookingId, options).then((request) => request(axios, basePath));
|
|
7139
7484
|
},
|
|
7485
|
+
/**
|
|
7486
|
+
* Recherche des créneaux disponibles pour une réservation rapide
|
|
7487
|
+
* @param {BookingsApiGetQuickReservationSlotsRequest} requestParameters Request parameters.
|
|
7488
|
+
* @param {*} [options] Override http request option.
|
|
7489
|
+
* @throws {RequiredError}
|
|
7490
|
+
*/
|
|
7491
|
+
getQuickReservationSlots(requestParameters: BookingsApiGetQuickReservationSlotsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<QuickReservationResponse> {
|
|
7492
|
+
return localVarFp.getQuickReservationSlots(requestParameters.latitude, requestParameters.longitude, requestParameters.radiusInKm, requestParameters.date, requestParameters.sportId, requestParameters.startTime, requestParameters.priceMax, requestParameters.courtTypes, requestParameters.limitPerClub, requestParameters.maxClubs, options).then((request) => request(axios, basePath));
|
|
7493
|
+
},
|
|
7140
7494
|
};
|
|
7141
7495
|
};
|
|
7142
7496
|
|
|
@@ -7154,6 +7508,83 @@ export interface BookingsApiGetBookingHistoryRequest {
|
|
|
7154
7508
|
readonly bookingId: string
|
|
7155
7509
|
}
|
|
7156
7510
|
|
|
7511
|
+
/**
|
|
7512
|
+
* Request parameters for getQuickReservationSlots operation in BookingsApi.
|
|
7513
|
+
* @export
|
|
7514
|
+
* @interface BookingsApiGetQuickReservationSlotsRequest
|
|
7515
|
+
*/
|
|
7516
|
+
export interface BookingsApiGetQuickReservationSlotsRequest {
|
|
7517
|
+
/**
|
|
7518
|
+
*
|
|
7519
|
+
* @type {number}
|
|
7520
|
+
* @memberof BookingsApiGetQuickReservationSlots
|
|
7521
|
+
*/
|
|
7522
|
+
readonly latitude?: number
|
|
7523
|
+
|
|
7524
|
+
/**
|
|
7525
|
+
*
|
|
7526
|
+
* @type {number}
|
|
7527
|
+
* @memberof BookingsApiGetQuickReservationSlots
|
|
7528
|
+
*/
|
|
7529
|
+
readonly longitude?: number
|
|
7530
|
+
|
|
7531
|
+
/**
|
|
7532
|
+
*
|
|
7533
|
+
* @type {number}
|
|
7534
|
+
* @memberof BookingsApiGetQuickReservationSlots
|
|
7535
|
+
*/
|
|
7536
|
+
readonly radiusInKm?: number
|
|
7537
|
+
|
|
7538
|
+
/**
|
|
7539
|
+
*
|
|
7540
|
+
* @type {string}
|
|
7541
|
+
* @memberof BookingsApiGetQuickReservationSlots
|
|
7542
|
+
*/
|
|
7543
|
+
readonly date?: string
|
|
7544
|
+
|
|
7545
|
+
/**
|
|
7546
|
+
*
|
|
7547
|
+
* @type {string}
|
|
7548
|
+
* @memberof BookingsApiGetQuickReservationSlots
|
|
7549
|
+
*/
|
|
7550
|
+
readonly sportId?: string
|
|
7551
|
+
|
|
7552
|
+
/**
|
|
7553
|
+
*
|
|
7554
|
+
* @type {string}
|
|
7555
|
+
* @memberof BookingsApiGetQuickReservationSlots
|
|
7556
|
+
*/
|
|
7557
|
+
readonly startTime?: string
|
|
7558
|
+
|
|
7559
|
+
/**
|
|
7560
|
+
*
|
|
7561
|
+
* @type {number}
|
|
7562
|
+
* @memberof BookingsApiGetQuickReservationSlots
|
|
7563
|
+
*/
|
|
7564
|
+
readonly priceMax?: number
|
|
7565
|
+
|
|
7566
|
+
/**
|
|
7567
|
+
*
|
|
7568
|
+
* @type {string}
|
|
7569
|
+
* @memberof BookingsApiGetQuickReservationSlots
|
|
7570
|
+
*/
|
|
7571
|
+
readonly courtTypes?: string
|
|
7572
|
+
|
|
7573
|
+
/**
|
|
7574
|
+
*
|
|
7575
|
+
* @type {number}
|
|
7576
|
+
* @memberof BookingsApiGetQuickReservationSlots
|
|
7577
|
+
*/
|
|
7578
|
+
readonly limitPerClub?: number
|
|
7579
|
+
|
|
7580
|
+
/**
|
|
7581
|
+
*
|
|
7582
|
+
* @type {number}
|
|
7583
|
+
* @memberof BookingsApiGetQuickReservationSlots
|
|
7584
|
+
*/
|
|
7585
|
+
readonly maxClubs?: number
|
|
7586
|
+
}
|
|
7587
|
+
|
|
7157
7588
|
/**
|
|
7158
7589
|
* BookingsApi - object-oriented interface
|
|
7159
7590
|
* @export
|
|
@@ -7171,6 +7602,17 @@ export class BookingsApi extends BaseAPI {
|
|
|
7171
7602
|
public getBookingHistory(requestParameters: BookingsApiGetBookingHistoryRequest, options?: RawAxiosRequestConfig) {
|
|
7172
7603
|
return BookingsApiFp(this.configuration).getBookingHistory(requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
|
|
7173
7604
|
}
|
|
7605
|
+
|
|
7606
|
+
/**
|
|
7607
|
+
* Recherche des créneaux disponibles pour une réservation rapide
|
|
7608
|
+
* @param {BookingsApiGetQuickReservationSlotsRequest} requestParameters Request parameters.
|
|
7609
|
+
* @param {*} [options] Override http request option.
|
|
7610
|
+
* @throws {RequiredError}
|
|
7611
|
+
* @memberof BookingsApi
|
|
7612
|
+
*/
|
|
7613
|
+
public getQuickReservationSlots(requestParameters: BookingsApiGetQuickReservationSlotsRequest = {}, options?: RawAxiosRequestConfig) {
|
|
7614
|
+
return BookingsApiFp(this.configuration).getQuickReservationSlots(requestParameters.latitude, requestParameters.longitude, requestParameters.radiusInKm, requestParameters.date, requestParameters.sportId, requestParameters.startTime, requestParameters.priceMax, requestParameters.courtTypes, requestParameters.limitPerClub, requestParameters.maxClubs, options).then((request) => request(this.axios, this.basePath));
|
|
7615
|
+
}
|
|
7174
7616
|
}
|
|
7175
7617
|
|
|
7176
7618
|
|
|
@@ -7669,7 +8111,7 @@ export const BookingsStaffApiFp = function(configuration?: Configuration) {
|
|
|
7669
8111
|
* @param {*} [options] Override http request option.
|
|
7670
8112
|
* @throws {RequiredError}
|
|
7671
8113
|
*/
|
|
7672
|
-
async getBookingHistoryStaff(bookingId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
8114
|
+
async getBookingHistoryStaff(bookingId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BookingHistoryPopulated>> {
|
|
7673
8115
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingHistoryStaff(bookingId, options);
|
|
7674
8116
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
7675
8117
|
const localVarOperationServerBasePath = operationServerMap['BookingsStaffApi.getBookingHistoryStaff']?.[localVarOperationServerIndex]?.url;
|
|
@@ -7745,7 +8187,7 @@ export const BookingsStaffApiFactory = function (configuration?: Configuration,
|
|
|
7745
8187
|
* @param {*} [options] Override http request option.
|
|
7746
8188
|
* @throws {RequiredError}
|
|
7747
8189
|
*/
|
|
7748
|
-
getBookingHistoryStaff(requestParameters: BookingsStaffApiGetBookingHistoryStaffRequest, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
8190
|
+
getBookingHistoryStaff(requestParameters: BookingsStaffApiGetBookingHistoryStaffRequest, options?: RawAxiosRequestConfig): AxiosPromise<BookingHistoryPopulated> {
|
|
7749
8191
|
return localVarFp.getBookingHistoryStaff(requestParameters.bookingId, options).then((request) => request(axios, basePath));
|
|
7750
8192
|
},
|
|
7751
8193
|
/**
|
|
@@ -15924,14 +16366,13 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
15924
16366
|
* @param {string} [sportLevels]
|
|
15925
16367
|
* @param {number} [limit]
|
|
15926
16368
|
* @param {number} [offset]
|
|
15927
|
-
* @param {boolean} [useLocation]
|
|
15928
16369
|
* @param {number} [latitude]
|
|
15929
16370
|
* @param {number} [longitude]
|
|
15930
16371
|
* @param {number} [radiusInKm]
|
|
15931
16372
|
* @param {*} [options] Override http request option.
|
|
15932
16373
|
* @throws {RequiredError}
|
|
15933
16374
|
*/
|
|
15934
|
-
listPlayers: async (category?: PlayerCategoryId, search?: string, gender?: string, sharedClub?: boolean, sportLevels?: string, limit?: number, offset?: number,
|
|
16375
|
+
listPlayers: async (category?: PlayerCategoryId, search?: string, gender?: string, sharedClub?: boolean, sportLevels?: string, limit?: number, offset?: number, latitude?: number, longitude?: number, radiusInKm?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
15935
16376
|
const localVarPath = `/api/users/players`;
|
|
15936
16377
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
15937
16378
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -15976,10 +16417,6 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
15976
16417
|
localVarQueryParameter['offset'] = offset;
|
|
15977
16418
|
}
|
|
15978
16419
|
|
|
15979
|
-
if (useLocation !== undefined) {
|
|
15980
|
-
localVarQueryParameter['useLocation'] = useLocation;
|
|
15981
|
-
}
|
|
15982
|
-
|
|
15983
16420
|
if (latitude !== undefined) {
|
|
15984
16421
|
localVarQueryParameter['latitude'] = latitude;
|
|
15985
16422
|
}
|
|
@@ -16885,15 +17322,14 @@ export const UsersApiFp = function(configuration?: Configuration) {
|
|
|
16885
17322
|
* @param {string} [sportLevels]
|
|
16886
17323
|
* @param {number} [limit]
|
|
16887
17324
|
* @param {number} [offset]
|
|
16888
|
-
* @param {boolean} [useLocation]
|
|
16889
17325
|
* @param {number} [latitude]
|
|
16890
17326
|
* @param {number} [longitude]
|
|
16891
17327
|
* @param {number} [radiusInKm]
|
|
16892
17328
|
* @param {*} [options] Override http request option.
|
|
16893
17329
|
* @throws {RequiredError}
|
|
16894
17330
|
*/
|
|
16895
|
-
async listPlayers(category?: PlayerCategoryId, search?: string, gender?: string, sharedClub?: boolean, sportLevels?: string, limit?: number, offset?: number,
|
|
16896
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listPlayers(category, search, gender, sharedClub, sportLevels, limit, offset,
|
|
17331
|
+
async listPlayers(category?: PlayerCategoryId, search?: string, gender?: string, sharedClub?: boolean, sportLevels?: string, limit?: number, offset?: number, latitude?: number, longitude?: number, radiusInKm?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PlayerListResponse>> {
|
|
17332
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listPlayers(category, search, gender, sharedClub, sportLevels, limit, offset, latitude, longitude, radiusInKm, options);
|
|
16897
17333
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
16898
17334
|
const localVarOperationServerBasePath = operationServerMap['UsersApi.listPlayers']?.[localVarOperationServerIndex]?.url;
|
|
16899
17335
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -17291,7 +17727,7 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
|
|
|
17291
17727
|
* @throws {RequiredError}
|
|
17292
17728
|
*/
|
|
17293
17729
|
listPlayers(requestParameters: UsersApiListPlayersRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<PlayerListResponse> {
|
|
17294
|
-
return localVarFp.listPlayers(requestParameters.category, requestParameters.search, requestParameters.gender, requestParameters.sharedClub, requestParameters.sportLevels, requestParameters.limit, requestParameters.offset, requestParameters.
|
|
17730
|
+
return localVarFp.listPlayers(requestParameters.category, requestParameters.search, requestParameters.gender, requestParameters.sharedClub, requestParameters.sportLevels, requestParameters.limit, requestParameters.offset, requestParameters.latitude, requestParameters.longitude, requestParameters.radiusInKm, options).then((request) => request(axios, basePath));
|
|
17295
17731
|
},
|
|
17296
17732
|
/**
|
|
17297
17733
|
*
|
|
@@ -17748,13 +18184,6 @@ export interface UsersApiListPlayersRequest {
|
|
|
17748
18184
|
*/
|
|
17749
18185
|
readonly offset?: number
|
|
17750
18186
|
|
|
17751
|
-
/**
|
|
17752
|
-
*
|
|
17753
|
-
* @type {boolean}
|
|
17754
|
-
* @memberof UsersApiListPlayers
|
|
17755
|
-
*/
|
|
17756
|
-
readonly useLocation?: boolean
|
|
17757
|
-
|
|
17758
18187
|
/**
|
|
17759
18188
|
*
|
|
17760
18189
|
* @type {number}
|
|
@@ -18229,7 +18658,7 @@ export class UsersApi extends BaseAPI {
|
|
|
18229
18658
|
* @memberof UsersApi
|
|
18230
18659
|
*/
|
|
18231
18660
|
public listPlayers(requestParameters: UsersApiListPlayersRequest = {}, options?: RawAxiosRequestConfig) {
|
|
18232
|
-
return UsersApiFp(this.configuration).listPlayers(requestParameters.category, requestParameters.search, requestParameters.gender, requestParameters.sharedClub, requestParameters.sportLevels, requestParameters.limit, requestParameters.offset, requestParameters.
|
|
18661
|
+
return UsersApiFp(this.configuration).listPlayers(requestParameters.category, requestParameters.search, requestParameters.gender, requestParameters.sharedClub, requestParameters.sportLevels, requestParameters.limit, requestParameters.offset, requestParameters.latitude, requestParameters.longitude, requestParameters.radiusInKm, options).then((request) => request(this.axios, this.basePath));
|
|
18233
18662
|
}
|
|
18234
18663
|
|
|
18235
18664
|
/**
|