@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.
Files changed (44) hide show
  1. package/.openapi-generator/FILES +9 -0
  2. package/README.md +14 -2
  3. package/api.ts +874 -82
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +1 -1
  7. package/dist/api.d.ts +615 -5
  8. package/dist/api.js +327 -4
  9. package/dist/base.d.ts +1 -1
  10. package/dist/base.js +1 -1
  11. package/dist/common.d.ts +1 -1
  12. package/dist/common.js +1 -1
  13. package/dist/configuration.d.ts +1 -1
  14. package/dist/configuration.js +1 -1
  15. package/dist/esm/api.d.ts +615 -5
  16. package/dist/esm/api.js +320 -1
  17. package/dist/esm/base.d.ts +1 -1
  18. package/dist/esm/base.js +1 -1
  19. package/dist/esm/common.d.ts +1 -1
  20. package/dist/esm/common.js +1 -1
  21. package/dist/esm/configuration.d.ts +1 -1
  22. package/dist/esm/configuration.js +1 -1
  23. package/dist/esm/index.d.ts +1 -1
  24. package/dist/esm/index.js +1 -1
  25. package/dist/index.d.ts +1 -1
  26. package/dist/index.js +1 -1
  27. package/docs/ActiveClub.md +2 -0
  28. package/docs/BookingHistoryResponse.md +22 -0
  29. package/docs/BookingHistoryResponseHistoryInner.md +32 -0
  30. package/docs/BookingsApi.md +113 -0
  31. package/docs/BookingsStaffWeeklyWeekIdGet200Response.md +20 -0
  32. package/docs/CourtWithNameResponse.md +46 -0
  33. package/docs/CourtsWithNameResponse.md +22 -0
  34. package/docs/ManagerClubCourtsApi.md +2 -2
  35. package/docs/PaymentStatus.md +30 -0
  36. package/docs/SportResponse.md +4 -0
  37. package/docs/UpdateUserRequestBody.md +8 -2
  38. package/docs/UpdateUserRequestBodyLevelBySportsInner.md +22 -0
  39. package/docs/UserBookingItem.md +46 -0
  40. package/docs/UserBookingsApi.md +46 -0
  41. package/docs/UserProfileApi.md +53 -0
  42. package/docs/UserStaffResponse.md +6 -0
  43. package/index.ts +1 -1
  44. package/package.json +1 -1
package/dist/api.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Pandook API
3
3
  * API for managing pickle ball games and players
4
4
  *
5
- * The version of the OpenAPI document: 1.0.32
5
+ * The version of the OpenAPI document: 1.0.34
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -31,6 +31,12 @@ export interface ActiveClub {
31
31
  * @memberof ActiveClub
32
32
  */
33
33
  'name'?: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof ActiveClub
38
+ */
39
+ 'address'?: string;
34
40
  /**
35
41
  *
36
42
  * @type {boolean}
@@ -240,6 +246,74 @@ export interface Booking {
240
246
  */
241
247
  'slotId': string;
242
248
  }
249
+ /**
250
+ *
251
+ * @export
252
+ * @interface BookingHistoryResponse
253
+ */
254
+ export interface BookingHistoryResponse {
255
+ /**
256
+ * ID de la réservation
257
+ * @type {string}
258
+ * @memberof BookingHistoryResponse
259
+ */
260
+ 'bookingId'?: string;
261
+ /**
262
+ *
263
+ * @type {Array<BookingHistoryResponseHistoryInner>}
264
+ * @memberof BookingHistoryResponse
265
+ */
266
+ 'history'?: Array<BookingHistoryResponseHistoryInner>;
267
+ }
268
+ /**
269
+ *
270
+ * @export
271
+ * @interface BookingHistoryResponseHistoryInner
272
+ */
273
+ export interface BookingHistoryResponseHistoryInner {
274
+ /**
275
+ * ID du créneau réservé
276
+ * @type {string}
277
+ * @memberof BookingHistoryResponseHistoryInner
278
+ */
279
+ 'slotId'?: string;
280
+ /**
281
+ * ID de l\'utilisateur qui a effectué la réservation
282
+ * @type {string}
283
+ * @memberof BookingHistoryResponseHistoryInner
284
+ */
285
+ 'userId'?: string;
286
+ /**
287
+ * Statut de la réservation (active, cancelled, completed)
288
+ * @type {string}
289
+ * @memberof BookingHistoryResponseHistoryInner
290
+ */
291
+ 'status'?: string;
292
+ /**
293
+ * Prix total de la réservation
294
+ * @type {number}
295
+ * @memberof BookingHistoryResponseHistoryInner
296
+ */
297
+ 'totalPrice'?: number;
298
+ /**
299
+ * Statut du paiement (paid, pending, cancelled)
300
+ * @type {string}
301
+ * @memberof BookingHistoryResponseHistoryInner
302
+ */
303
+ 'paymentStatus'?: string;
304
+ /**
305
+ * Date et heure de la création de la réservation
306
+ * @type {string}
307
+ * @memberof BookingHistoryResponseHistoryInner
308
+ */
309
+ 'createdAt'?: string;
310
+ /**
311
+ * Date et heure de la dernière mise à jour de la réservation
312
+ * @type {string}
313
+ * @memberof BookingHistoryResponseHistoryInner
314
+ */
315
+ 'updatedAt'?: string;
316
+ }
243
317
  /**
244
318
  *
245
319
  * @export
@@ -613,6 +687,19 @@ export declare const BookingStatus: {
613
687
  readonly Inactive: "inactive";
614
688
  };
615
689
  export type BookingStatus = typeof BookingStatus[keyof typeof BookingStatus];
690
+ /**
691
+ *
692
+ * @export
693
+ * @interface BookingsStaffWeeklyWeekIdGet200Response
694
+ */
695
+ export interface BookingsStaffWeeklyWeekIdGet200Response {
696
+ /**
697
+ *
698
+ * @type {Array<BookingPopulated>}
699
+ * @memberof BookingsStaffWeeklyWeekIdGet200Response
700
+ */
701
+ 'bookings'?: Array<BookingPopulated>;
702
+ }
616
703
  /**
617
704
  *
618
705
  * @export
@@ -1542,6 +1629,97 @@ export declare const CourtStatus: {
1542
1629
  readonly Inactive: "inactive";
1543
1630
  };
1544
1631
  export type CourtStatus = typeof CourtStatus[keyof typeof CourtStatus];
1632
+ /**
1633
+ *
1634
+ * @export
1635
+ * @interface CourtWithNameResponse
1636
+ */
1637
+ export interface CourtWithNameResponse {
1638
+ /**
1639
+ *
1640
+ * @type {string}
1641
+ * @memberof CourtWithNameResponse
1642
+ */
1643
+ 'id'?: string;
1644
+ /**
1645
+ *
1646
+ * @type {string}
1647
+ * @memberof CourtWithNameResponse
1648
+ */
1649
+ 'name'?: string;
1650
+ /**
1651
+ *
1652
+ * @type {CourtStatus}
1653
+ * @memberof CourtWithNameResponse
1654
+ */
1655
+ 'status'?: CourtStatus;
1656
+ /**
1657
+ *
1658
+ * @type {string}
1659
+ * @memberof CourtWithNameResponse
1660
+ */
1661
+ 'comments'?: string;
1662
+ /**
1663
+ *
1664
+ * @type {number}
1665
+ * @memberof CourtWithNameResponse
1666
+ */
1667
+ 'pricePerSlot'?: number;
1668
+ /**
1669
+ *
1670
+ * @type {number}
1671
+ * @memberof CourtWithNameResponse
1672
+ */
1673
+ 'slotDefaultDuration'?: number;
1674
+ /**
1675
+ *
1676
+ * @type {number}
1677
+ * @memberof CourtWithNameResponse
1678
+ */
1679
+ 'startTimeInTheDayInMinutes'?: number;
1680
+ /**
1681
+ *
1682
+ * @type {number}
1683
+ * @memberof CourtWithNameResponse
1684
+ */
1685
+ 'endTimeInTheDayInMinutes'?: number;
1686
+ /**
1687
+ *
1688
+ * @type {string}
1689
+ * @memberof CourtWithNameResponse
1690
+ */
1691
+ 'sportId'?: string;
1692
+ /**
1693
+ *
1694
+ * @type {string}
1695
+ * @memberof CourtWithNameResponse
1696
+ */
1697
+ 'sportName'?: string;
1698
+ /**
1699
+ *
1700
+ * @type {string}
1701
+ * @memberof CourtWithNameResponse
1702
+ */
1703
+ 'clubId'?: string;
1704
+ /**
1705
+ * Indique si le terrain est en intérieur ou extérieur
1706
+ * @type {boolean}
1707
+ * @memberof CourtWithNameResponse
1708
+ */
1709
+ 'isIndoor'?: boolean;
1710
+ /**
1711
+ *
1712
+ * @type {string}
1713
+ * @memberof CourtWithNameResponse
1714
+ */
1715
+ 'createdAt'?: string;
1716
+ /**
1717
+ *
1718
+ * @type {string}
1719
+ * @memberof CourtWithNameResponse
1720
+ */
1721
+ 'updatedAt'?: string;
1722
+ }
1545
1723
  /**
1546
1724
  *
1547
1725
  * @export
@@ -1561,6 +1739,25 @@ export interface CourtsResponse {
1561
1739
  */
1562
1740
  'total'?: number;
1563
1741
  }
1742
+ /**
1743
+ *
1744
+ * @export
1745
+ * @interface CourtsWithNameResponse
1746
+ */
1747
+ export interface CourtsWithNameResponse {
1748
+ /**
1749
+ *
1750
+ * @type {Array<CourtWithNameResponse>}
1751
+ * @memberof CourtsWithNameResponse
1752
+ */
1753
+ 'courts'?: Array<CourtWithNameResponse>;
1754
+ /**
1755
+ *
1756
+ * @type {number}
1757
+ * @memberof CourtsWithNameResponse
1758
+ */
1759
+ 'total'?: number;
1760
+ }
1564
1761
  /**
1565
1762
  *
1566
1763
  * @export
@@ -3002,6 +3199,56 @@ export declare const PaymentMethod: {
3002
3199
  readonly Onsite: "onsite";
3003
3200
  };
3004
3201
  export type PaymentMethod = typeof PaymentMethod[keyof typeof PaymentMethod];
3202
+ /**
3203
+ *
3204
+ * @export
3205
+ * @interface PaymentStatus
3206
+ */
3207
+ export interface PaymentStatus {
3208
+ /**
3209
+ * URL de la photo de profil du joueur
3210
+ * @type {string}
3211
+ * @memberof PaymentStatus
3212
+ */
3213
+ 'profilePicture'?: string;
3214
+ /**
3215
+ * Identifiant de l\'utilisateur
3216
+ * @type {string}
3217
+ * @memberof PaymentStatus
3218
+ */
3219
+ 'userId'?: string;
3220
+ /**
3221
+ * Prénom de l\'utilisateur
3222
+ * @type {string}
3223
+ * @memberof PaymentStatus
3224
+ */
3225
+ 'firstName'?: string;
3226
+ /**
3227
+ * Nom de l\'utilisateur
3228
+ * @type {string}
3229
+ * @memberof PaymentStatus
3230
+ */
3231
+ 'lastName'?: string;
3232
+ /**
3233
+ * Montant que l\'utilisateur doit payer
3234
+ * @type {number}
3235
+ * @memberof PaymentStatus
3236
+ */
3237
+ 'amount'?: number;
3238
+ /**
3239
+ * Statut de la facture
3240
+ * @type {string}
3241
+ * @memberof PaymentStatus
3242
+ */
3243
+ 'invoiceStatus'?: PaymentStatusInvoiceStatusEnum;
3244
+ }
3245
+ export declare const PaymentStatusInvoiceStatusEnum: {
3246
+ readonly Paid: "paid";
3247
+ readonly Pending: "pending";
3248
+ readonly Failed: "failed";
3249
+ readonly Canceled: "canceled";
3250
+ };
3251
+ export type PaymentStatusInvoiceStatusEnum = typeof PaymentStatusInvoiceStatusEnum[keyof typeof PaymentStatusInvoiceStatusEnum];
3005
3252
  /**
3006
3253
  *
3007
3254
  * @export
@@ -3616,6 +3863,18 @@ export interface SportResponse {
3616
3863
  * @memberof SportResponse
3617
3864
  */
3618
3865
  'clubId'?: string;
3866
+ /**
3867
+ *
3868
+ * @type {number}
3869
+ * @memberof SportResponse
3870
+ */
3871
+ 'courtsCount'?: number;
3872
+ /**
3873
+ *
3874
+ * @type {number}
3875
+ * @memberof SportResponse
3876
+ */
3877
+ 'bookingsCount'?: number;
3619
3878
  /**
3620
3879
  *
3621
3880
  * @type {string}
@@ -4393,12 +4652,49 @@ export interface UpdateUserRequestBody {
4393
4652
  * @memberof UpdateUserRequestBody
4394
4653
  */
4395
4654
  'profilePicture'?: string;
4655
+ /**
4656
+ *
4657
+ * @type {Array<UpdateUserRequestBodyLevelBySportsInner>}
4658
+ * @memberof UpdateUserRequestBody
4659
+ */
4660
+ 'levelBySports'?: Array<UpdateUserRequestBodyLevelBySportsInner>;
4661
+ /**
4662
+ *
4663
+ * @type {boolean}
4664
+ * @memberof UpdateUserRequestBody
4665
+ */
4666
+ 'isProfileVisible'?: boolean;
4396
4667
  /**
4397
4668
  *
4398
4669
  * @type {string}
4399
4670
  * @memberof UpdateUserRequestBody
4400
4671
  */
4401
- 'level'?: string;
4672
+ 'description'?: string;
4673
+ /**
4674
+ *
4675
+ * @type {string}
4676
+ * @memberof UpdateUserRequestBody
4677
+ */
4678
+ 'city'?: string;
4679
+ }
4680
+ /**
4681
+ *
4682
+ * @export
4683
+ * @interface UpdateUserRequestBodyLevelBySportsInner
4684
+ */
4685
+ export interface UpdateUserRequestBodyLevelBySportsInner {
4686
+ /**
4687
+ *
4688
+ * @type {string}
4689
+ * @memberof UpdateUserRequestBodyLevelBySportsInner
4690
+ */
4691
+ 'sport': string;
4692
+ /**
4693
+ *
4694
+ * @type {string}
4695
+ * @memberof UpdateUserRequestBodyLevelBySportsInner
4696
+ */
4697
+ 'level': string;
4402
4698
  }
4403
4699
  /**
4404
4700
  *
@@ -4473,6 +4769,109 @@ export interface User {
4473
4769
  */
4474
4770
  'isAdmin'?: boolean;
4475
4771
  }
4772
+ /**
4773
+ *
4774
+ * @export
4775
+ * @interface UserBookingItem
4776
+ */
4777
+ export interface UserBookingItem {
4778
+ /**
4779
+ * ID de la réservation
4780
+ * @type {string}
4781
+ * @memberof UserBookingItem
4782
+ */
4783
+ 'id'?: string;
4784
+ /**
4785
+ * URL de l\'image du club
4786
+ * @type {string}
4787
+ * @memberof UserBookingItem
4788
+ */
4789
+ 'clubPicture'?: string;
4790
+ /**
4791
+ * Nom du terrain
4792
+ * @type {string}
4793
+ * @memberof UserBookingItem
4794
+ */
4795
+ 'courtName'?: string;
4796
+ /**
4797
+ * Nom du sport
4798
+ * @type {string}
4799
+ * @memberof UserBookingItem
4800
+ */
4801
+ 'sportName'?: string;
4802
+ /**
4803
+ * Date de début de la réservation
4804
+ * @type {string}
4805
+ * @memberof UserBookingItem
4806
+ */
4807
+ 'startDate'?: string;
4808
+ /**
4809
+ * Statut de paiement de l\'utilisateur
4810
+ * @type {string}
4811
+ * @memberof UserBookingItem
4812
+ */
4813
+ 'myPaymentStatus'?: UserBookingItemMyPaymentStatusEnum;
4814
+ /**
4815
+ * Statut de la réservation
4816
+ * @type {string}
4817
+ * @memberof UserBookingItem
4818
+ */
4819
+ 'bookingStatus'?: UserBookingItemBookingStatusEnum;
4820
+ /**
4821
+ * Liste des noms des joueurs
4822
+ * @type {Array<string>}
4823
+ * @memberof UserBookingItem
4824
+ */
4825
+ 'playersName'?: Array<string>;
4826
+ /**
4827
+ * Montant que l\'utilisateur doit payer
4828
+ * @type {number}
4829
+ * @memberof UserBookingItem
4830
+ */
4831
+ 'myAmountToPay'?: number;
4832
+ /**
4833
+ * Montant total de la réservation
4834
+ * @type {number}
4835
+ * @memberof UserBookingItem
4836
+ */
4837
+ 'totalAmount'?: number;
4838
+ /**
4839
+ * Date limite avant annulation
4840
+ * @type {string}
4841
+ * @memberof UserBookingItem
4842
+ */
4843
+ 'timeBeforeCancel'?: string;
4844
+ /**
4845
+ * Adresse du club
4846
+ * @type {string}
4847
+ * @memberof UserBookingItem
4848
+ */
4849
+ 'clubAddress'?: string;
4850
+ /**
4851
+ * Historique de la réservation
4852
+ * @type {string}
4853
+ * @memberof UserBookingItem
4854
+ */
4855
+ 'bookingHistory'?: string;
4856
+ /**
4857
+ * Statut de paiement pour chaque joueur
4858
+ * @type {Array<PaymentStatus>}
4859
+ * @memberof UserBookingItem
4860
+ */
4861
+ 'paymentStatus'?: Array<PaymentStatus>;
4862
+ }
4863
+ export declare const UserBookingItemMyPaymentStatusEnum: {
4864
+ readonly Paid: "paid";
4865
+ readonly Pending: "pending";
4866
+ readonly Failed: "failed";
4867
+ };
4868
+ export type UserBookingItemMyPaymentStatusEnum = typeof UserBookingItemMyPaymentStatusEnum[keyof typeof UserBookingItemMyPaymentStatusEnum];
4869
+ export declare const UserBookingItemBookingStatusEnum: {
4870
+ readonly Confirmed: "confirmed";
4871
+ readonly Cancelled: "cancelled";
4872
+ readonly Pending: "pending";
4873
+ };
4874
+ export type UserBookingItemBookingStatusEnum = typeof UserBookingItemBookingStatusEnum[keyof typeof UserBookingItemBookingStatusEnum];
4476
4875
  /**
4477
4876
  *
4478
4877
  * @export
@@ -4634,6 +5033,18 @@ export interface UserStaffResponse {
4634
5033
  * @memberof UserStaffResponse
4635
5034
  */
4636
5035
  'lastName'?: string;
5036
+ /**
5037
+ *
5038
+ * @type {string}
5039
+ * @memberof UserStaffResponse
5040
+ */
5041
+ 'gender'?: string;
5042
+ /**
5043
+ *
5044
+ * @type {string}
5045
+ * @memberof UserStaffResponse
5046
+ */
5047
+ 'email'?: string;
4637
5048
  /**
4638
5049
  *
4639
5050
  * @type {string}
@@ -4652,6 +5063,12 @@ export interface UserStaffResponse {
4652
5063
  * @memberof UserStaffResponse
4653
5064
  */
4654
5065
  'isProfileVisible'?: boolean;
5066
+ /**
5067
+ *
5068
+ * @type {boolean}
5069
+ * @memberof UserStaffResponse
5070
+ */
5071
+ 'isSubscribedToClub'?: boolean;
4655
5072
  }
4656
5073
  /**
4657
5074
  *
@@ -4709,6 +5126,124 @@ export interface YearlyTurnoverResponseMonthlyBreakdownInner {
4709
5126
  */
4710
5127
  'invoiceCount'?: number;
4711
5128
  }
5129
+ /**
5130
+ * BookingsApi - axios parameter creator
5131
+ * @export
5132
+ */
5133
+ export declare const BookingsApiAxiosParamCreator: (configuration?: Configuration) => {
5134
+ /**
5135
+ * Retourne une liste de réservations pour une date donnée, avec les joueurs et terrains (incluant le sport) peuplés.
5136
+ * @summary Récupérer les réservations journalières
5137
+ * @param {string} date Date au format YYYY-MM-DD
5138
+ * @param {*} [options] Override http request option.
5139
+ * @throws {RequiredError}
5140
+ */
5141
+ bookingsStaffDailyDateGet: (date: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
5142
+ /**
5143
+ * Retourne une liste de réservations pour une semaine donnée, avec les joueurs et terrains (incluant le sport) peuplés.
5144
+ * @summary Récupérer les réservations hebdomadaires
5145
+ * @param {string} weekId ID de la semaine
5146
+ * @param {*} [options] Override http request option.
5147
+ * @throws {RequiredError}
5148
+ */
5149
+ bookingsStaffWeeklyWeekIdGet: (weekId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
5150
+ };
5151
+ /**
5152
+ * BookingsApi - functional programming interface
5153
+ * @export
5154
+ */
5155
+ export declare const BookingsApiFp: (configuration?: Configuration) => {
5156
+ /**
5157
+ * Retourne une liste de réservations pour une date donnée, avec les joueurs et terrains (incluant le sport) peuplés.
5158
+ * @summary Récupérer les réservations journalières
5159
+ * @param {string} date Date au format YYYY-MM-DD
5160
+ * @param {*} [options] Override http request option.
5161
+ * @throws {RequiredError}
5162
+ */
5163
+ bookingsStaffDailyDateGet(date: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BookingsStaffWeeklyWeekIdGet200Response>>;
5164
+ /**
5165
+ * Retourne une liste de réservations pour une semaine donnée, avec les joueurs et terrains (incluant le sport) peuplés.
5166
+ * @summary Récupérer les réservations hebdomadaires
5167
+ * @param {string} weekId ID de la semaine
5168
+ * @param {*} [options] Override http request option.
5169
+ * @throws {RequiredError}
5170
+ */
5171
+ bookingsStaffWeeklyWeekIdGet(weekId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BookingsStaffWeeklyWeekIdGet200Response>>;
5172
+ };
5173
+ /**
5174
+ * BookingsApi - factory interface
5175
+ * @export
5176
+ */
5177
+ export declare const BookingsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
5178
+ /**
5179
+ * Retourne une liste de réservations pour une date donnée, avec les joueurs et terrains (incluant le sport) peuplés.
5180
+ * @summary Récupérer les réservations journalières
5181
+ * @param {BookingsApiBookingsStaffDailyDateGetRequest} requestParameters Request parameters.
5182
+ * @param {*} [options] Override http request option.
5183
+ * @throws {RequiredError}
5184
+ */
5185
+ bookingsStaffDailyDateGet(requestParameters: BookingsApiBookingsStaffDailyDateGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<BookingsStaffWeeklyWeekIdGet200Response>;
5186
+ /**
5187
+ * Retourne une liste de réservations pour une semaine donnée, avec les joueurs et terrains (incluant le sport) peuplés.
5188
+ * @summary Récupérer les réservations hebdomadaires
5189
+ * @param {BookingsApiBookingsStaffWeeklyWeekIdGetRequest} requestParameters Request parameters.
5190
+ * @param {*} [options] Override http request option.
5191
+ * @throws {RequiredError}
5192
+ */
5193
+ bookingsStaffWeeklyWeekIdGet(requestParameters: BookingsApiBookingsStaffWeeklyWeekIdGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<BookingsStaffWeeklyWeekIdGet200Response>;
5194
+ };
5195
+ /**
5196
+ * Request parameters for bookingsStaffDailyDateGet operation in BookingsApi.
5197
+ * @export
5198
+ * @interface BookingsApiBookingsStaffDailyDateGetRequest
5199
+ */
5200
+ export interface BookingsApiBookingsStaffDailyDateGetRequest {
5201
+ /**
5202
+ * Date au format YYYY-MM-DD
5203
+ * @type {string}
5204
+ * @memberof BookingsApiBookingsStaffDailyDateGet
5205
+ */
5206
+ readonly date: string;
5207
+ }
5208
+ /**
5209
+ * Request parameters for bookingsStaffWeeklyWeekIdGet operation in BookingsApi.
5210
+ * @export
5211
+ * @interface BookingsApiBookingsStaffWeeklyWeekIdGetRequest
5212
+ */
5213
+ export interface BookingsApiBookingsStaffWeeklyWeekIdGetRequest {
5214
+ /**
5215
+ * ID de la semaine
5216
+ * @type {string}
5217
+ * @memberof BookingsApiBookingsStaffWeeklyWeekIdGet
5218
+ */
5219
+ readonly weekId: string;
5220
+ }
5221
+ /**
5222
+ * BookingsApi - object-oriented interface
5223
+ * @export
5224
+ * @class BookingsApi
5225
+ * @extends {BaseAPI}
5226
+ */
5227
+ export declare class BookingsApi extends BaseAPI {
5228
+ /**
5229
+ * Retourne une liste de réservations pour une date donnée, avec les joueurs et terrains (incluant le sport) peuplés.
5230
+ * @summary Récupérer les réservations journalières
5231
+ * @param {BookingsApiBookingsStaffDailyDateGetRequest} requestParameters Request parameters.
5232
+ * @param {*} [options] Override http request option.
5233
+ * @throws {RequiredError}
5234
+ * @memberof BookingsApi
5235
+ */
5236
+ bookingsStaffDailyDateGet(requestParameters: BookingsApiBookingsStaffDailyDateGetRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<BookingsStaffWeeklyWeekIdGet200Response, any>>;
5237
+ /**
5238
+ * Retourne une liste de réservations pour une semaine donnée, avec les joueurs et terrains (incluant le sport) peuplés.
5239
+ * @summary Récupérer les réservations hebdomadaires
5240
+ * @param {BookingsApiBookingsStaffWeeklyWeekIdGetRequest} requestParameters Request parameters.
5241
+ * @param {*} [options] Override http request option.
5242
+ * @throws {RequiredError}
5243
+ * @memberof BookingsApi
5244
+ */
5245
+ bookingsStaffWeeklyWeekIdGet(requestParameters: BookingsApiBookingsStaffWeeklyWeekIdGetRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<BookingsStaffWeeklyWeekIdGet200Response, any>>;
5246
+ }
4712
5247
  /**
4713
5248
  * ClubAnalyticsApi - axios parameter creator
4714
5249
  * @export
@@ -5360,7 +5895,7 @@ export declare const ManagerClubCourtsApiFp: (configuration?: Configuration) =>
5360
5895
  * @param {*} [options] Override http request option.
5361
5896
  * @throws {RequiredError}
5362
5897
  */
5363
- getCourtsByClub(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CourtsResponse>>;
5898
+ getCourtsByClub(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CourtsWithNameResponse>>;
5364
5899
  /**
5365
5900
  *
5366
5901
  * @summary Mettre à jour un terrain du club courant
@@ -5398,7 +5933,7 @@ export declare const ManagerClubCourtsApiFactory: (configuration?: Configuration
5398
5933
  * @param {*} [options] Override http request option.
5399
5934
  * @throws {RequiredError}
5400
5935
  */
5401
- getCourtsByClub(options?: RawAxiosRequestConfig): AxiosPromise<CourtsResponse>;
5936
+ getCourtsByClub(options?: RawAxiosRequestConfig): AxiosPromise<CourtsWithNameResponse>;
5402
5937
  /**
5403
5938
  *
5404
5939
  * @summary Mettre à jour un terrain du club courant
@@ -5485,7 +6020,7 @@ export declare class ManagerClubCourtsApi extends BaseAPI {
5485
6020
  * @throws {RequiredError}
5486
6021
  * @memberof ManagerClubCourtsApi
5487
6022
  */
5488
- getCourtsByClub(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CourtsResponse, any>>;
6023
+ getCourtsByClub(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CourtsWithNameResponse, any>>;
5489
6024
  /**
5490
6025
  *
5491
6026
  * @summary Mettre à jour un terrain du club courant
@@ -7493,6 +8028,13 @@ export declare const UserBookingsApiAxiosParamCreator: (configuration?: Configur
7493
8028
  * @throws {RequiredError}
7494
8029
  */
7495
8030
  createBooking: (createBookingRequest: CreateBookingRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
8031
+ /**
8032
+ *
8033
+ * @summary Récupère l\'historique des réservations de l\'utilisateur connecté
8034
+ * @param {*} [options] Override http request option.
8035
+ * @throws {RequiredError}
8036
+ */
8037
+ getBookingHistory: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
7496
8038
  };
7497
8039
  /**
7498
8040
  * UserBookingsApi - functional programming interface
@@ -7515,6 +8057,13 @@ export declare const UserBookingsApiFp: (configuration?: Configuration) => {
7515
8057
  * @throws {RequiredError}
7516
8058
  */
7517
8059
  createBooking(createBookingRequest: CreateBookingRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BookingResponse>>;
8060
+ /**
8061
+ *
8062
+ * @summary Récupère l\'historique des réservations de l\'utilisateur connecté
8063
+ * @param {*} [options] Override http request option.
8064
+ * @throws {RequiredError}
8065
+ */
8066
+ getBookingHistory(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<UserBookingItem>>>;
7518
8067
  };
7519
8068
  /**
7520
8069
  * UserBookingsApi - factory interface
@@ -7537,6 +8086,13 @@ export declare const UserBookingsApiFactory: (configuration?: Configuration, bas
7537
8086
  * @throws {RequiredError}
7538
8087
  */
7539
8088
  createBooking(requestParameters: UserBookingsApiCreateBookingRequest, options?: RawAxiosRequestConfig): AxiosPromise<BookingResponse>;
8089
+ /**
8090
+ *
8091
+ * @summary Récupère l\'historique des réservations de l\'utilisateur connecté
8092
+ * @param {*} [options] Override http request option.
8093
+ * @throws {RequiredError}
8094
+ */
8095
+ getBookingHistory(options?: RawAxiosRequestConfig): AxiosPromise<Array<UserBookingItem>>;
7540
8096
  };
7541
8097
  /**
7542
8098
  * Request parameters for blockSlot operation in UserBookingsApi.
@@ -7589,6 +8145,14 @@ export declare class UserBookingsApi extends BaseAPI {
7589
8145
  * @memberof UserBookingsApi
7590
8146
  */
7591
8147
  createBooking(requestParameters: UserBookingsApiCreateBookingRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<BookingResponse, any>>;
8148
+ /**
8149
+ *
8150
+ * @summary Récupère l\'historique des réservations de l\'utilisateur connecté
8151
+ * @param {*} [options] Override http request option.
8152
+ * @throws {RequiredError}
8153
+ * @memberof UserBookingsApi
8154
+ */
8155
+ getBookingHistory(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<UserBookingItem[], any>>;
7592
8156
  }
7593
8157
  /**
7594
8158
  * UserClubCourtsApi - axios parameter creator
@@ -8247,6 +8811,14 @@ export declare const UserProfileApiAxiosParamCreator: (configuration?: Configura
8247
8811
  * @throws {RequiredError}
8248
8812
  */
8249
8813
  getPublicUserProfile: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
8814
+ /**
8815
+ *
8816
+ * @summary Récupère le detéail d\'une réservation
8817
+ * @param {string} bookingId ID de la réservation
8818
+ * @param {*} [options] Override http request option.
8819
+ * @throws {RequiredError}
8820
+ */
8821
+ getUserBookingDetail: (bookingId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
8250
8822
  /**
8251
8823
  *
8252
8824
  * @summary Récupère toutes les réservations de l\'utilisateur connecté (triées par date de création décroissante)
@@ -8431,6 +9003,14 @@ export declare const UserProfileApiFp: (configuration?: Configuration) => {
8431
9003
  * @throws {RequiredError}
8432
9004
  */
8433
9005
  getPublicUserProfile(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PublicClubUser>>;
9006
+ /**
9007
+ *
9008
+ * @summary Récupère le detéail d\'une réservation
9009
+ * @param {string} bookingId ID de la réservation
9010
+ * @param {*} [options] Override http request option.
9011
+ * @throws {RequiredError}
9012
+ */
9013
+ getUserBookingDetail(bookingId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserBookingItem>>;
8434
9014
  /**
8435
9015
  *
8436
9016
  * @summary Récupère toutes les réservations de l\'utilisateur connecté (triées par date de création décroissante)
@@ -8613,6 +9193,14 @@ export declare const UserProfileApiFactory: (configuration?: Configuration, base
8613
9193
  * @throws {RequiredError}
8614
9194
  */
8615
9195
  getPublicUserProfile(requestParameters: UserProfileApiGetPublicUserProfileRequest, options?: RawAxiosRequestConfig): AxiosPromise<PublicClubUser>;
9196
+ /**
9197
+ *
9198
+ * @summary Récupère le detéail d\'une réservation
9199
+ * @param {UserProfileApiGetUserBookingDetailRequest} requestParameters Request parameters.
9200
+ * @param {*} [options] Override http request option.
9201
+ * @throws {RequiredError}
9202
+ */
9203
+ getUserBookingDetail(requestParameters: UserProfileApiGetUserBookingDetailRequest, options?: RawAxiosRequestConfig): AxiosPromise<UserBookingItem>;
8616
9204
  /**
8617
9205
  *
8618
9206
  * @summary Récupère toutes les réservations de l\'utilisateur connecté (triées par date de création décroissante)
@@ -8791,6 +9379,19 @@ export interface UserProfileApiGetPublicUserProfileRequest {
8791
9379
  */
8792
9380
  readonly id: string;
8793
9381
  }
9382
+ /**
9383
+ * Request parameters for getUserBookingDetail operation in UserProfileApi.
9384
+ * @export
9385
+ * @interface UserProfileApiGetUserBookingDetailRequest
9386
+ */
9387
+ export interface UserProfileApiGetUserBookingDetailRequest {
9388
+ /**
9389
+ * ID de la réservation
9390
+ * @type {string}
9391
+ * @memberof UserProfileApiGetUserBookingDetail
9392
+ */
9393
+ readonly bookingId: string;
9394
+ }
8794
9395
  /**
8795
9396
  * Request parameters for getUserBookings operation in UserProfileApi.
8796
9397
  * @export
@@ -9006,6 +9607,15 @@ export declare class UserProfileApi extends BaseAPI {
9006
9607
  * @memberof UserProfileApi
9007
9608
  */
9008
9609
  getPublicUserProfile(requestParameters: UserProfileApiGetPublicUserProfileRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PublicClubUser, any>>;
9610
+ /**
9611
+ *
9612
+ * @summary Récupère le detéail d\'une réservation
9613
+ * @param {UserProfileApiGetUserBookingDetailRequest} requestParameters Request parameters.
9614
+ * @param {*} [options] Override http request option.
9615
+ * @throws {RequiredError}
9616
+ * @memberof UserProfileApi
9617
+ */
9618
+ getUserBookingDetail(requestParameters: UserProfileApiGetUserBookingDetailRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<UserBookingItem, any>>;
9009
9619
  /**
9010
9620
  *
9011
9621
  * @summary Récupère toutes les réservations de l\'utilisateur connecté (triées par date de création décroissante)