@tennac-booking/sdk 1.0.32 → 1.0.34
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 +9 -0
- package/README.md +14 -2
- package/api.ts +874 -82
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +615 -5
- package/dist/api.js +327 -4
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +615 -5
- package/dist/esm/api.js +320 -1
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/ActiveClub.md +2 -0
- package/docs/BookingHistoryResponse.md +22 -0
- package/docs/BookingHistoryResponseHistoryInner.md +32 -0
- package/docs/BookingsApi.md +113 -0
- package/docs/BookingsStaffWeeklyWeekIdGet200Response.md +20 -0
- package/docs/CourtWithNameResponse.md +46 -0
- package/docs/CourtsWithNameResponse.md +22 -0
- package/docs/ManagerClubCourtsApi.md +2 -2
- package/docs/PaymentStatus.md +30 -0
- package/docs/SportResponse.md +4 -0
- package/docs/UpdateUserRequestBody.md +8 -2
- package/docs/UpdateUserRequestBodyLevelBySportsInner.md +22 -0
- package/docs/UserBookingItem.md +46 -0
- package/docs/UserBookingsApi.md +46 -0
- package/docs/UserProfileApi.md +53 -0
- package/docs/UserStaffResponse.md +6 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Pandook API
|
|
5
5
|
* API for managing pickle ball games and players
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.
|
|
7
|
+
* The version of the OpenAPI document: 1.0.34
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -41,6 +41,12 @@ export interface ActiveClub {
|
|
|
41
41
|
* @memberof ActiveClub
|
|
42
42
|
*/
|
|
43
43
|
'name'?: string;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof ActiveClub
|
|
48
|
+
*/
|
|
49
|
+
'address'?: string;
|
|
44
50
|
/**
|
|
45
51
|
*
|
|
46
52
|
* @type {boolean}
|
|
@@ -252,6 +258,74 @@ export interface Booking {
|
|
|
252
258
|
}
|
|
253
259
|
|
|
254
260
|
|
|
261
|
+
/**
|
|
262
|
+
*
|
|
263
|
+
* @export
|
|
264
|
+
* @interface BookingHistoryResponse
|
|
265
|
+
*/
|
|
266
|
+
export interface BookingHistoryResponse {
|
|
267
|
+
/**
|
|
268
|
+
* ID de la réservation
|
|
269
|
+
* @type {string}
|
|
270
|
+
* @memberof BookingHistoryResponse
|
|
271
|
+
*/
|
|
272
|
+
'bookingId'?: string;
|
|
273
|
+
/**
|
|
274
|
+
*
|
|
275
|
+
* @type {Array<BookingHistoryResponseHistoryInner>}
|
|
276
|
+
* @memberof BookingHistoryResponse
|
|
277
|
+
*/
|
|
278
|
+
'history'?: Array<BookingHistoryResponseHistoryInner>;
|
|
279
|
+
}
|
|
280
|
+
/**
|
|
281
|
+
*
|
|
282
|
+
* @export
|
|
283
|
+
* @interface BookingHistoryResponseHistoryInner
|
|
284
|
+
*/
|
|
285
|
+
export interface BookingHistoryResponseHistoryInner {
|
|
286
|
+
/**
|
|
287
|
+
* ID du créneau réservé
|
|
288
|
+
* @type {string}
|
|
289
|
+
* @memberof BookingHistoryResponseHistoryInner
|
|
290
|
+
*/
|
|
291
|
+
'slotId'?: string;
|
|
292
|
+
/**
|
|
293
|
+
* ID de l\'utilisateur qui a effectué la réservation
|
|
294
|
+
* @type {string}
|
|
295
|
+
* @memberof BookingHistoryResponseHistoryInner
|
|
296
|
+
*/
|
|
297
|
+
'userId'?: string;
|
|
298
|
+
/**
|
|
299
|
+
* Statut de la réservation (active, cancelled, completed)
|
|
300
|
+
* @type {string}
|
|
301
|
+
* @memberof BookingHistoryResponseHistoryInner
|
|
302
|
+
*/
|
|
303
|
+
'status'?: string;
|
|
304
|
+
/**
|
|
305
|
+
* Prix total de la réservation
|
|
306
|
+
* @type {number}
|
|
307
|
+
* @memberof BookingHistoryResponseHistoryInner
|
|
308
|
+
*/
|
|
309
|
+
'totalPrice'?: number;
|
|
310
|
+
/**
|
|
311
|
+
* Statut du paiement (paid, pending, cancelled)
|
|
312
|
+
* @type {string}
|
|
313
|
+
* @memberof BookingHistoryResponseHistoryInner
|
|
314
|
+
*/
|
|
315
|
+
'paymentStatus'?: string;
|
|
316
|
+
/**
|
|
317
|
+
* Date et heure de la création de la réservation
|
|
318
|
+
* @type {string}
|
|
319
|
+
* @memberof BookingHistoryResponseHistoryInner
|
|
320
|
+
*/
|
|
321
|
+
'createdAt'?: string;
|
|
322
|
+
/**
|
|
323
|
+
* Date et heure de la dernière mise à jour de la réservation
|
|
324
|
+
* @type {string}
|
|
325
|
+
* @memberof BookingHistoryResponseHistoryInner
|
|
326
|
+
*/
|
|
327
|
+
'updatedAt'?: string;
|
|
328
|
+
}
|
|
255
329
|
/**
|
|
256
330
|
*
|
|
257
331
|
* @export
|
|
@@ -638,6 +712,19 @@ export const BookingStatus = {
|
|
|
638
712
|
export type BookingStatus = typeof BookingStatus[keyof typeof BookingStatus];
|
|
639
713
|
|
|
640
714
|
|
|
715
|
+
/**
|
|
716
|
+
*
|
|
717
|
+
* @export
|
|
718
|
+
* @interface BookingsStaffWeeklyWeekIdGet200Response
|
|
719
|
+
*/
|
|
720
|
+
export interface BookingsStaffWeeklyWeekIdGet200Response {
|
|
721
|
+
/**
|
|
722
|
+
*
|
|
723
|
+
* @type {Array<BookingPopulated>}
|
|
724
|
+
* @memberof BookingsStaffWeeklyWeekIdGet200Response
|
|
725
|
+
*/
|
|
726
|
+
'bookings'?: Array<BookingPopulated>;
|
|
727
|
+
}
|
|
641
728
|
/**
|
|
642
729
|
*
|
|
643
730
|
* @export
|
|
@@ -1583,6 +1670,99 @@ export const CourtStatus = {
|
|
|
1583
1670
|
export type CourtStatus = typeof CourtStatus[keyof typeof CourtStatus];
|
|
1584
1671
|
|
|
1585
1672
|
|
|
1673
|
+
/**
|
|
1674
|
+
*
|
|
1675
|
+
* @export
|
|
1676
|
+
* @interface CourtWithNameResponse
|
|
1677
|
+
*/
|
|
1678
|
+
export interface CourtWithNameResponse {
|
|
1679
|
+
/**
|
|
1680
|
+
*
|
|
1681
|
+
* @type {string}
|
|
1682
|
+
* @memberof CourtWithNameResponse
|
|
1683
|
+
*/
|
|
1684
|
+
'id'?: string;
|
|
1685
|
+
/**
|
|
1686
|
+
*
|
|
1687
|
+
* @type {string}
|
|
1688
|
+
* @memberof CourtWithNameResponse
|
|
1689
|
+
*/
|
|
1690
|
+
'name'?: string;
|
|
1691
|
+
/**
|
|
1692
|
+
*
|
|
1693
|
+
* @type {CourtStatus}
|
|
1694
|
+
* @memberof CourtWithNameResponse
|
|
1695
|
+
*/
|
|
1696
|
+
'status'?: CourtStatus;
|
|
1697
|
+
/**
|
|
1698
|
+
*
|
|
1699
|
+
* @type {string}
|
|
1700
|
+
* @memberof CourtWithNameResponse
|
|
1701
|
+
*/
|
|
1702
|
+
'comments'?: string;
|
|
1703
|
+
/**
|
|
1704
|
+
*
|
|
1705
|
+
* @type {number}
|
|
1706
|
+
* @memberof CourtWithNameResponse
|
|
1707
|
+
*/
|
|
1708
|
+
'pricePerSlot'?: number;
|
|
1709
|
+
/**
|
|
1710
|
+
*
|
|
1711
|
+
* @type {number}
|
|
1712
|
+
* @memberof CourtWithNameResponse
|
|
1713
|
+
*/
|
|
1714
|
+
'slotDefaultDuration'?: number;
|
|
1715
|
+
/**
|
|
1716
|
+
*
|
|
1717
|
+
* @type {number}
|
|
1718
|
+
* @memberof CourtWithNameResponse
|
|
1719
|
+
*/
|
|
1720
|
+
'startTimeInTheDayInMinutes'?: number;
|
|
1721
|
+
/**
|
|
1722
|
+
*
|
|
1723
|
+
* @type {number}
|
|
1724
|
+
* @memberof CourtWithNameResponse
|
|
1725
|
+
*/
|
|
1726
|
+
'endTimeInTheDayInMinutes'?: number;
|
|
1727
|
+
/**
|
|
1728
|
+
*
|
|
1729
|
+
* @type {string}
|
|
1730
|
+
* @memberof CourtWithNameResponse
|
|
1731
|
+
*/
|
|
1732
|
+
'sportId'?: string;
|
|
1733
|
+
/**
|
|
1734
|
+
*
|
|
1735
|
+
* @type {string}
|
|
1736
|
+
* @memberof CourtWithNameResponse
|
|
1737
|
+
*/
|
|
1738
|
+
'sportName'?: string;
|
|
1739
|
+
/**
|
|
1740
|
+
*
|
|
1741
|
+
* @type {string}
|
|
1742
|
+
* @memberof CourtWithNameResponse
|
|
1743
|
+
*/
|
|
1744
|
+
'clubId'?: string;
|
|
1745
|
+
/**
|
|
1746
|
+
* Indique si le terrain est en intérieur ou extérieur
|
|
1747
|
+
* @type {boolean}
|
|
1748
|
+
* @memberof CourtWithNameResponse
|
|
1749
|
+
*/
|
|
1750
|
+
'isIndoor'?: boolean;
|
|
1751
|
+
/**
|
|
1752
|
+
*
|
|
1753
|
+
* @type {string}
|
|
1754
|
+
* @memberof CourtWithNameResponse
|
|
1755
|
+
*/
|
|
1756
|
+
'createdAt'?: string;
|
|
1757
|
+
/**
|
|
1758
|
+
*
|
|
1759
|
+
* @type {string}
|
|
1760
|
+
* @memberof CourtWithNameResponse
|
|
1761
|
+
*/
|
|
1762
|
+
'updatedAt'?: string;
|
|
1763
|
+
}
|
|
1764
|
+
|
|
1765
|
+
|
|
1586
1766
|
/**
|
|
1587
1767
|
*
|
|
1588
1768
|
* @export
|
|
@@ -1602,6 +1782,25 @@ export interface CourtsResponse {
|
|
|
1602
1782
|
*/
|
|
1603
1783
|
'total'?: number;
|
|
1604
1784
|
}
|
|
1785
|
+
/**
|
|
1786
|
+
*
|
|
1787
|
+
* @export
|
|
1788
|
+
* @interface CourtsWithNameResponse
|
|
1789
|
+
*/
|
|
1790
|
+
export interface CourtsWithNameResponse {
|
|
1791
|
+
/**
|
|
1792
|
+
*
|
|
1793
|
+
* @type {Array<CourtWithNameResponse>}
|
|
1794
|
+
* @memberof CourtsWithNameResponse
|
|
1795
|
+
*/
|
|
1796
|
+
'courts'?: Array<CourtWithNameResponse>;
|
|
1797
|
+
/**
|
|
1798
|
+
*
|
|
1799
|
+
* @type {number}
|
|
1800
|
+
* @memberof CourtsWithNameResponse
|
|
1801
|
+
*/
|
|
1802
|
+
'total'?: number;
|
|
1803
|
+
}
|
|
1605
1804
|
/**
|
|
1606
1805
|
*
|
|
1607
1806
|
* @export
|
|
@@ -3067,6 +3266,59 @@ export const PaymentMethod = {
|
|
|
3067
3266
|
export type PaymentMethod = typeof PaymentMethod[keyof typeof PaymentMethod];
|
|
3068
3267
|
|
|
3069
3268
|
|
|
3269
|
+
/**
|
|
3270
|
+
*
|
|
3271
|
+
* @export
|
|
3272
|
+
* @interface PaymentStatus
|
|
3273
|
+
*/
|
|
3274
|
+
export interface PaymentStatus {
|
|
3275
|
+
/**
|
|
3276
|
+
* URL de la photo de profil du joueur
|
|
3277
|
+
* @type {string}
|
|
3278
|
+
* @memberof PaymentStatus
|
|
3279
|
+
*/
|
|
3280
|
+
'profilePicture'?: string;
|
|
3281
|
+
/**
|
|
3282
|
+
* Identifiant de l\'utilisateur
|
|
3283
|
+
* @type {string}
|
|
3284
|
+
* @memberof PaymentStatus
|
|
3285
|
+
*/
|
|
3286
|
+
'userId'?: string;
|
|
3287
|
+
/**
|
|
3288
|
+
* Prénom de l\'utilisateur
|
|
3289
|
+
* @type {string}
|
|
3290
|
+
* @memberof PaymentStatus
|
|
3291
|
+
*/
|
|
3292
|
+
'firstName'?: string;
|
|
3293
|
+
/**
|
|
3294
|
+
* Nom de l\'utilisateur
|
|
3295
|
+
* @type {string}
|
|
3296
|
+
* @memberof PaymentStatus
|
|
3297
|
+
*/
|
|
3298
|
+
'lastName'?: string;
|
|
3299
|
+
/**
|
|
3300
|
+
* Montant que l\'utilisateur doit payer
|
|
3301
|
+
* @type {number}
|
|
3302
|
+
* @memberof PaymentStatus
|
|
3303
|
+
*/
|
|
3304
|
+
'amount'?: number;
|
|
3305
|
+
/**
|
|
3306
|
+
* Statut de la facture
|
|
3307
|
+
* @type {string}
|
|
3308
|
+
* @memberof PaymentStatus
|
|
3309
|
+
*/
|
|
3310
|
+
'invoiceStatus'?: PaymentStatusInvoiceStatusEnum;
|
|
3311
|
+
}
|
|
3312
|
+
|
|
3313
|
+
export const PaymentStatusInvoiceStatusEnum = {
|
|
3314
|
+
Paid: 'paid',
|
|
3315
|
+
Pending: 'pending',
|
|
3316
|
+
Failed: 'failed',
|
|
3317
|
+
Canceled: 'canceled'
|
|
3318
|
+
} as const;
|
|
3319
|
+
|
|
3320
|
+
export type PaymentStatusInvoiceStatusEnum = typeof PaymentStatusInvoiceStatusEnum[keyof typeof PaymentStatusInvoiceStatusEnum];
|
|
3321
|
+
|
|
3070
3322
|
/**
|
|
3071
3323
|
*
|
|
3072
3324
|
* @export
|
|
@@ -3683,6 +3935,18 @@ export interface SportResponse {
|
|
|
3683
3935
|
* @memberof SportResponse
|
|
3684
3936
|
*/
|
|
3685
3937
|
'clubId'?: string;
|
|
3938
|
+
/**
|
|
3939
|
+
*
|
|
3940
|
+
* @type {number}
|
|
3941
|
+
* @memberof SportResponse
|
|
3942
|
+
*/
|
|
3943
|
+
'courtsCount'?: number;
|
|
3944
|
+
/**
|
|
3945
|
+
*
|
|
3946
|
+
* @type {number}
|
|
3947
|
+
* @memberof SportResponse
|
|
3948
|
+
*/
|
|
3949
|
+
'bookingsCount'?: number;
|
|
3686
3950
|
/**
|
|
3687
3951
|
*
|
|
3688
3952
|
* @type {string}
|
|
@@ -4471,12 +4735,49 @@ export interface UpdateUserRequestBody {
|
|
|
4471
4735
|
* @memberof UpdateUserRequestBody
|
|
4472
4736
|
*/
|
|
4473
4737
|
'profilePicture'?: string;
|
|
4738
|
+
/**
|
|
4739
|
+
*
|
|
4740
|
+
* @type {Array<UpdateUserRequestBodyLevelBySportsInner>}
|
|
4741
|
+
* @memberof UpdateUserRequestBody
|
|
4742
|
+
*/
|
|
4743
|
+
'levelBySports'?: Array<UpdateUserRequestBodyLevelBySportsInner>;
|
|
4744
|
+
/**
|
|
4745
|
+
*
|
|
4746
|
+
* @type {boolean}
|
|
4747
|
+
* @memberof UpdateUserRequestBody
|
|
4748
|
+
*/
|
|
4749
|
+
'isProfileVisible'?: boolean;
|
|
4474
4750
|
/**
|
|
4475
4751
|
*
|
|
4476
4752
|
* @type {string}
|
|
4477
4753
|
* @memberof UpdateUserRequestBody
|
|
4478
4754
|
*/
|
|
4479
|
-
'
|
|
4755
|
+
'description'?: string;
|
|
4756
|
+
/**
|
|
4757
|
+
*
|
|
4758
|
+
* @type {string}
|
|
4759
|
+
* @memberof UpdateUserRequestBody
|
|
4760
|
+
*/
|
|
4761
|
+
'city'?: string;
|
|
4762
|
+
}
|
|
4763
|
+
/**
|
|
4764
|
+
*
|
|
4765
|
+
* @export
|
|
4766
|
+
* @interface UpdateUserRequestBodyLevelBySportsInner
|
|
4767
|
+
*/
|
|
4768
|
+
export interface UpdateUserRequestBodyLevelBySportsInner {
|
|
4769
|
+
/**
|
|
4770
|
+
*
|
|
4771
|
+
* @type {string}
|
|
4772
|
+
* @memberof UpdateUserRequestBodyLevelBySportsInner
|
|
4773
|
+
*/
|
|
4774
|
+
'sport': string;
|
|
4775
|
+
/**
|
|
4776
|
+
*
|
|
4777
|
+
* @type {string}
|
|
4778
|
+
* @memberof UpdateUserRequestBodyLevelBySportsInner
|
|
4779
|
+
*/
|
|
4780
|
+
'level': string;
|
|
4480
4781
|
}
|
|
4481
4782
|
/**
|
|
4482
4783
|
*
|
|
@@ -4551,6 +4852,113 @@ export interface User {
|
|
|
4551
4852
|
*/
|
|
4552
4853
|
'isAdmin'?: boolean;
|
|
4553
4854
|
}
|
|
4855
|
+
/**
|
|
4856
|
+
*
|
|
4857
|
+
* @export
|
|
4858
|
+
* @interface UserBookingItem
|
|
4859
|
+
*/
|
|
4860
|
+
export interface UserBookingItem {
|
|
4861
|
+
/**
|
|
4862
|
+
* ID de la réservation
|
|
4863
|
+
* @type {string}
|
|
4864
|
+
* @memberof UserBookingItem
|
|
4865
|
+
*/
|
|
4866
|
+
'id'?: string;
|
|
4867
|
+
/**
|
|
4868
|
+
* URL de l\'image du club
|
|
4869
|
+
* @type {string}
|
|
4870
|
+
* @memberof UserBookingItem
|
|
4871
|
+
*/
|
|
4872
|
+
'clubPicture'?: string;
|
|
4873
|
+
/**
|
|
4874
|
+
* Nom du terrain
|
|
4875
|
+
* @type {string}
|
|
4876
|
+
* @memberof UserBookingItem
|
|
4877
|
+
*/
|
|
4878
|
+
'courtName'?: string;
|
|
4879
|
+
/**
|
|
4880
|
+
* Nom du sport
|
|
4881
|
+
* @type {string}
|
|
4882
|
+
* @memberof UserBookingItem
|
|
4883
|
+
*/
|
|
4884
|
+
'sportName'?: string;
|
|
4885
|
+
/**
|
|
4886
|
+
* Date de début de la réservation
|
|
4887
|
+
* @type {string}
|
|
4888
|
+
* @memberof UserBookingItem
|
|
4889
|
+
*/
|
|
4890
|
+
'startDate'?: string;
|
|
4891
|
+
/**
|
|
4892
|
+
* Statut de paiement de l\'utilisateur
|
|
4893
|
+
* @type {string}
|
|
4894
|
+
* @memberof UserBookingItem
|
|
4895
|
+
*/
|
|
4896
|
+
'myPaymentStatus'?: UserBookingItemMyPaymentStatusEnum;
|
|
4897
|
+
/**
|
|
4898
|
+
* Statut de la réservation
|
|
4899
|
+
* @type {string}
|
|
4900
|
+
* @memberof UserBookingItem
|
|
4901
|
+
*/
|
|
4902
|
+
'bookingStatus'?: UserBookingItemBookingStatusEnum;
|
|
4903
|
+
/**
|
|
4904
|
+
* Liste des noms des joueurs
|
|
4905
|
+
* @type {Array<string>}
|
|
4906
|
+
* @memberof UserBookingItem
|
|
4907
|
+
*/
|
|
4908
|
+
'playersName'?: Array<string>;
|
|
4909
|
+
/**
|
|
4910
|
+
* Montant que l\'utilisateur doit payer
|
|
4911
|
+
* @type {number}
|
|
4912
|
+
* @memberof UserBookingItem
|
|
4913
|
+
*/
|
|
4914
|
+
'myAmountToPay'?: number;
|
|
4915
|
+
/**
|
|
4916
|
+
* Montant total de la réservation
|
|
4917
|
+
* @type {number}
|
|
4918
|
+
* @memberof UserBookingItem
|
|
4919
|
+
*/
|
|
4920
|
+
'totalAmount'?: number;
|
|
4921
|
+
/**
|
|
4922
|
+
* Date limite avant annulation
|
|
4923
|
+
* @type {string}
|
|
4924
|
+
* @memberof UserBookingItem
|
|
4925
|
+
*/
|
|
4926
|
+
'timeBeforeCancel'?: string;
|
|
4927
|
+
/**
|
|
4928
|
+
* Adresse du club
|
|
4929
|
+
* @type {string}
|
|
4930
|
+
* @memberof UserBookingItem
|
|
4931
|
+
*/
|
|
4932
|
+
'clubAddress'?: string;
|
|
4933
|
+
/**
|
|
4934
|
+
* Historique de la réservation
|
|
4935
|
+
* @type {string}
|
|
4936
|
+
* @memberof UserBookingItem
|
|
4937
|
+
*/
|
|
4938
|
+
'bookingHistory'?: string;
|
|
4939
|
+
/**
|
|
4940
|
+
* Statut de paiement pour chaque joueur
|
|
4941
|
+
* @type {Array<PaymentStatus>}
|
|
4942
|
+
* @memberof UserBookingItem
|
|
4943
|
+
*/
|
|
4944
|
+
'paymentStatus'?: Array<PaymentStatus>;
|
|
4945
|
+
}
|
|
4946
|
+
|
|
4947
|
+
export const UserBookingItemMyPaymentStatusEnum = {
|
|
4948
|
+
Paid: 'paid',
|
|
4949
|
+
Pending: 'pending',
|
|
4950
|
+
Failed: 'failed'
|
|
4951
|
+
} as const;
|
|
4952
|
+
|
|
4953
|
+
export type UserBookingItemMyPaymentStatusEnum = typeof UserBookingItemMyPaymentStatusEnum[keyof typeof UserBookingItemMyPaymentStatusEnum];
|
|
4954
|
+
export const UserBookingItemBookingStatusEnum = {
|
|
4955
|
+
Confirmed: 'confirmed',
|
|
4956
|
+
Cancelled: 'cancelled',
|
|
4957
|
+
Pending: 'pending'
|
|
4958
|
+
} as const;
|
|
4959
|
+
|
|
4960
|
+
export type UserBookingItemBookingStatusEnum = typeof UserBookingItemBookingStatusEnum[keyof typeof UserBookingItemBookingStatusEnum];
|
|
4961
|
+
|
|
4554
4962
|
/**
|
|
4555
4963
|
*
|
|
4556
4964
|
* @export
|
|
@@ -4689,105 +5097,336 @@ export interface UserResponse {
|
|
|
4689
5097
|
'updatedAt'?: string;
|
|
4690
5098
|
}
|
|
4691
5099
|
/**
|
|
4692
|
-
*
|
|
5100
|
+
*
|
|
5101
|
+
* @export
|
|
5102
|
+
* @interface UserStaffResponse
|
|
5103
|
+
*/
|
|
5104
|
+
export interface UserStaffResponse {
|
|
5105
|
+
/**
|
|
5106
|
+
*
|
|
5107
|
+
* @type {string}
|
|
5108
|
+
* @memberof UserStaffResponse
|
|
5109
|
+
*/
|
|
5110
|
+
'id'?: string;
|
|
5111
|
+
/**
|
|
5112
|
+
*
|
|
5113
|
+
* @type {string}
|
|
5114
|
+
* @memberof UserStaffResponse
|
|
5115
|
+
*/
|
|
5116
|
+
'firstName'?: string;
|
|
5117
|
+
/**
|
|
5118
|
+
*
|
|
5119
|
+
* @type {string}
|
|
5120
|
+
* @memberof UserStaffResponse
|
|
5121
|
+
*/
|
|
5122
|
+
'lastName'?: string;
|
|
5123
|
+
/**
|
|
5124
|
+
*
|
|
5125
|
+
* @type {string}
|
|
5126
|
+
* @memberof UserStaffResponse
|
|
5127
|
+
*/
|
|
5128
|
+
'gender'?: string;
|
|
5129
|
+
/**
|
|
5130
|
+
*
|
|
5131
|
+
* @type {string}
|
|
5132
|
+
* @memberof UserStaffResponse
|
|
5133
|
+
*/
|
|
5134
|
+
'email'?: string;
|
|
5135
|
+
/**
|
|
5136
|
+
*
|
|
5137
|
+
* @type {string}
|
|
5138
|
+
* @memberof UserStaffResponse
|
|
5139
|
+
*/
|
|
5140
|
+
'profilePicture'?: string | null;
|
|
5141
|
+
/**
|
|
5142
|
+
*
|
|
5143
|
+
* @type {boolean}
|
|
5144
|
+
* @memberof UserStaffResponse
|
|
5145
|
+
*/
|
|
5146
|
+
'isAccountVerified'?: boolean;
|
|
5147
|
+
/**
|
|
5148
|
+
*
|
|
5149
|
+
* @type {boolean}
|
|
5150
|
+
* @memberof UserStaffResponse
|
|
5151
|
+
*/
|
|
5152
|
+
'isProfileVisible'?: boolean;
|
|
5153
|
+
/**
|
|
5154
|
+
*
|
|
5155
|
+
* @type {boolean}
|
|
5156
|
+
* @memberof UserStaffResponse
|
|
5157
|
+
*/
|
|
5158
|
+
'isSubscribedToClub'?: boolean;
|
|
5159
|
+
}
|
|
5160
|
+
/**
|
|
5161
|
+
*
|
|
5162
|
+
* @export
|
|
5163
|
+
* @interface YearlyTurnoverResponse
|
|
5164
|
+
*/
|
|
5165
|
+
export interface YearlyTurnoverResponse {
|
|
5166
|
+
/**
|
|
5167
|
+
*
|
|
5168
|
+
* @type {number}
|
|
5169
|
+
* @memberof YearlyTurnoverResponse
|
|
5170
|
+
*/
|
|
5171
|
+
'year'?: number;
|
|
5172
|
+
/**
|
|
5173
|
+
*
|
|
5174
|
+
* @type {number}
|
|
5175
|
+
* @memberof YearlyTurnoverResponse
|
|
5176
|
+
*/
|
|
5177
|
+
'totalTurnover'?: number;
|
|
5178
|
+
/**
|
|
5179
|
+
*
|
|
5180
|
+
* @type {number}
|
|
5181
|
+
* @memberof YearlyTurnoverResponse
|
|
5182
|
+
*/
|
|
5183
|
+
'totalInvoices'?: number;
|
|
5184
|
+
/**
|
|
5185
|
+
*
|
|
5186
|
+
* @type {Array<YearlyTurnoverResponseMonthlyBreakdownInner>}
|
|
5187
|
+
* @memberof YearlyTurnoverResponse
|
|
5188
|
+
*/
|
|
5189
|
+
'monthlyBreakdown'?: Array<YearlyTurnoverResponseMonthlyBreakdownInner>;
|
|
5190
|
+
}
|
|
5191
|
+
/**
|
|
5192
|
+
*
|
|
5193
|
+
* @export
|
|
5194
|
+
* @interface YearlyTurnoverResponseMonthlyBreakdownInner
|
|
5195
|
+
*/
|
|
5196
|
+
export interface YearlyTurnoverResponseMonthlyBreakdownInner {
|
|
5197
|
+
/**
|
|
5198
|
+
*
|
|
5199
|
+
* @type {number}
|
|
5200
|
+
* @memberof YearlyTurnoverResponseMonthlyBreakdownInner
|
|
5201
|
+
*/
|
|
5202
|
+
'month'?: number;
|
|
5203
|
+
/**
|
|
5204
|
+
*
|
|
5205
|
+
* @type {number}
|
|
5206
|
+
* @memberof YearlyTurnoverResponseMonthlyBreakdownInner
|
|
5207
|
+
*/
|
|
5208
|
+
'monthlyTurnover'?: number;
|
|
5209
|
+
/**
|
|
5210
|
+
*
|
|
5211
|
+
* @type {number}
|
|
5212
|
+
* @memberof YearlyTurnoverResponseMonthlyBreakdownInner
|
|
5213
|
+
*/
|
|
5214
|
+
'invoiceCount'?: number;
|
|
5215
|
+
}
|
|
5216
|
+
|
|
5217
|
+
/**
|
|
5218
|
+
* BookingsApi - axios parameter creator
|
|
5219
|
+
* @export
|
|
5220
|
+
*/
|
|
5221
|
+
export const BookingsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
5222
|
+
return {
|
|
5223
|
+
/**
|
|
5224
|
+
* Retourne une liste de réservations pour une date donnée, avec les joueurs et terrains (incluant le sport) peuplés.
|
|
5225
|
+
* @summary Récupérer les réservations journalières
|
|
5226
|
+
* @param {string} date Date au format YYYY-MM-DD
|
|
5227
|
+
* @param {*} [options] Override http request option.
|
|
5228
|
+
* @throws {RequiredError}
|
|
5229
|
+
*/
|
|
5230
|
+
bookingsStaffDailyDateGet: async (date: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5231
|
+
// verify required parameter 'date' is not null or undefined
|
|
5232
|
+
assertParamExists('bookingsStaffDailyDateGet', 'date', date)
|
|
5233
|
+
const localVarPath = `/bookings/staff/daily/{date}`
|
|
5234
|
+
.replace(`{${"date"}}`, encodeURIComponent(String(date)));
|
|
5235
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5236
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5237
|
+
let baseOptions;
|
|
5238
|
+
if (configuration) {
|
|
5239
|
+
baseOptions = configuration.baseOptions;
|
|
5240
|
+
}
|
|
5241
|
+
|
|
5242
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
5243
|
+
const localVarHeaderParameter = {} as any;
|
|
5244
|
+
const localVarQueryParameter = {} as any;
|
|
5245
|
+
|
|
5246
|
+
// authentication bearerAuth required
|
|
5247
|
+
// http bearer authentication required
|
|
5248
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
5249
|
+
|
|
5250
|
+
|
|
5251
|
+
|
|
5252
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5253
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5254
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
5255
|
+
|
|
5256
|
+
return {
|
|
5257
|
+
url: toPathString(localVarUrlObj),
|
|
5258
|
+
options: localVarRequestOptions,
|
|
5259
|
+
};
|
|
5260
|
+
},
|
|
5261
|
+
/**
|
|
5262
|
+
* Retourne une liste de réservations pour une semaine donnée, avec les joueurs et terrains (incluant le sport) peuplés.
|
|
5263
|
+
* @summary Récupérer les réservations hebdomadaires
|
|
5264
|
+
* @param {string} weekId ID de la semaine
|
|
5265
|
+
* @param {*} [options] Override http request option.
|
|
5266
|
+
* @throws {RequiredError}
|
|
5267
|
+
*/
|
|
5268
|
+
bookingsStaffWeeklyWeekIdGet: async (weekId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5269
|
+
// verify required parameter 'weekId' is not null or undefined
|
|
5270
|
+
assertParamExists('bookingsStaffWeeklyWeekIdGet', 'weekId', weekId)
|
|
5271
|
+
const localVarPath = `/bookings/staff/weekly/{weekId}`
|
|
5272
|
+
.replace(`{${"weekId"}}`, encodeURIComponent(String(weekId)));
|
|
5273
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5274
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5275
|
+
let baseOptions;
|
|
5276
|
+
if (configuration) {
|
|
5277
|
+
baseOptions = configuration.baseOptions;
|
|
5278
|
+
}
|
|
5279
|
+
|
|
5280
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
5281
|
+
const localVarHeaderParameter = {} as any;
|
|
5282
|
+
const localVarQueryParameter = {} as any;
|
|
5283
|
+
|
|
5284
|
+
// authentication bearerAuth required
|
|
5285
|
+
// http bearer authentication required
|
|
5286
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
5287
|
+
|
|
5288
|
+
|
|
5289
|
+
|
|
5290
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5291
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5292
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
5293
|
+
|
|
5294
|
+
return {
|
|
5295
|
+
url: toPathString(localVarUrlObj),
|
|
5296
|
+
options: localVarRequestOptions,
|
|
5297
|
+
};
|
|
5298
|
+
},
|
|
5299
|
+
}
|
|
5300
|
+
};
|
|
5301
|
+
|
|
5302
|
+
/**
|
|
5303
|
+
* BookingsApi - functional programming interface
|
|
4693
5304
|
* @export
|
|
4694
|
-
* @interface UserStaffResponse
|
|
4695
5305
|
*/
|
|
4696
|
-
export
|
|
4697
|
-
|
|
4698
|
-
|
|
4699
|
-
|
|
4700
|
-
|
|
4701
|
-
|
|
4702
|
-
|
|
4703
|
-
|
|
4704
|
-
|
|
4705
|
-
|
|
4706
|
-
|
|
4707
|
-
|
|
4708
|
-
|
|
4709
|
-
|
|
4710
|
-
|
|
4711
|
-
|
|
4712
|
-
|
|
4713
|
-
|
|
4714
|
-
|
|
5306
|
+
export const BookingsApiFp = function(configuration?: Configuration) {
|
|
5307
|
+
const localVarAxiosParamCreator = BookingsApiAxiosParamCreator(configuration)
|
|
5308
|
+
return {
|
|
5309
|
+
/**
|
|
5310
|
+
* Retourne une liste de réservations pour une date donnée, avec les joueurs et terrains (incluant le sport) peuplés.
|
|
5311
|
+
* @summary Récupérer les réservations journalières
|
|
5312
|
+
* @param {string} date Date au format YYYY-MM-DD
|
|
5313
|
+
* @param {*} [options] Override http request option.
|
|
5314
|
+
* @throws {RequiredError}
|
|
5315
|
+
*/
|
|
5316
|
+
async bookingsStaffDailyDateGet(date: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BookingsStaffWeeklyWeekIdGet200Response>> {
|
|
5317
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.bookingsStaffDailyDateGet(date, options);
|
|
5318
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5319
|
+
const localVarOperationServerBasePath = operationServerMap['BookingsApi.bookingsStaffDailyDateGet']?.[localVarOperationServerIndex]?.url;
|
|
5320
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5321
|
+
},
|
|
5322
|
+
/**
|
|
5323
|
+
* Retourne une liste de réservations pour une semaine donnée, avec les joueurs et terrains (incluant le sport) peuplés.
|
|
5324
|
+
* @summary Récupérer les réservations hebdomadaires
|
|
5325
|
+
* @param {string} weekId ID de la semaine
|
|
5326
|
+
* @param {*} [options] Override http request option.
|
|
5327
|
+
* @throws {RequiredError}
|
|
5328
|
+
*/
|
|
5329
|
+
async bookingsStaffWeeklyWeekIdGet(weekId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BookingsStaffWeeklyWeekIdGet200Response>> {
|
|
5330
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.bookingsStaffWeeklyWeekIdGet(weekId, options);
|
|
5331
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5332
|
+
const localVarOperationServerBasePath = operationServerMap['BookingsApi.bookingsStaffWeeklyWeekIdGet']?.[localVarOperationServerIndex]?.url;
|
|
5333
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5334
|
+
},
|
|
5335
|
+
}
|
|
5336
|
+
};
|
|
5337
|
+
|
|
5338
|
+
/**
|
|
5339
|
+
* BookingsApi - factory interface
|
|
5340
|
+
* @export
|
|
5341
|
+
*/
|
|
5342
|
+
export const BookingsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
5343
|
+
const localVarFp = BookingsApiFp(configuration)
|
|
5344
|
+
return {
|
|
5345
|
+
/**
|
|
5346
|
+
* Retourne une liste de réservations pour une date donnée, avec les joueurs et terrains (incluant le sport) peuplés.
|
|
5347
|
+
* @summary Récupérer les réservations journalières
|
|
5348
|
+
* @param {BookingsApiBookingsStaffDailyDateGetRequest} requestParameters Request parameters.
|
|
5349
|
+
* @param {*} [options] Override http request option.
|
|
5350
|
+
* @throws {RequiredError}
|
|
5351
|
+
*/
|
|
5352
|
+
bookingsStaffDailyDateGet(requestParameters: BookingsApiBookingsStaffDailyDateGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<BookingsStaffWeeklyWeekIdGet200Response> {
|
|
5353
|
+
return localVarFp.bookingsStaffDailyDateGet(requestParameters.date, options).then((request) => request(axios, basePath));
|
|
5354
|
+
},
|
|
5355
|
+
/**
|
|
5356
|
+
* Retourne une liste de réservations pour une semaine donnée, avec les joueurs et terrains (incluant le sport) peuplés.
|
|
5357
|
+
* @summary Récupérer les réservations hebdomadaires
|
|
5358
|
+
* @param {BookingsApiBookingsStaffWeeklyWeekIdGetRequest} requestParameters Request parameters.
|
|
5359
|
+
* @param {*} [options] Override http request option.
|
|
5360
|
+
* @throws {RequiredError}
|
|
5361
|
+
*/
|
|
5362
|
+
bookingsStaffWeeklyWeekIdGet(requestParameters: BookingsApiBookingsStaffWeeklyWeekIdGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<BookingsStaffWeeklyWeekIdGet200Response> {
|
|
5363
|
+
return localVarFp.bookingsStaffWeeklyWeekIdGet(requestParameters.weekId, options).then((request) => request(axios, basePath));
|
|
5364
|
+
},
|
|
5365
|
+
};
|
|
5366
|
+
};
|
|
5367
|
+
|
|
5368
|
+
/**
|
|
5369
|
+
* Request parameters for bookingsStaffDailyDateGet operation in BookingsApi.
|
|
5370
|
+
* @export
|
|
5371
|
+
* @interface BookingsApiBookingsStaffDailyDateGetRequest
|
|
5372
|
+
*/
|
|
5373
|
+
export interface BookingsApiBookingsStaffDailyDateGetRequest {
|
|
4715
5374
|
/**
|
|
4716
|
-
*
|
|
5375
|
+
* Date au format YYYY-MM-DD
|
|
4717
5376
|
* @type {string}
|
|
4718
|
-
* @memberof
|
|
4719
|
-
*/
|
|
4720
|
-
'profilePicture'?: string | null;
|
|
4721
|
-
/**
|
|
4722
|
-
*
|
|
4723
|
-
* @type {boolean}
|
|
4724
|
-
* @memberof UserStaffResponse
|
|
4725
|
-
*/
|
|
4726
|
-
'isAccountVerified'?: boolean;
|
|
4727
|
-
/**
|
|
4728
|
-
*
|
|
4729
|
-
* @type {boolean}
|
|
4730
|
-
* @memberof UserStaffResponse
|
|
5377
|
+
* @memberof BookingsApiBookingsStaffDailyDateGet
|
|
4731
5378
|
*/
|
|
4732
|
-
|
|
5379
|
+
readonly date: string
|
|
4733
5380
|
}
|
|
5381
|
+
|
|
4734
5382
|
/**
|
|
4735
|
-
*
|
|
5383
|
+
* Request parameters for bookingsStaffWeeklyWeekIdGet operation in BookingsApi.
|
|
4736
5384
|
* @export
|
|
4737
|
-
* @interface
|
|
5385
|
+
* @interface BookingsApiBookingsStaffWeeklyWeekIdGetRequest
|
|
4738
5386
|
*/
|
|
4739
|
-
export interface
|
|
4740
|
-
/**
|
|
4741
|
-
*
|
|
4742
|
-
* @type {number}
|
|
4743
|
-
* @memberof YearlyTurnoverResponse
|
|
4744
|
-
*/
|
|
4745
|
-
'year'?: number;
|
|
4746
|
-
/**
|
|
4747
|
-
*
|
|
4748
|
-
* @type {number}
|
|
4749
|
-
* @memberof YearlyTurnoverResponse
|
|
4750
|
-
*/
|
|
4751
|
-
'totalTurnover'?: number;
|
|
4752
|
-
/**
|
|
4753
|
-
*
|
|
4754
|
-
* @type {number}
|
|
4755
|
-
* @memberof YearlyTurnoverResponse
|
|
4756
|
-
*/
|
|
4757
|
-
'totalInvoices'?: number;
|
|
5387
|
+
export interface BookingsApiBookingsStaffWeeklyWeekIdGetRequest {
|
|
4758
5388
|
/**
|
|
4759
|
-
*
|
|
4760
|
-
* @type {
|
|
4761
|
-
* @memberof
|
|
5389
|
+
* ID de la semaine
|
|
5390
|
+
* @type {string}
|
|
5391
|
+
* @memberof BookingsApiBookingsStaffWeeklyWeekIdGet
|
|
4762
5392
|
*/
|
|
4763
|
-
|
|
5393
|
+
readonly weekId: string
|
|
4764
5394
|
}
|
|
5395
|
+
|
|
4765
5396
|
/**
|
|
4766
|
-
*
|
|
5397
|
+
* BookingsApi - object-oriented interface
|
|
4767
5398
|
* @export
|
|
4768
|
-
* @
|
|
5399
|
+
* @class BookingsApi
|
|
5400
|
+
* @extends {BaseAPI}
|
|
4769
5401
|
*/
|
|
4770
|
-
export
|
|
4771
|
-
/**
|
|
4772
|
-
*
|
|
4773
|
-
* @type {number}
|
|
4774
|
-
* @memberof YearlyTurnoverResponseMonthlyBreakdownInner
|
|
4775
|
-
*/
|
|
4776
|
-
'month'?: number;
|
|
5402
|
+
export class BookingsApi extends BaseAPI {
|
|
4777
5403
|
/**
|
|
4778
|
-
*
|
|
4779
|
-
* @
|
|
4780
|
-
* @
|
|
5404
|
+
* Retourne une liste de réservations pour une date donnée, avec les joueurs et terrains (incluant le sport) peuplés.
|
|
5405
|
+
* @summary Récupérer les réservations journalières
|
|
5406
|
+
* @param {BookingsApiBookingsStaffDailyDateGetRequest} requestParameters Request parameters.
|
|
5407
|
+
* @param {*} [options] Override http request option.
|
|
5408
|
+
* @throws {RequiredError}
|
|
5409
|
+
* @memberof BookingsApi
|
|
4781
5410
|
*/
|
|
4782
|
-
|
|
5411
|
+
public bookingsStaffDailyDateGet(requestParameters: BookingsApiBookingsStaffDailyDateGetRequest, options?: RawAxiosRequestConfig) {
|
|
5412
|
+
return BookingsApiFp(this.configuration).bookingsStaffDailyDateGet(requestParameters.date, options).then((request) => request(this.axios, this.basePath));
|
|
5413
|
+
}
|
|
5414
|
+
|
|
4783
5415
|
/**
|
|
4784
|
-
*
|
|
4785
|
-
* @
|
|
4786
|
-
* @
|
|
5416
|
+
* Retourne une liste de réservations pour une semaine donnée, avec les joueurs et terrains (incluant le sport) peuplés.
|
|
5417
|
+
* @summary Récupérer les réservations hebdomadaires
|
|
5418
|
+
* @param {BookingsApiBookingsStaffWeeklyWeekIdGetRequest} requestParameters Request parameters.
|
|
5419
|
+
* @param {*} [options] Override http request option.
|
|
5420
|
+
* @throws {RequiredError}
|
|
5421
|
+
* @memberof BookingsApi
|
|
4787
5422
|
*/
|
|
4788
|
-
|
|
5423
|
+
public bookingsStaffWeeklyWeekIdGet(requestParameters: BookingsApiBookingsStaffWeeklyWeekIdGetRequest, options?: RawAxiosRequestConfig) {
|
|
5424
|
+
return BookingsApiFp(this.configuration).bookingsStaffWeeklyWeekIdGet(requestParameters.weekId, options).then((request) => request(this.axios, this.basePath));
|
|
5425
|
+
}
|
|
4789
5426
|
}
|
|
4790
5427
|
|
|
5428
|
+
|
|
5429
|
+
|
|
4791
5430
|
/**
|
|
4792
5431
|
* ClubAnalyticsApi - axios parameter creator
|
|
4793
5432
|
* @export
|
|
@@ -6057,7 +6696,7 @@ export const ManagerClubCourtsApiFp = function(configuration?: Configuration) {
|
|
|
6057
6696
|
* @param {*} [options] Override http request option.
|
|
6058
6697
|
* @throws {RequiredError}
|
|
6059
6698
|
*/
|
|
6060
|
-
async getCourtsByClub(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
6699
|
+
async getCourtsByClub(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CourtsWithNameResponse>> {
|
|
6061
6700
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getCourtsByClub(options);
|
|
6062
6701
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6063
6702
|
const localVarOperationServerBasePath = operationServerMap['ManagerClubCourtsApi.getCourtsByClub']?.[localVarOperationServerIndex]?.url;
|
|
@@ -6113,7 +6752,7 @@ export const ManagerClubCourtsApiFactory = function (configuration?: Configurati
|
|
|
6113
6752
|
* @param {*} [options] Override http request option.
|
|
6114
6753
|
* @throws {RequiredError}
|
|
6115
6754
|
*/
|
|
6116
|
-
getCourtsByClub(options?: RawAxiosRequestConfig): AxiosPromise<
|
|
6755
|
+
getCourtsByClub(options?: RawAxiosRequestConfig): AxiosPromise<CourtsWithNameResponse> {
|
|
6117
6756
|
return localVarFp.getCourtsByClub(options).then((request) => request(axios, basePath));
|
|
6118
6757
|
},
|
|
6119
6758
|
/**
|
|
@@ -10076,6 +10715,40 @@ export const UserBookingsApiAxiosParamCreator = function (configuration?: Config
|
|
|
10076
10715
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
10077
10716
|
localVarRequestOptions.data = serializeDataIfNeeded(createBookingRequest, localVarRequestOptions, configuration)
|
|
10078
10717
|
|
|
10718
|
+
return {
|
|
10719
|
+
url: toPathString(localVarUrlObj),
|
|
10720
|
+
options: localVarRequestOptions,
|
|
10721
|
+
};
|
|
10722
|
+
},
|
|
10723
|
+
/**
|
|
10724
|
+
*
|
|
10725
|
+
* @summary Récupère l\'historique des réservations de l\'utilisateur connecté
|
|
10726
|
+
* @param {*} [options] Override http request option.
|
|
10727
|
+
* @throws {RequiredError}
|
|
10728
|
+
*/
|
|
10729
|
+
getBookingHistory: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
10730
|
+
const localVarPath = `/api/users/me/booking-history`;
|
|
10731
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10732
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
10733
|
+
let baseOptions;
|
|
10734
|
+
if (configuration) {
|
|
10735
|
+
baseOptions = configuration.baseOptions;
|
|
10736
|
+
}
|
|
10737
|
+
|
|
10738
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
10739
|
+
const localVarHeaderParameter = {} as any;
|
|
10740
|
+
const localVarQueryParameter = {} as any;
|
|
10741
|
+
|
|
10742
|
+
// authentication bearerAuth required
|
|
10743
|
+
// http bearer authentication required
|
|
10744
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
10745
|
+
|
|
10746
|
+
|
|
10747
|
+
|
|
10748
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
10749
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10750
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
10751
|
+
|
|
10079
10752
|
return {
|
|
10080
10753
|
url: toPathString(localVarUrlObj),
|
|
10081
10754
|
options: localVarRequestOptions,
|
|
@@ -10117,6 +10790,18 @@ export const UserBookingsApiFp = function(configuration?: Configuration) {
|
|
|
10117
10790
|
const localVarOperationServerBasePath = operationServerMap['UserBookingsApi.createBooking']?.[localVarOperationServerIndex]?.url;
|
|
10118
10791
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
10119
10792
|
},
|
|
10793
|
+
/**
|
|
10794
|
+
*
|
|
10795
|
+
* @summary Récupère l\'historique des réservations de l\'utilisateur connecté
|
|
10796
|
+
* @param {*} [options] Override http request option.
|
|
10797
|
+
* @throws {RequiredError}
|
|
10798
|
+
*/
|
|
10799
|
+
async getBookingHistory(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<UserBookingItem>>> {
|
|
10800
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingHistory(options);
|
|
10801
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
10802
|
+
const localVarOperationServerBasePath = operationServerMap['UserBookingsApi.getBookingHistory']?.[localVarOperationServerIndex]?.url;
|
|
10803
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
10804
|
+
},
|
|
10120
10805
|
}
|
|
10121
10806
|
};
|
|
10122
10807
|
|
|
@@ -10147,6 +10832,15 @@ export const UserBookingsApiFactory = function (configuration?: Configuration, b
|
|
|
10147
10832
|
createBooking(requestParameters: UserBookingsApiCreateBookingRequest, options?: RawAxiosRequestConfig): AxiosPromise<BookingResponse> {
|
|
10148
10833
|
return localVarFp.createBooking(requestParameters.createBookingRequest, options).then((request) => request(axios, basePath));
|
|
10149
10834
|
},
|
|
10835
|
+
/**
|
|
10836
|
+
*
|
|
10837
|
+
* @summary Récupère l\'historique des réservations de l\'utilisateur connecté
|
|
10838
|
+
* @param {*} [options] Override http request option.
|
|
10839
|
+
* @throws {RequiredError}
|
|
10840
|
+
*/
|
|
10841
|
+
getBookingHistory(options?: RawAxiosRequestConfig): AxiosPromise<Array<UserBookingItem>> {
|
|
10842
|
+
return localVarFp.getBookingHistory(options).then((request) => request(axios, basePath));
|
|
10843
|
+
},
|
|
10150
10844
|
};
|
|
10151
10845
|
};
|
|
10152
10846
|
|
|
@@ -10208,6 +10902,17 @@ export class UserBookingsApi extends BaseAPI {
|
|
|
10208
10902
|
public createBooking(requestParameters: UserBookingsApiCreateBookingRequest, options?: RawAxiosRequestConfig) {
|
|
10209
10903
|
return UserBookingsApiFp(this.configuration).createBooking(requestParameters.createBookingRequest, options).then((request) => request(this.axios, this.basePath));
|
|
10210
10904
|
}
|
|
10905
|
+
|
|
10906
|
+
/**
|
|
10907
|
+
*
|
|
10908
|
+
* @summary Récupère l\'historique des réservations de l\'utilisateur connecté
|
|
10909
|
+
* @param {*} [options] Override http request option.
|
|
10910
|
+
* @throws {RequiredError}
|
|
10911
|
+
* @memberof UserBookingsApi
|
|
10912
|
+
*/
|
|
10913
|
+
public getBookingHistory(options?: RawAxiosRequestConfig) {
|
|
10914
|
+
return UserBookingsApiFp(this.configuration).getBookingHistory(options).then((request) => request(this.axios, this.basePath));
|
|
10915
|
+
}
|
|
10211
10916
|
}
|
|
10212
10917
|
|
|
10213
10918
|
|
|
@@ -11627,6 +12332,44 @@ export const UserProfileApiAxiosParamCreator = function (configuration?: Configu
|
|
|
11627
12332
|
|
|
11628
12333
|
|
|
11629
12334
|
|
|
12335
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12336
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12337
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
12338
|
+
|
|
12339
|
+
return {
|
|
12340
|
+
url: toPathString(localVarUrlObj),
|
|
12341
|
+
options: localVarRequestOptions,
|
|
12342
|
+
};
|
|
12343
|
+
},
|
|
12344
|
+
/**
|
|
12345
|
+
*
|
|
12346
|
+
* @summary Récupère le detéail d\'une réservation
|
|
12347
|
+
* @param {string} bookingId ID de la réservation
|
|
12348
|
+
* @param {*} [options] Override http request option.
|
|
12349
|
+
* @throws {RequiredError}
|
|
12350
|
+
*/
|
|
12351
|
+
getUserBookingDetail: async (bookingId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
12352
|
+
// verify required parameter 'bookingId' is not null or undefined
|
|
12353
|
+
assertParamExists('getUserBookingDetail', 'bookingId', bookingId)
|
|
12354
|
+
const localVarPath = `/api/users/me/booking-detail/{bookingId}`
|
|
12355
|
+
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
12356
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12357
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12358
|
+
let baseOptions;
|
|
12359
|
+
if (configuration) {
|
|
12360
|
+
baseOptions = configuration.baseOptions;
|
|
12361
|
+
}
|
|
12362
|
+
|
|
12363
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
12364
|
+
const localVarHeaderParameter = {} as any;
|
|
12365
|
+
const localVarQueryParameter = {} as any;
|
|
12366
|
+
|
|
12367
|
+
// authentication bearerAuth required
|
|
12368
|
+
// http bearer authentication required
|
|
12369
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
12370
|
+
|
|
12371
|
+
|
|
12372
|
+
|
|
11630
12373
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
11631
12374
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11632
12375
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -12269,6 +13012,19 @@ export const UserProfileApiFp = function(configuration?: Configuration) {
|
|
|
12269
13012
|
const localVarOperationServerBasePath = operationServerMap['UserProfileApi.getPublicUserProfile']?.[localVarOperationServerIndex]?.url;
|
|
12270
13013
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12271
13014
|
},
|
|
13015
|
+
/**
|
|
13016
|
+
*
|
|
13017
|
+
* @summary Récupère le detéail d\'une réservation
|
|
13018
|
+
* @param {string} bookingId ID de la réservation
|
|
13019
|
+
* @param {*} [options] Override http request option.
|
|
13020
|
+
* @throws {RequiredError}
|
|
13021
|
+
*/
|
|
13022
|
+
async getUserBookingDetail(bookingId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserBookingItem>> {
|
|
13023
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getUserBookingDetail(bookingId, options);
|
|
13024
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
13025
|
+
const localVarOperationServerBasePath = operationServerMap['UserProfileApi.getUserBookingDetail']?.[localVarOperationServerIndex]?.url;
|
|
13026
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13027
|
+
},
|
|
12272
13028
|
/**
|
|
12273
13029
|
*
|
|
12274
13030
|
* @summary Récupère toutes les réservations de l\'utilisateur connecté (triées par date de création décroissante)
|
|
@@ -12540,6 +13296,16 @@ export const UserProfileApiFactory = function (configuration?: Configuration, ba
|
|
|
12540
13296
|
getPublicUserProfile(requestParameters: UserProfileApiGetPublicUserProfileRequest, options?: RawAxiosRequestConfig): AxiosPromise<PublicClubUser> {
|
|
12541
13297
|
return localVarFp.getPublicUserProfile(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
12542
13298
|
},
|
|
13299
|
+
/**
|
|
13300
|
+
*
|
|
13301
|
+
* @summary Récupère le detéail d\'une réservation
|
|
13302
|
+
* @param {UserProfileApiGetUserBookingDetailRequest} requestParameters Request parameters.
|
|
13303
|
+
* @param {*} [options] Override http request option.
|
|
13304
|
+
* @throws {RequiredError}
|
|
13305
|
+
*/
|
|
13306
|
+
getUserBookingDetail(requestParameters: UserProfileApiGetUserBookingDetailRequest, options?: RawAxiosRequestConfig): AxiosPromise<UserBookingItem> {
|
|
13307
|
+
return localVarFp.getUserBookingDetail(requestParameters.bookingId, options).then((request) => request(axios, basePath));
|
|
13308
|
+
},
|
|
12543
13309
|
/**
|
|
12544
13310
|
*
|
|
12545
13311
|
* @summary Récupère toutes les réservations de l\'utilisateur connecté (triées par date de création décroissante)
|
|
@@ -12753,6 +13519,20 @@ export interface UserProfileApiGetPublicUserProfileRequest {
|
|
|
12753
13519
|
readonly id: string
|
|
12754
13520
|
}
|
|
12755
13521
|
|
|
13522
|
+
/**
|
|
13523
|
+
* Request parameters for getUserBookingDetail operation in UserProfileApi.
|
|
13524
|
+
* @export
|
|
13525
|
+
* @interface UserProfileApiGetUserBookingDetailRequest
|
|
13526
|
+
*/
|
|
13527
|
+
export interface UserProfileApiGetUserBookingDetailRequest {
|
|
13528
|
+
/**
|
|
13529
|
+
* ID de la réservation
|
|
13530
|
+
* @type {string}
|
|
13531
|
+
* @memberof UserProfileApiGetUserBookingDetail
|
|
13532
|
+
*/
|
|
13533
|
+
readonly bookingId: string
|
|
13534
|
+
}
|
|
13535
|
+
|
|
12756
13536
|
/**
|
|
12757
13537
|
* Request parameters for getUserBookings operation in UserProfileApi.
|
|
12758
13538
|
* @export
|
|
@@ -13008,6 +13788,18 @@ export class UserProfileApi extends BaseAPI {
|
|
|
13008
13788
|
return UserProfileApiFp(this.configuration).getPublicUserProfile(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
13009
13789
|
}
|
|
13010
13790
|
|
|
13791
|
+
/**
|
|
13792
|
+
*
|
|
13793
|
+
* @summary Récupère le detéail d\'une réservation
|
|
13794
|
+
* @param {UserProfileApiGetUserBookingDetailRequest} requestParameters Request parameters.
|
|
13795
|
+
* @param {*} [options] Override http request option.
|
|
13796
|
+
* @throws {RequiredError}
|
|
13797
|
+
* @memberof UserProfileApi
|
|
13798
|
+
*/
|
|
13799
|
+
public getUserBookingDetail(requestParameters: UserProfileApiGetUserBookingDetailRequest, options?: RawAxiosRequestConfig) {
|
|
13800
|
+
return UserProfileApiFp(this.configuration).getUserBookingDetail(requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
|
|
13801
|
+
}
|
|
13802
|
+
|
|
13011
13803
|
/**
|
|
13012
13804
|
*
|
|
13013
13805
|
* @summary Récupère toutes les réservations de l\'utilisateur connecté (triées par date de création décroissante)
|