@tennac-booking/sdk 1.0.125 → 1.0.127

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 (61) hide show
  1. package/.openapi-generator/FILES +334 -343
  2. package/README.md +11 -19
  3. package/api.ts +422 -591
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +1 -1
  7. package/dist/api.d.ts +317 -496
  8. package/dist/api.js +164 -156
  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 +317 -496
  16. package/dist/esm/api.js +160 -152
  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/BookingsStaffApi.md +10 -10
  28. package/docs/{EventBookingResponsePlayersInnerInvoiceStatus.md → CheckInPlayerRequest.md} +5 -3
  29. package/docs/{CheckInPlayersResponse.md → CheckInPlayerResponse.md} +5 -5
  30. package/docs/ClubPlayerSubscriptionSummary.md +3 -3
  31. package/docs/ClubsStaffApi.md +54 -0
  32. package/docs/CreatePlan201Response.md +2 -0
  33. package/docs/CreateSubscriptionPlanRequest.md +2 -2
  34. package/docs/CreateSubscriptionPlanRequestDiscount.md +2 -0
  35. package/docs/DeleteSubscriptionPlanResponse.md +2 -0
  36. package/docs/EventsApi.md +1 -4
  37. package/docs/{EventBookingResponseSetupStatus.md → GetClubType200Response.md} +5 -3
  38. package/docs/MonthlyTurnoverResponse.md +0 -1
  39. package/docs/OffPeakRule.md +2 -0
  40. package/docs/PlanPrice.md +26 -0
  41. package/docs/{CheckInPlayersRequest.md → PlanPriceInput.md} +7 -5
  42. package/docs/PublicSubscriptionPlanResponse.md +5 -1
  43. package/docs/PublishEventResponse.md +0 -2
  44. package/docs/SendSubscriptionInvitationRequest.md +2 -0
  45. package/docs/SubscriptionPlanDiscountResponse.md +34 -0
  46. package/docs/SubscriptionPlanResponse.md +7 -1
  47. package/docs/SubscriptionsManagerApi.md +55 -1
  48. package/docs/UsersApi.md +0 -54
  49. package/index.ts +1 -1
  50. package/package.json +1 -1
  51. package/docs/EventBookingDetailSummary.md +0 -40
  52. package/docs/EventBookingResponse.md +0 -36
  53. package/docs/EventBookingResponsePlayersInner.md +0 -28
  54. package/docs/EventBookingStatus.md +0 -16
  55. package/docs/InvoiceStatusSETUPPENDING.md +0 -8
  56. package/docs/InvoiceStatusSETUPSUCCESS.md +0 -8
  57. package/docs/ParticipationType.md +0 -10
  58. package/docs/UserEventParticipation.md +0 -22
  59. package/docs/UserEventSummary.md +0 -44
  60. package/docs/UserEventsResponse.md +0 -28
  61. package/docs/VisibilityType.md +0 -12
package/api.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * openapi.json
5
5
  * Pandook API Documentation
6
6
  *
7
- * The version of the OpenAPI document: 1.0.125
7
+ * The version of the OpenAPI document: 1.0.121
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1458,34 +1458,34 @@ export interface CheckInEventParticipantsRequest {
1458
1458
  /**
1459
1459
  *
1460
1460
  * @export
1461
- * @interface CheckInPlayersRequest
1461
+ * @interface CheckInPlayerRequest
1462
1462
  */
1463
- export interface CheckInPlayersRequest {
1463
+ export interface CheckInPlayerRequest {
1464
1464
  /**
1465
- * Liste des IDs des joueurs qui ont payé/sont arrivés
1466
- * @type {Array<string>}
1467
- * @memberof CheckInPlayersRequest
1465
+ * ID du joueur qui a payé/est arrivé
1466
+ * @type {string}
1467
+ * @memberof CheckInPlayerRequest
1468
1468
  */
1469
- 'playerIds': Array<string>;
1469
+ 'playerId': string;
1470
1470
  }
1471
1471
  /**
1472
1472
  *
1473
1473
  * @export
1474
- * @interface CheckInPlayersResponse
1474
+ * @interface CheckInPlayerResponse
1475
1475
  */
1476
- export interface CheckInPlayersResponse {
1476
+ export interface CheckInPlayerResponse {
1477
1477
  /**
1478
1478
  * Message de confirmation
1479
1479
  * @type {string}
1480
- * @memberof CheckInPlayersResponse
1480
+ * @memberof CheckInPlayerResponse
1481
1481
  */
1482
1482
  'message': string;
1483
1483
  /**
1484
- * Joueurs ayant effectué le check-in
1485
- * @type {Array<CheckedInPlayer>}
1486
- * @memberof CheckInPlayersResponse
1484
+ *
1485
+ * @type {CheckedInPlayer}
1486
+ * @memberof CheckInPlayerResponse
1487
1487
  */
1488
- 'invoices': Array<CheckedInPlayer>;
1488
+ 'invoice': CheckedInPlayer;
1489
1489
  }
1490
1490
  /**
1491
1491
  *
@@ -2747,11 +2747,11 @@ export interface ClubPlayerSubscriptionSummary {
2747
2747
  */
2748
2748
  'name': string | null;
2749
2749
  /**
2750
- * Montant en centimes
2751
- * @type {number}
2750
+ * Tarifications disponibles
2751
+ * @type {Array<PlanPrice>}
2752
2752
  * @memberof ClubPlayerSubscriptionSummary
2753
2753
  */
2754
- 'amountInCents': number | null;
2754
+ 'prices': Array<PlanPrice>;
2755
2755
  /**
2756
2756
  * Devise
2757
2757
  * @type {string}
@@ -2759,7 +2759,7 @@ export interface ClubPlayerSubscriptionSummary {
2759
2759
  */
2760
2760
  'currency': string | null;
2761
2761
  /**
2762
- * Intervalle de facturation
2762
+ * Intervalle par défaut
2763
2763
  * @type {string}
2764
2764
  * @memberof ClubPlayerSubscriptionSummary
2765
2765
  */
@@ -3985,6 +3985,12 @@ export interface CreateOnsiteInvoiceResponseInvoice {
3985
3985
  * @interface CreatePlan201Response
3986
3986
  */
3987
3987
  export interface CreatePlan201Response {
3988
+ /**
3989
+ *
3990
+ * @type {Array<string>}
3991
+ * @memberof CreatePlan201Response
3992
+ */
3993
+ 'priceIds': Array<string>;
3988
3994
  /**
3989
3995
  *
3990
3996
  * @type {string}
@@ -4099,10 +4105,10 @@ export interface CreateSubscriptionPlanRequest {
4099
4105
  'description'?: string;
4100
4106
  /**
4101
4107
  *
4102
- * @type {number}
4108
+ * @type {Array<PlanPriceInput>}
4103
4109
  * @memberof CreateSubscriptionPlanRequest
4104
4110
  */
4105
- 'amountInCents': number;
4111
+ 'prices': Array<PlanPriceInput>;
4106
4112
  /**
4107
4113
  *
4108
4114
  * @type {string}
@@ -4140,8 +4146,15 @@ export interface CreateSubscriptionPlanRequestDiscount {
4140
4146
  *
4141
4147
  * @type {Array<OffPeakRule>}
4142
4148
  * @memberof CreateSubscriptionPlanRequestDiscount
4149
+ * @deprecated
4143
4150
  */
4144
4151
  'offPeakRules'?: Array<OffPeakRule>;
4152
+ /**
4153
+ * Liste optionnelle des noms de périodes tarifaires sur lesquelles appliquer la remise. Laisser vide pour appliquer la remise à toutes les heures d\'ouverture du club.
4154
+ * @type {Array<string>}
4155
+ * @memberof CreateSubscriptionPlanRequestDiscount
4156
+ */
4157
+ 'offPeakRuleNames'?: Array<string>;
4145
4158
  /**
4146
4159
  *
4147
4160
  * @type {string}
@@ -4295,6 +4308,12 @@ export interface DeleteSubscriptionPlanResponse {
4295
4308
  * @memberof DeleteSubscriptionPlanResponse
4296
4309
  */
4297
4310
  'message': string;
4311
+ /**
4312
+ *
4313
+ * @type {boolean}
4314
+ * @memberof DeleteSubscriptionPlanResponse
4315
+ */
4316
+ 'archivedInstead'?: boolean;
4298
4317
  }
4299
4318
  /**
4300
4319
  *
@@ -4411,212 +4430,6 @@ export interface EstimateEventPriceRequestSharesInner {
4411
4430
  */
4412
4431
  'playerId': string;
4413
4432
  }
4414
- /**
4415
- *
4416
- * @export
4417
- * @interface EventBookingDetailSummary
4418
- */
4419
- export interface EventBookingDetailSummary {
4420
- /**
4421
- *
4422
- * @type {string}
4423
- * @memberof EventBookingDetailSummary
4424
- */
4425
- 'id': string;
4426
- /**
4427
- *
4428
- * @type {EventBookingStatus}
4429
- * @memberof EventBookingDetailSummary
4430
- */
4431
- 'status': EventBookingStatus;
4432
- /**
4433
- *
4434
- * @type {string}
4435
- * @memberof EventBookingDetailSummary
4436
- */
4437
- 'teamName'?: string | null;
4438
- /**
4439
- *
4440
- * @type {Array<string>}
4441
- * @memberof EventBookingDetailSummary
4442
- */
4443
- 'players': Array<string>;
4444
- /**
4445
- *
4446
- * @type {Array<string>}
4447
- * @memberof EventBookingDetailSummary
4448
- */
4449
- 'invoices': Array<string>;
4450
- /**
4451
- *
4452
- * @type {string}
4453
- * @memberof EventBookingDetailSummary
4454
- */
4455
- 'creatorPaymentMethodId'?: string | null;
4456
- /**
4457
- *
4458
- * @type {boolean}
4459
- * @memberof EventBookingDetailSummary
4460
- */
4461
- 'paymentMethodSetupCompleted': boolean;
4462
- /**
4463
- *
4464
- * @type {string}
4465
- * @memberof EventBookingDetailSummary
4466
- */
4467
- 'limitSetupDate'?: string | null;
4468
- /**
4469
- *
4470
- * @type {string}
4471
- * @memberof EventBookingDetailSummary
4472
- */
4473
- 'limitCancellationDate'?: string | null;
4474
- /**
4475
- *
4476
- * @type {string}
4477
- * @memberof EventBookingDetailSummary
4478
- */
4479
- 'createdAt': string;
4480
- /**
4481
- *
4482
- * @type {string}
4483
- * @memberof EventBookingDetailSummary
4484
- */
4485
- 'updatedAt': string;
4486
- }
4487
-
4488
-
4489
- /**
4490
- *
4491
- * @export
4492
- * @interface EventBookingResponse
4493
- */
4494
- export interface EventBookingResponse {
4495
- /**
4496
- *
4497
- * @type {string}
4498
- * @memberof EventBookingResponse
4499
- */
4500
- 'id': string;
4501
- /**
4502
- *
4503
- * @type {EventBookingStatus}
4504
- * @memberof EventBookingResponse
4505
- */
4506
- 'status': EventBookingStatus;
4507
- /**
4508
- *
4509
- * @type {string}
4510
- * @memberof EventBookingResponse
4511
- */
4512
- 'teamName'?: string | null;
4513
- /**
4514
- *
4515
- * @type {Array<EventBookingResponsePlayersInner>}
4516
- * @memberof EventBookingResponse
4517
- */
4518
- 'players': Array<EventBookingResponsePlayersInner>;
4519
- /**
4520
- *
4521
- * @type {string}
4522
- * @memberof EventBookingResponse
4523
- */
4524
- 'setupLimitDate'?: string | null;
4525
- /**
4526
- *
4527
- * @type {string}
4528
- * @memberof EventBookingResponse
4529
- */
4530
- 'cancellationLimitDate'?: string | null;
4531
- /**
4532
- *
4533
- * @type {EventBookingResponseSetupStatus}
4534
- * @memberof EventBookingResponse
4535
- */
4536
- 'setupStatus'?: EventBookingResponseSetupStatus | null;
4537
- /**
4538
- *
4539
- * @type {string}
4540
- * @memberof EventBookingResponse
4541
- */
4542
- 'createdAt': string;
4543
- /**
4544
- *
4545
- * @type {string}
4546
- * @memberof EventBookingResponse
4547
- */
4548
- 'updatedAt': string;
4549
- }
4550
-
4551
-
4552
- /**
4553
- *
4554
- * @export
4555
- * @interface EventBookingResponsePlayersInner
4556
- */
4557
- export interface EventBookingResponsePlayersInner {
4558
- /**
4559
- *
4560
- * @type {EventBookingResponsePlayersInnerInvoiceStatus}
4561
- * @memberof EventBookingResponsePlayersInner
4562
- */
4563
- 'invoiceStatus'?: EventBookingResponsePlayersInnerInvoiceStatus | null;
4564
- /**
4565
- *
4566
- * @type {string}
4567
- * @memberof EventBookingResponsePlayersInner
4568
- */
4569
- 'profilePicture'?: string | null;
4570
- /**
4571
- *
4572
- * @type {string}
4573
- * @memberof EventBookingResponsePlayersInner
4574
- */
4575
- 'lastName'?: string | null;
4576
- /**
4577
- *
4578
- * @type {string}
4579
- * @memberof EventBookingResponsePlayersInner
4580
- */
4581
- 'firstName'?: string | null;
4582
- /**
4583
- *
4584
- * @type {string}
4585
- * @memberof EventBookingResponsePlayersInner
4586
- */
4587
- 'id': string;
4588
- }
4589
- /**
4590
- *
4591
- * @export
4592
- * @interface EventBookingResponsePlayersInnerInvoiceStatus
4593
- */
4594
- export interface EventBookingResponsePlayersInnerInvoiceStatus {
4595
- }
4596
- /**
4597
- *
4598
- * @export
4599
- * @interface EventBookingResponseSetupStatus
4600
- */
4601
- export interface EventBookingResponseSetupStatus {
4602
- }
4603
- /**
4604
- *
4605
- * @export
4606
- * @enum {string}
4607
- */
4608
-
4609
- export const EventBookingStatus = {
4610
- Pending: 'pending',
4611
- Paid: 'paid',
4612
- Cancelled: 'cancelled',
4613
- Expired: 'expired',
4614
- Archived: 'archived'
4615
- } as const;
4616
-
4617
- export type EventBookingStatus = typeof EventBookingStatus[keyof typeof EventBookingStatus];
4618
-
4619
-
4620
4433
  /**
4621
4434
  *
4622
4435
  * @export
@@ -5152,6 +4965,19 @@ export interface GetClubRoles200Response {
5152
4965
  */
5153
4966
  'roles': Array<any>;
5154
4967
  }
4968
+ /**
4969
+ *
4970
+ * @export
4971
+ * @interface GetClubType200Response
4972
+ */
4973
+ export interface GetClubType200Response {
4974
+ /**
4975
+ *
4976
+ * @type {string}
4977
+ * @memberof GetClubType200Response
4978
+ */
4979
+ 'clubType': string;
4980
+ }
5155
4981
  /**
5156
4982
  *
5157
4983
  * @export
@@ -5957,32 +5783,6 @@ export const InvoiceStatus = {
5957
5783
  export type InvoiceStatus = typeof InvoiceStatus[keyof typeof InvoiceStatus];
5958
5784
 
5959
5785
 
5960
- /**
5961
- *
5962
- * @export
5963
- * @enum {string}
5964
- */
5965
-
5966
- export const InvoiceStatusSETUPPENDING = {
5967
- SetupPending: 'setup_pending'
5968
- } as const;
5969
-
5970
- export type InvoiceStatusSETUPPENDING = typeof InvoiceStatusSETUPPENDING[keyof typeof InvoiceStatusSETUPPENDING];
5971
-
5972
-
5973
- /**
5974
- *
5975
- * @export
5976
- * @enum {string}
5977
- */
5978
-
5979
- export const InvoiceStatusSETUPSUCCESS = {
5980
- SetupSuccess: 'setup_success'
5981
- } as const;
5982
-
5983
- export type InvoiceStatusSETUPSUCCESS = typeof InvoiceStatusSETUPSUCCESS[keyof typeof InvoiceStatusSETUPSUCCESS];
5984
-
5985
-
5986
5786
  /**
5987
5787
  *
5988
5788
  * @export
@@ -6320,7 +6120,7 @@ export interface MonthlyBreakdown {
6320
6120
  'invoiceCount': number;
6321
6121
  }
6322
6122
  /**
6323
- * Types TSOA pour les analytics du club
6123
+ *
6324
6124
  * @export
6325
6125
  * @interface MonthlyTurnoverResponse
6326
6126
  */
@@ -6436,6 +6236,12 @@ export interface NoShowFeeResponse {
6436
6236
  * @interface OffPeakRule
6437
6237
  */
6438
6238
  export interface OffPeakRule {
6239
+ /**
6240
+ *
6241
+ * @type {string}
6242
+ * @memberof OffPeakRule
6243
+ */
6244
+ 'pricingPeriodName'?: string;
6439
6245
  /**
6440
6246
  *
6441
6247
  * @type {number}
@@ -6614,20 +6420,6 @@ export interface PartialClubWeeklySchedule {
6614
6420
  */
6615
6421
  'sunday'?: ClubDaySchedule;
6616
6422
  }
6617
- /**
6618
- *
6619
- * @export
6620
- * @enum {string}
6621
- */
6622
-
6623
- export const ParticipationType = {
6624
- Solo: 'solo',
6625
- Team: 'team'
6626
- } as const;
6627
-
6628
- export type ParticipationType = typeof ParticipationType[keyof typeof ParticipationType];
6629
-
6630
-
6631
6423
  /**
6632
6424
  *
6633
6425
  * @export
@@ -6772,6 +6564,60 @@ export const PlanInterval = {
6772
6564
  export type PlanInterval = typeof PlanInterval[keyof typeof PlanInterval];
6773
6565
 
6774
6566
 
6567
+ /**
6568
+ *
6569
+ * @export
6570
+ * @interface PlanPrice
6571
+ */
6572
+ export interface PlanPrice {
6573
+ /**
6574
+ *
6575
+ * @type {number}
6576
+ * @memberof PlanPrice
6577
+ */
6578
+ 'amountInCents': number;
6579
+ /**
6580
+ *
6581
+ * @type {PlanInterval}
6582
+ * @memberof PlanPrice
6583
+ */
6584
+ 'interval': PlanInterval;
6585
+ /**
6586
+ *
6587
+ * @type {boolean}
6588
+ * @memberof PlanPrice
6589
+ */
6590
+ 'active'?: boolean;
6591
+ /**
6592
+ *
6593
+ * @type {string}
6594
+ * @memberof PlanPrice
6595
+ */
6596
+ 'stripePriceId'?: string;
6597
+ }
6598
+
6599
+
6600
+ /**
6601
+ *
6602
+ * @export
6603
+ * @interface PlanPriceInput
6604
+ */
6605
+ export interface PlanPriceInput {
6606
+ /**
6607
+ *
6608
+ * @type {number}
6609
+ * @memberof PlanPriceInput
6610
+ */
6611
+ 'amountInCents': number;
6612
+ /**
6613
+ *
6614
+ * @type {PlanInterval}
6615
+ * @memberof PlanPriceInput
6616
+ */
6617
+ 'interval': PlanInterval;
6618
+ }
6619
+
6620
+
6775
6621
  /**
6776
6622
  *
6777
6623
  * @export
@@ -7154,13 +7000,19 @@ export interface PublicSubscriptionPlanResponse {
7154
7000
  * @type {number}
7155
7001
  * @memberof PublicSubscriptionPlanResponse
7156
7002
  */
7157
- 'amountInCents': number;
7003
+ 'amountInCents'?: number;
7158
7004
  /**
7159
7005
  *
7160
7006
  * @type {string}
7161
7007
  * @memberof PublicSubscriptionPlanResponse
7162
7008
  */
7163
7009
  'currency': string;
7010
+ /**
7011
+ *
7012
+ * @type {Array<PlanPrice>}
7013
+ * @memberof PublicSubscriptionPlanResponse
7014
+ */
7015
+ 'prices': Array<PlanPrice>;
7164
7016
  /**
7165
7017
  *
7166
7018
  * @type {PlanInterval}
@@ -7173,6 +7025,12 @@ export interface PublicSubscriptionPlanResponse {
7173
7025
  * @memberof PublicSubscriptionPlanResponse
7174
7026
  */
7175
7027
  'description'?: string;
7028
+ /**
7029
+ *
7030
+ * @type {SubscriptionPlanDiscountResponse}
7031
+ * @memberof PublicSubscriptionPlanResponse
7032
+ */
7033
+ 'discount'?: SubscriptionPlanDiscountResponse;
7176
7034
  }
7177
7035
 
7178
7036
 
@@ -7279,12 +7137,6 @@ export interface PublishEventResponse {
7279
7137
  * @memberof PublishEventResponse
7280
7138
  */
7281
7139
  'refundedBookingIds'?: Array<string>;
7282
- /**
7283
- *
7284
- * @type {EventBookingResponse}
7285
- * @memberof PublishEventResponse
7286
- */
7287
- 'userBooking'?: EventBookingResponse;
7288
7140
  }
7289
7141
  /**
7290
7142
  *
@@ -7810,6 +7662,12 @@ export interface SendSubscriptionInvitationRequest {
7810
7662
  * @memberof SendSubscriptionInvitationRequest
7811
7663
  */
7812
7664
  'productId': string;
7665
+ /**
7666
+ * Price spécifique proposé dans l\'invitation (facultatif).
7667
+ * @type {string}
7668
+ * @memberof SendSubscriptionInvitationRequest
7669
+ */
7670
+ 'priceId'?: string;
7813
7671
  }
7814
7672
  /**
7815
7673
  *
@@ -9975,6 +9833,63 @@ export interface SubscriptionMutationResponse {
9975
9833
  */
9976
9834
  'subscription': { [key: string]: any; };
9977
9835
  }
9836
+ /**
9837
+ *
9838
+ * @export
9839
+ * @interface SubscriptionPlanDiscountResponse
9840
+ */
9841
+ export interface SubscriptionPlanDiscountResponse {
9842
+ /**
9843
+ *
9844
+ * @type {DiscountType}
9845
+ * @memberof SubscriptionPlanDiscountResponse
9846
+ */
9847
+ 'type': DiscountType;
9848
+ /**
9849
+ *
9850
+ * @type {number}
9851
+ * @memberof SubscriptionPlanDiscountResponse
9852
+ */
9853
+ 'percentage'?: number;
9854
+ /**
9855
+ *
9856
+ * @type {number}
9857
+ * @memberof SubscriptionPlanDiscountResponse
9858
+ */
9859
+ 'maxDiscountAmountInCents'?: number;
9860
+ /**
9861
+ *
9862
+ * @type {string}
9863
+ * @memberof SubscriptionPlanDiscountResponse
9864
+ */
9865
+ 'validFrom'?: string;
9866
+ /**
9867
+ *
9868
+ * @type {string}
9869
+ * @memberof SubscriptionPlanDiscountResponse
9870
+ */
9871
+ 'validTo'?: string;
9872
+ /**
9873
+ *
9874
+ * @type {Array<string>}
9875
+ * @memberof SubscriptionPlanDiscountResponse
9876
+ */
9877
+ 'offPeakRuleNames'?: Array<string>;
9878
+ /**
9879
+ *
9880
+ * @type {Array<OffPeakRule>}
9881
+ * @memberof SubscriptionPlanDiscountResponse
9882
+ */
9883
+ 'offPeakRules'?: Array<OffPeakRule>;
9884
+ /**
9885
+ *
9886
+ * @type {boolean}
9887
+ * @memberof SubscriptionPlanDiscountResponse
9888
+ */
9889
+ 'bookingFree'?: boolean;
9890
+ }
9891
+
9892
+
9978
9893
  /**
9979
9894
  *
9980
9895
  * @export
@@ -10010,13 +9925,19 @@ export interface SubscriptionPlanResponse {
10010
9925
  * @type {number}
10011
9926
  * @memberof SubscriptionPlanResponse
10012
9927
  */
10013
- 'amountInCents': number;
9928
+ 'amountInCents'?: number;
10014
9929
  /**
10015
9930
  *
10016
9931
  * @type {string}
10017
9932
  * @memberof SubscriptionPlanResponse
10018
9933
  */
10019
9934
  'currency': string;
9935
+ /**
9936
+ *
9937
+ * @type {Array<PlanPrice>}
9938
+ * @memberof SubscriptionPlanResponse
9939
+ */
9940
+ 'prices': Array<PlanPrice>;
10020
9941
  /**
10021
9942
  *
10022
9943
  * @type {PlanInterval}
@@ -10029,6 +9950,18 @@ export interface SubscriptionPlanResponse {
10029
9950
  * @memberof SubscriptionPlanResponse
10030
9951
  */
10031
9952
  'priceActive': boolean;
9953
+ /**
9954
+ *
9955
+ * @type {string}
9956
+ * @memberof SubscriptionPlanResponse
9957
+ */
9958
+ 'description'?: string;
9959
+ /**
9960
+ *
9961
+ * @type {SubscriptionPlanDiscountResponse}
9962
+ * @memberof SubscriptionPlanResponse
9963
+ */
9964
+ 'discount'?: SubscriptionPlanDiscountResponse;
10032
9965
  }
10033
9966
 
10034
9967
 
@@ -10991,173 +10924,30 @@ export interface UserClubSubscription {
10991
10924
  /**
10992
10925
  *
10993
10926
  * @type {string}
10994
- * @memberof UserClubSubscription
10995
- */
10996
- 'planDescription': string | null;
10997
- /**
10998
- *
10999
- * @type {number}
11000
- * @memberof UserClubSubscription
11001
- */
11002
- 'amountInCents': number | null;
11003
- /**
11004
- *
11005
- * @type {string}
11006
- * @memberof UserClubSubscription
11007
- */
11008
- 'currency': string | null;
11009
- /**
11010
- *
11011
- * @type {PlanInterval}
11012
- * @memberof UserClubSubscription
11013
- */
11014
- 'interval': PlanInterval | null;
11015
- }
11016
-
11017
-
11018
- /**
11019
- *
11020
- * @export
11021
- * @interface UserEventParticipation
11022
- */
11023
- export interface UserEventParticipation {
11024
- /**
11025
- *
11026
- * @type {UserEventSummary}
11027
- * @memberof UserEventParticipation
11028
- */
11029
- 'event': UserEventSummary;
11030
- /**
11031
- *
11032
- * @type {EventBookingDetailSummary}
11033
- * @memberof UserEventParticipation
11034
- */
11035
- 'booking': EventBookingDetailSummary;
11036
- }
11037
- /**
11038
- *
11039
- * @export
11040
- * @interface UserEventSummary
11041
- */
11042
- export interface UserEventSummary {
11043
- /**
11044
- *
11045
- * @type {string}
11046
- * @memberof UserEventSummary
11047
- */
11048
- 'id': string;
11049
- /**
11050
- *
11051
- * @type {string}
11052
- * @memberof UserEventSummary
11053
- */
11054
- 'clubId': string;
11055
- /**
11056
- *
11057
- * @type {string}
11058
- * @memberof UserEventSummary
11059
- */
11060
- 'title': string;
11061
- /**
11062
- *
11063
- * @type {string}
11064
- * @memberof UserEventSummary
11065
- */
11066
- 'description'?: string | null;
11067
- /**
11068
- *
11069
- * @type {string}
11070
- * @memberof UserEventSummary
11071
- */
11072
- 'photoUrl'?: string | null;
11073
- /**
11074
- *
11075
- * @type {string}
11076
- * @memberof UserEventSummary
11077
- */
11078
- 'startDate': string;
11079
- /**
11080
- *
11081
- * @type {string}
11082
- * @memberof UserEventSummary
11083
- */
11084
- 'endDate': string;
11085
- /**
11086
- *
11087
- * @type {ParticipationType}
11088
- * @memberof UserEventSummary
11089
- */
11090
- 'participationType': ParticipationType;
11091
- /**
11092
- *
11093
- * @type {VisibilityType}
11094
- * @memberof UserEventSummary
11095
- */
11096
- 'visibilityType': VisibilityType;
11097
- /**
11098
- *
11099
- * @type {boolean}
11100
- * @memberof UserEventSummary
11101
- */
11102
- 'isActive': boolean;
11103
- /**
11104
- *
11105
- * @type {number}
11106
- * @memberof UserEventSummary
11107
- */
11108
- 'price'?: number | null;
11109
- /**
11110
- *
11111
- * @type {Array<string>}
11112
- * @memberof UserEventSummary
11113
- */
11114
- 'sports'?: Array<string>;
11115
- /**
11116
- *
11117
- * @type {Array<string>}
11118
- * @memberof UserEventSummary
11119
- */
11120
- 'courts'?: Array<string>;
11121
- }
11122
-
11123
-
11124
- /**
11125
- *
11126
- * @export
11127
- * @interface UserEventsResponse
11128
- */
11129
- export interface UserEventsResponse {
11130
- /**
11131
- *
11132
- * @type {number}
11133
- * @memberof UserEventsResponse
11134
- */
11135
- 'total': number;
11136
- /**
11137
- *
11138
- * @type {number}
11139
- * @memberof UserEventsResponse
10927
+ * @memberof UserClubSubscription
11140
10928
  */
11141
- 'limit': number;
10929
+ 'planDescription': string | null;
11142
10930
  /**
11143
10931
  *
11144
10932
  * @type {number}
11145
- * @memberof UserEventsResponse
10933
+ * @memberof UserClubSubscription
11146
10934
  */
11147
- 'skip': number;
10935
+ 'amountInCents': number | null;
11148
10936
  /**
11149
10937
  *
11150
- * @type {boolean}
11151
- * @memberof UserEventsResponse
10938
+ * @type {string}
10939
+ * @memberof UserClubSubscription
11152
10940
  */
11153
- 'hasMore': boolean;
10941
+ 'currency': string | null;
11154
10942
  /**
11155
10943
  *
11156
- * @type {Array<UserEventParticipation>}
11157
- * @memberof UserEventsResponse
10944
+ * @type {PlanInterval}
10945
+ * @memberof UserClubSubscription
11158
10946
  */
11159
- 'participations': Array<UserEventParticipation>;
10947
+ 'interval': PlanInterval | null;
11160
10948
  }
10949
+
10950
+
11161
10951
  /**
11162
10952
  *
11163
10953
  * @export
@@ -11557,21 +11347,6 @@ export interface VerifyEmailRequest {
11557
11347
  */
11558
11348
  'token'?: string;
11559
11349
  }
11560
- /**
11561
- *
11562
- * @export
11563
- * @enum {string}
11564
- */
11565
-
11566
- export const VisibilityType = {
11567
- Public: 'public',
11568
- Private: 'private',
11569
- Invitation: 'invitation'
11570
- } as const;
11571
-
11572
- export type VisibilityType = typeof VisibilityType[keyof typeof VisibilityType];
11573
-
11574
-
11575
11350
  /**
11576
11351
  *
11577
11352
  * @export
@@ -12247,17 +12022,17 @@ export class BookingsManagerApi extends BaseAPI {
12247
12022
  export const BookingsStaffApiAxiosParamCreator = function (configuration?: Configuration) {
12248
12023
  return {
12249
12024
  /**
12250
- * Check-in des joueurs only for club with payment features
12025
+ * Check-in d\'un joueur (paiement en ligne ou sur place)
12251
12026
  * @param {string} bookingId
12252
- * @param {CheckInPlayersRequest} checkInPlayersRequest
12027
+ * @param {CheckInPlayerRequest} checkInPlayerRequest
12253
12028
  * @param {*} [options] Override http request option.
12254
12029
  * @throws {RequiredError}
12255
12030
  */
12256
- checkInPlayers: async (bookingId: string, checkInPlayersRequest: CheckInPlayersRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12031
+ checkInPlayer: async (bookingId: string, checkInPlayerRequest: CheckInPlayerRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12257
12032
  // verify required parameter 'bookingId' is not null or undefined
12258
- assertParamExists('checkInPlayers', 'bookingId', bookingId)
12259
- // verify required parameter 'checkInPlayersRequest' is not null or undefined
12260
- assertParamExists('checkInPlayers', 'checkInPlayersRequest', checkInPlayersRequest)
12033
+ assertParamExists('checkInPlayer', 'bookingId', bookingId)
12034
+ // verify required parameter 'checkInPlayerRequest' is not null or undefined
12035
+ assertParamExists('checkInPlayer', 'checkInPlayerRequest', checkInPlayerRequest)
12261
12036
  const localVarPath = `/api/bookings/{bookingId}/check-in`
12262
12037
  .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
12263
12038
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -12282,7 +12057,7 @@ export const BookingsStaffApiAxiosParamCreator = function (configuration?: Confi
12282
12057
  setSearchParams(localVarUrlObj, localVarQueryParameter);
12283
12058
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12284
12059
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
12285
- localVarRequestOptions.data = serializeDataIfNeeded(checkInPlayersRequest, localVarRequestOptions, configuration)
12060
+ localVarRequestOptions.data = serializeDataIfNeeded(checkInPlayerRequest, localVarRequestOptions, configuration)
12286
12061
 
12287
12062
  return {
12288
12063
  url: toPathString(localVarUrlObj),
@@ -12582,16 +12357,16 @@ export const BookingsStaffApiFp = function(configuration?: Configuration) {
12582
12357
  const localVarAxiosParamCreator = BookingsStaffApiAxiosParamCreator(configuration)
12583
12358
  return {
12584
12359
  /**
12585
- * Check-in des joueurs only for club with payment features
12360
+ * Check-in d\'un joueur (paiement en ligne ou sur place)
12586
12361
  * @param {string} bookingId
12587
- * @param {CheckInPlayersRequest} checkInPlayersRequest
12362
+ * @param {CheckInPlayerRequest} checkInPlayerRequest
12588
12363
  * @param {*} [options] Override http request option.
12589
12364
  * @throws {RequiredError}
12590
12365
  */
12591
- async checkInPlayers(bookingId: string, checkInPlayersRequest: CheckInPlayersRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CheckInPlayersResponse>> {
12592
- const localVarAxiosArgs = await localVarAxiosParamCreator.checkInPlayers(bookingId, checkInPlayersRequest, options);
12366
+ async checkInPlayer(bookingId: string, checkInPlayerRequest: CheckInPlayerRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CheckInPlayerResponse>> {
12367
+ const localVarAxiosArgs = await localVarAxiosParamCreator.checkInPlayer(bookingId, checkInPlayerRequest, options);
12593
12368
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
12594
- const localVarOperationServerBasePath = operationServerMap['BookingsStaffApi.checkInPlayers']?.[localVarOperationServerIndex]?.url;
12369
+ const localVarOperationServerBasePath = operationServerMap['BookingsStaffApi.checkInPlayer']?.[localVarOperationServerIndex]?.url;
12595
12370
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12596
12371
  },
12597
12372
  /**
@@ -12693,13 +12468,13 @@ export const BookingsStaffApiFactory = function (configuration?: Configuration,
12693
12468
  const localVarFp = BookingsStaffApiFp(configuration)
12694
12469
  return {
12695
12470
  /**
12696
- * Check-in des joueurs only for club with payment features
12697
- * @param {BookingsStaffApiCheckInPlayersRequest} requestParameters Request parameters.
12471
+ * Check-in d\'un joueur (paiement en ligne ou sur place)
12472
+ * @param {BookingsStaffApiCheckInPlayerRequest} requestParameters Request parameters.
12698
12473
  * @param {*} [options] Override http request option.
12699
12474
  * @throws {RequiredError}
12700
12475
  */
12701
- checkInPlayers(requestParameters: BookingsStaffApiCheckInPlayersRequest, options?: RawAxiosRequestConfig): AxiosPromise<CheckInPlayersResponse> {
12702
- return localVarFp.checkInPlayers(requestParameters.bookingId, requestParameters.checkInPlayersRequest, options).then((request) => request(axios, basePath));
12476
+ checkInPlayer(requestParameters: BookingsStaffApiCheckInPlayerRequest, options?: RawAxiosRequestConfig): AxiosPromise<CheckInPlayerResponse> {
12477
+ return localVarFp.checkInPlayer(requestParameters.bookingId, requestParameters.checkInPlayerRequest, options).then((request) => request(axios, basePath));
12703
12478
  },
12704
12479
  /**
12705
12480
  * Créer une réservation pour un joueur depuis l\'espace staff
@@ -12768,24 +12543,24 @@ export const BookingsStaffApiFactory = function (configuration?: Configuration,
12768
12543
  };
12769
12544
 
12770
12545
  /**
12771
- * Request parameters for checkInPlayers operation in BookingsStaffApi.
12546
+ * Request parameters for checkInPlayer operation in BookingsStaffApi.
12772
12547
  * @export
12773
- * @interface BookingsStaffApiCheckInPlayersRequest
12548
+ * @interface BookingsStaffApiCheckInPlayerRequest
12774
12549
  */
12775
- export interface BookingsStaffApiCheckInPlayersRequest {
12550
+ export interface BookingsStaffApiCheckInPlayerRequest {
12776
12551
  /**
12777
12552
  *
12778
12553
  * @type {string}
12779
- * @memberof BookingsStaffApiCheckInPlayers
12554
+ * @memberof BookingsStaffApiCheckInPlayer
12780
12555
  */
12781
12556
  readonly bookingId: string
12782
12557
 
12783
12558
  /**
12784
12559
  *
12785
- * @type {CheckInPlayersRequest}
12786
- * @memberof BookingsStaffApiCheckInPlayers
12560
+ * @type {CheckInPlayerRequest}
12561
+ * @memberof BookingsStaffApiCheckInPlayer
12787
12562
  */
12788
- readonly checkInPlayersRequest: CheckInPlayersRequest
12563
+ readonly checkInPlayerRequest: CheckInPlayerRequest
12789
12564
  }
12790
12565
 
12791
12566
  /**
@@ -12922,14 +12697,14 @@ export interface BookingsStaffApiListClubBookingsRequest {
12922
12697
  */
12923
12698
  export class BookingsStaffApi extends BaseAPI {
12924
12699
  /**
12925
- * Check-in des joueurs only for club with payment features
12926
- * @param {BookingsStaffApiCheckInPlayersRequest} requestParameters Request parameters.
12700
+ * Check-in d\'un joueur (paiement en ligne ou sur place)
12701
+ * @param {BookingsStaffApiCheckInPlayerRequest} requestParameters Request parameters.
12927
12702
  * @param {*} [options] Override http request option.
12928
12703
  * @throws {RequiredError}
12929
12704
  * @memberof BookingsStaffApi
12930
12705
  */
12931
- public checkInPlayers(requestParameters: BookingsStaffApiCheckInPlayersRequest, options?: RawAxiosRequestConfig) {
12932
- return BookingsStaffApiFp(this.configuration).checkInPlayers(requestParameters.bookingId, requestParameters.checkInPlayersRequest, options).then((request) => request(this.axios, this.basePath));
12706
+ public checkInPlayer(requestParameters: BookingsStaffApiCheckInPlayerRequest, options?: RawAxiosRequestConfig) {
12707
+ return BookingsStaffApiFp(this.configuration).checkInPlayer(requestParameters.bookingId, requestParameters.checkInPlayerRequest, options).then((request) => request(this.axios, this.basePath));
12933
12708
  }
12934
12709
 
12935
12710
  /**
@@ -19414,6 +19189,43 @@ export const ClubsStaffApiAxiosParamCreator = function (configuration?: Configur
19414
19189
 
19415
19190
 
19416
19191
 
19192
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
19193
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
19194
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
19195
+
19196
+ return {
19197
+ url: toPathString(localVarUrlObj),
19198
+ options: localVarRequestOptions,
19199
+ };
19200
+ },
19201
+ /**
19202
+ *
19203
+ * @param {string} clubId
19204
+ * @param {*} [options] Override http request option.
19205
+ * @throws {RequiredError}
19206
+ */
19207
+ getClubType: async (clubId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
19208
+ // verify required parameter 'clubId' is not null or undefined
19209
+ assertParamExists('getClubType', 'clubId', clubId)
19210
+ const localVarPath = `/api/clubs/{clubId}/clubType`
19211
+ .replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
19212
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
19213
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
19214
+ let baseOptions;
19215
+ if (configuration) {
19216
+ baseOptions = configuration.baseOptions;
19217
+ }
19218
+
19219
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
19220
+ const localVarHeaderParameter = {} as any;
19221
+ const localVarQueryParameter = {} as any;
19222
+
19223
+ // authentication bearerAuth required
19224
+ // http bearer authentication required
19225
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
19226
+
19227
+
19228
+
19417
19229
  setSearchParams(localVarUrlObj, localVarQueryParameter);
19418
19230
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
19419
19231
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -19682,6 +19494,18 @@ export const ClubsStaffApiFp = function(configuration?: Configuration) {
19682
19494
  const localVarOperationServerBasePath = operationServerMap['ClubsStaffApi.getClubRoles']?.[localVarOperationServerIndex]?.url;
19683
19495
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19684
19496
  },
19497
+ /**
19498
+ *
19499
+ * @param {string} clubId
19500
+ * @param {*} [options] Override http request option.
19501
+ * @throws {RequiredError}
19502
+ */
19503
+ async getClubType(clubId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetClubType200Response>> {
19504
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getClubType(clubId, options);
19505
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19506
+ const localVarOperationServerBasePath = operationServerMap['ClubsStaffApi.getClubType']?.[localVarOperationServerIndex]?.url;
19507
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19508
+ },
19685
19509
  /**
19686
19510
  * Récupère les terrains d\'un club
19687
19511
  * @param {*} [options] Override http request option.
@@ -19795,6 +19619,15 @@ export const ClubsStaffApiFactory = function (configuration?: Configuration, bas
19795
19619
  getClubRoles(options?: RawAxiosRequestConfig): AxiosPromise<GetClubRoles200Response> {
19796
19620
  return localVarFp.getClubRoles(options).then((request) => request(axios, basePath));
19797
19621
  },
19622
+ /**
19623
+ *
19624
+ * @param {ClubsStaffApiGetClubTypeRequest} requestParameters Request parameters.
19625
+ * @param {*} [options] Override http request option.
19626
+ * @throws {RequiredError}
19627
+ */
19628
+ getClubType(requestParameters: ClubsStaffApiGetClubTypeRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetClubType200Response> {
19629
+ return localVarFp.getClubType(requestParameters.clubId, options).then((request) => request(axios, basePath));
19630
+ },
19798
19631
  /**
19799
19632
  * Récupère les terrains d\'un club
19800
19633
  * @param {*} [options] Override http request option.
@@ -19854,6 +19687,20 @@ export interface ClubsStaffApiCreateOnsiteInvoiceForBookingRequest {
19854
19687
  readonly createOnsiteInvoiceRequest: CreateOnsiteInvoiceRequest
19855
19688
  }
19856
19689
 
19690
+ /**
19691
+ * Request parameters for getClubType operation in ClubsStaffApi.
19692
+ * @export
19693
+ * @interface ClubsStaffApiGetClubTypeRequest
19694
+ */
19695
+ export interface ClubsStaffApiGetClubTypeRequest {
19696
+ /**
19697
+ *
19698
+ * @type {string}
19699
+ * @memberof ClubsStaffApiGetClubType
19700
+ */
19701
+ readonly clubId: string
19702
+ }
19703
+
19857
19704
  /**
19858
19705
  * Request parameters for getInvoices operation in ClubsStaffApi.
19859
19706
  * @export
@@ -20013,6 +19860,17 @@ export class ClubsStaffApi extends BaseAPI {
20013
19860
  return ClubsStaffApiFp(this.configuration).getClubRoles(options).then((request) => request(this.axios, this.basePath));
20014
19861
  }
20015
19862
 
19863
+ /**
19864
+ *
19865
+ * @param {ClubsStaffApiGetClubTypeRequest} requestParameters Request parameters.
19866
+ * @param {*} [options] Override http request option.
19867
+ * @throws {RequiredError}
19868
+ * @memberof ClubsStaffApi
19869
+ */
19870
+ public getClubType(requestParameters: ClubsStaffApiGetClubTypeRequest, options?: RawAxiosRequestConfig) {
19871
+ return ClubsStaffApiFp(this.configuration).getClubType(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
19872
+ }
19873
+
20016
19874
  /**
20017
19875
  * Récupère les terrains d\'un club
20018
19876
  * @param {*} [options] Override http request option.
@@ -20265,11 +20123,10 @@ export const EventsApiAxiosParamCreator = function (configuration?: Configuratio
20265
20123
  /**
20266
20124
  * Get a specific event by ID
20267
20125
  * @param {string} eventId
20268
- * @param {string} [userId]
20269
20126
  * @param {*} [options] Override http request option.
20270
20127
  * @throws {RequiredError}
20271
20128
  */
20272
- getEventById: async (eventId: string, userId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
20129
+ getEventById: async (eventId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
20273
20130
  // verify required parameter 'eventId' is not null or undefined
20274
20131
  assertParamExists('getEventById', 'eventId', eventId)
20275
20132
  const localVarPath = `/api/events/{eventId}`
@@ -20285,10 +20142,6 @@ export const EventsApiAxiosParamCreator = function (configuration?: Configuratio
20285
20142
  const localVarHeaderParameter = {} as any;
20286
20143
  const localVarQueryParameter = {} as any;
20287
20144
 
20288
- if (userId !== undefined) {
20289
- localVarQueryParameter['userId'] = userId;
20290
- }
20291
-
20292
20145
 
20293
20146
 
20294
20147
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -20468,12 +20321,11 @@ export const EventsApiFp = function(configuration?: Configuration) {
20468
20321
  /**
20469
20322
  * Get a specific event by ID
20470
20323
  * @param {string} eventId
20471
- * @param {string} [userId]
20472
20324
  * @param {*} [options] Override http request option.
20473
20325
  * @throws {RequiredError}
20474
20326
  */
20475
- async getEventById(eventId: string, userId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PublishEventResponse>> {
20476
- const localVarAxiosArgs = await localVarAxiosParamCreator.getEventById(eventId, userId, options);
20327
+ async getEventById(eventId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PublishEventResponse>> {
20328
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getEventById(eventId, options);
20477
20329
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
20478
20330
  const localVarOperationServerBasePath = operationServerMap['EventsApi.getEventById']?.[localVarOperationServerIndex]?.url;
20479
20331
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -20553,7 +20405,7 @@ export const EventsApiFactory = function (configuration?: Configuration, basePat
20553
20405
  * @throws {RequiredError}
20554
20406
  */
20555
20407
  getEventById(requestParameters: EventsApiGetEventByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<PublishEventResponse> {
20556
- return localVarFp.getEventById(requestParameters.eventId, requestParameters.userId, options).then((request) => request(axios, basePath));
20408
+ return localVarFp.getEventById(requestParameters.eventId, options).then((request) => request(axios, basePath));
20557
20409
  },
20558
20410
  /**
20559
20411
  * Get all published events for a club
@@ -20639,13 +20491,6 @@ export interface EventsApiGetEventByIdRequest {
20639
20491
  * @memberof EventsApiGetEventById
20640
20492
  */
20641
20493
  readonly eventId: string
20642
-
20643
- /**
20644
- *
20645
- * @type {string}
20646
- * @memberof EventsApiGetEventById
20647
- */
20648
- readonly userId?: string
20649
20494
  }
20650
20495
 
20651
20496
  /**
@@ -20755,7 +20600,7 @@ export class EventsApi extends BaseAPI {
20755
20600
  * @memberof EventsApi
20756
20601
  */
20757
20602
  public getEventById(requestParameters: EventsApiGetEventByIdRequest, options?: RawAxiosRequestConfig) {
20758
- return EventsApiFp(this.configuration).getEventById(requestParameters.eventId, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
20603
+ return EventsApiFp(this.configuration).getEventById(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
20759
20604
  }
20760
20605
 
20761
20606
  /**
@@ -22651,6 +22496,43 @@ export class SportsPublicApi extends BaseAPI {
22651
22496
  */
22652
22497
  export const SubscriptionsManagerApiAxiosParamCreator = function (configuration?: Configuration) {
22653
22498
  return {
22499
+ /**
22500
+ * Supprime (archive) un plan par productId (manager)
22501
+ * @param {string} productId
22502
+ * @param {*} [options] Override http request option.
22503
+ * @throws {RequiredError}
22504
+ */
22505
+ archivePlan: async (productId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
22506
+ // verify required parameter 'productId' is not null or undefined
22507
+ assertParamExists('archivePlan', 'productId', productId)
22508
+ const localVarPath = `/api/subscriptions/plans/{productId}/archive`
22509
+ .replace(`{${"productId"}}`, encodeURIComponent(String(productId)));
22510
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
22511
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
22512
+ let baseOptions;
22513
+ if (configuration) {
22514
+ baseOptions = configuration.baseOptions;
22515
+ }
22516
+
22517
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
22518
+ const localVarHeaderParameter = {} as any;
22519
+ const localVarQueryParameter = {} as any;
22520
+
22521
+ // authentication bearerAuth required
22522
+ // http bearer authentication required
22523
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
22524
+
22525
+
22526
+
22527
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
22528
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
22529
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
22530
+
22531
+ return {
22532
+ url: toPathString(localVarUrlObj),
22533
+ options: localVarRequestOptions,
22534
+ };
22535
+ },
22654
22536
  /**
22655
22537
  * Crée un nouveau plan d\'abonnement (produit + price) pour le club (manager)
22656
22538
  * @param {CreateSubscriptionPlanRequest} createSubscriptionPlanRequest
@@ -22691,7 +22573,7 @@ export const SubscriptionsManagerApiAxiosParamCreator = function (configuration?
22691
22573
  };
22692
22574
  },
22693
22575
  /**
22694
- * Supprime (archive) un plan par productId (manager)
22576
+ * Supprime un plan par productId (manager)
22695
22577
  * @param {string} productId
22696
22578
  * @param {*} [options] Override http request option.
22697
22579
  * @throws {RequiredError}
@@ -22776,6 +22658,18 @@ export const SubscriptionsManagerApiAxiosParamCreator = function (configuration?
22776
22658
  export const SubscriptionsManagerApiFp = function(configuration?: Configuration) {
22777
22659
  const localVarAxiosParamCreator = SubscriptionsManagerApiAxiosParamCreator(configuration)
22778
22660
  return {
22661
+ /**
22662
+ * Supprime (archive) un plan par productId (manager)
22663
+ * @param {string} productId
22664
+ * @param {*} [options] Override http request option.
22665
+ * @throws {RequiredError}
22666
+ */
22667
+ async archivePlan(productId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteSubscriptionPlanResponse>> {
22668
+ const localVarAxiosArgs = await localVarAxiosParamCreator.archivePlan(productId, options);
22669
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
22670
+ const localVarOperationServerBasePath = operationServerMap['SubscriptionsManagerApi.archivePlan']?.[localVarOperationServerIndex]?.url;
22671
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
22672
+ },
22779
22673
  /**
22780
22674
  * Crée un nouveau plan d\'abonnement (produit + price) pour le club (manager)
22781
22675
  * @param {CreateSubscriptionPlanRequest} createSubscriptionPlanRequest
@@ -22789,7 +22683,7 @@ export const SubscriptionsManagerApiFp = function(configuration?: Configuration)
22789
22683
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
22790
22684
  },
22791
22685
  /**
22792
- * Supprime (archive) un plan par productId (manager)
22686
+ * Supprime un plan par productId (manager)
22793
22687
  * @param {string} productId
22794
22688
  * @param {*} [options] Override http request option.
22795
22689
  * @throws {RequiredError}
@@ -22822,6 +22716,15 @@ export const SubscriptionsManagerApiFp = function(configuration?: Configuration)
22822
22716
  export const SubscriptionsManagerApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
22823
22717
  const localVarFp = SubscriptionsManagerApiFp(configuration)
22824
22718
  return {
22719
+ /**
22720
+ * Supprime (archive) un plan par productId (manager)
22721
+ * @param {SubscriptionsManagerApiArchivePlanRequest} requestParameters Request parameters.
22722
+ * @param {*} [options] Override http request option.
22723
+ * @throws {RequiredError}
22724
+ */
22725
+ archivePlan(requestParameters: SubscriptionsManagerApiArchivePlanRequest, options?: RawAxiosRequestConfig): AxiosPromise<DeleteSubscriptionPlanResponse> {
22726
+ return localVarFp.archivePlan(requestParameters.productId, options).then((request) => request(axios, basePath));
22727
+ },
22825
22728
  /**
22826
22729
  * Crée un nouveau plan d\'abonnement (produit + price) pour le club (manager)
22827
22730
  * @param {SubscriptionsManagerApiCreatePlanRequest} requestParameters Request parameters.
@@ -22832,7 +22735,7 @@ export const SubscriptionsManagerApiFactory = function (configuration?: Configur
22832
22735
  return localVarFp.createPlan(requestParameters.createSubscriptionPlanRequest, options).then((request) => request(axios, basePath));
22833
22736
  },
22834
22737
  /**
22835
- * Supprime (archive) un plan par productId (manager)
22738
+ * Supprime un plan par productId (manager)
22836
22739
  * @param {SubscriptionsManagerApiDeletePlanRequest} requestParameters Request parameters.
22837
22740
  * @param {*} [options] Override http request option.
22838
22741
  * @throws {RequiredError}
@@ -22852,6 +22755,20 @@ export const SubscriptionsManagerApiFactory = function (configuration?: Configur
22852
22755
  };
22853
22756
  };
22854
22757
 
22758
+ /**
22759
+ * Request parameters for archivePlan operation in SubscriptionsManagerApi.
22760
+ * @export
22761
+ * @interface SubscriptionsManagerApiArchivePlanRequest
22762
+ */
22763
+ export interface SubscriptionsManagerApiArchivePlanRequest {
22764
+ /**
22765
+ *
22766
+ * @type {string}
22767
+ * @memberof SubscriptionsManagerApiArchivePlan
22768
+ */
22769
+ readonly productId: string
22770
+ }
22771
+
22855
22772
  /**
22856
22773
  * Request parameters for createPlan operation in SubscriptionsManagerApi.
22857
22774
  * @export
@@ -22901,6 +22818,17 @@ export interface SubscriptionsManagerApiUpdatePlanRequest {
22901
22818
  * @extends {BaseAPI}
22902
22819
  */
22903
22820
  export class SubscriptionsManagerApi extends BaseAPI {
22821
+ /**
22822
+ * Supprime (archive) un plan par productId (manager)
22823
+ * @param {SubscriptionsManagerApiArchivePlanRequest} requestParameters Request parameters.
22824
+ * @param {*} [options] Override http request option.
22825
+ * @throws {RequiredError}
22826
+ * @memberof SubscriptionsManagerApi
22827
+ */
22828
+ public archivePlan(requestParameters: SubscriptionsManagerApiArchivePlanRequest, options?: RawAxiosRequestConfig) {
22829
+ return SubscriptionsManagerApiFp(this.configuration).archivePlan(requestParameters.productId, options).then((request) => request(this.axios, this.basePath));
22830
+ }
22831
+
22904
22832
  /**
22905
22833
  * Crée un nouveau plan d\'abonnement (produit + price) pour le club (manager)
22906
22834
  * @param {SubscriptionsManagerApiCreatePlanRequest} requestParameters Request parameters.
@@ -22913,7 +22841,7 @@ export class SubscriptionsManagerApi extends BaseAPI {
22913
22841
  }
22914
22842
 
22915
22843
  /**
22916
- * Supprime (archive) un plan par productId (manager)
22844
+ * Supprime un plan par productId (manager)
22917
22845
  * @param {SubscriptionsManagerApiDeletePlanRequest} requestParameters Request parameters.
22918
22846
  * @param {*} [options] Override http request option.
22919
22847
  * @throws {RequiredError}
@@ -24423,49 +24351,6 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
24423
24351
 
24424
24352
 
24425
24353
 
24426
- setSearchParams(localVarUrlObj, localVarQueryParameter);
24427
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
24428
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
24429
-
24430
- return {
24431
- url: toPathString(localVarUrlObj),
24432
- options: localVarRequestOptions,
24433
- };
24434
- },
24435
- /**
24436
- *
24437
- * @param {number} [limit]
24438
- * @param {number} [skip]
24439
- * @param {*} [options] Override http request option.
24440
- * @throws {RequiredError}
24441
- */
24442
- getUserEvents: async (limit?: number, skip?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
24443
- const localVarPath = `/api/users/me/events`;
24444
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
24445
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
24446
- let baseOptions;
24447
- if (configuration) {
24448
- baseOptions = configuration.baseOptions;
24449
- }
24450
-
24451
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
24452
- const localVarHeaderParameter = {} as any;
24453
- const localVarQueryParameter = {} as any;
24454
-
24455
- // authentication bearerAuth required
24456
- // http bearer authentication required
24457
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
24458
-
24459
- if (limit !== undefined) {
24460
- localVarQueryParameter['limit'] = limit;
24461
- }
24462
-
24463
- if (skip !== undefined) {
24464
- localVarQueryParameter['skip'] = skip;
24465
- }
24466
-
24467
-
24468
-
24469
24354
  setSearchParams(localVarUrlObj, localVarQueryParameter);
24470
24355
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
24471
24356
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -25404,19 +25289,6 @@ export const UsersApiFp = function(configuration?: Configuration) {
25404
25289
  const localVarOperationServerBasePath = operationServerMap['UsersApi.getUserBookings']?.[localVarOperationServerIndex]?.url;
25405
25290
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
25406
25291
  },
25407
- /**
25408
- *
25409
- * @param {number} [limit]
25410
- * @param {number} [skip]
25411
- * @param {*} [options] Override http request option.
25412
- * @throws {RequiredError}
25413
- */
25414
- async getUserEvents(limit?: number, skip?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserEventsResponse>> {
25415
- const localVarAxiosArgs = await localVarAxiosParamCreator.getUserEvents(limit, skip, options);
25416
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
25417
- const localVarOperationServerBasePath = operationServerMap['UsersApi.getUserEvents']?.[localVarOperationServerIndex]?.url;
25418
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
25419
- },
25420
25292
  /**
25421
25293
  *
25422
25294
  * @param {string} id
@@ -25805,15 +25677,6 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
25805
25677
  getUserBookings(requestParameters: UsersApiGetUserBookingsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<UserBookingsResponse> {
25806
25678
  return localVarFp.getUserBookings(requestParameters.limit, requestParameters.skip, options).then((request) => request(axios, basePath));
25807
25679
  },
25808
- /**
25809
- *
25810
- * @param {UsersApiGetUserEventsRequest} requestParameters Request parameters.
25811
- * @param {*} [options] Override http request option.
25812
- * @throws {RequiredError}
25813
- */
25814
- getUserEvents(requestParameters: UsersApiGetUserEventsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<UserEventsResponse> {
25815
- return localVarFp.getUserEvents(requestParameters.limit, requestParameters.skip, options).then((request) => request(axios, basePath));
25816
- },
25817
25680
  /**
25818
25681
  *
25819
25682
  * @param {UsersApiGetUserProfileByIdRequest} requestParameters Request parameters.
@@ -26181,27 +26044,6 @@ export interface UsersApiGetUserBookingsRequest {
26181
26044
  readonly skip?: number
26182
26045
  }
26183
26046
 
26184
- /**
26185
- * Request parameters for getUserEvents operation in UsersApi.
26186
- * @export
26187
- * @interface UsersApiGetUserEventsRequest
26188
- */
26189
- export interface UsersApiGetUserEventsRequest {
26190
- /**
26191
- *
26192
- * @type {number}
26193
- * @memberof UsersApiGetUserEvents
26194
- */
26195
- readonly limit?: number
26196
-
26197
- /**
26198
- *
26199
- * @type {number}
26200
- * @memberof UsersApiGetUserEvents
26201
- */
26202
- readonly skip?: number
26203
- }
26204
-
26205
26047
  /**
26206
26048
  * Request parameters for getUserProfileById operation in UsersApi.
26207
26049
  * @export
@@ -26700,17 +26542,6 @@ export class UsersApi extends BaseAPI {
26700
26542
  return UsersApiFp(this.configuration).getUserBookings(requestParameters.limit, requestParameters.skip, options).then((request) => request(this.axios, this.basePath));
26701
26543
  }
26702
26544
 
26703
- /**
26704
- *
26705
- * @param {UsersApiGetUserEventsRequest} requestParameters Request parameters.
26706
- * @param {*} [options] Override http request option.
26707
- * @throws {RequiredError}
26708
- * @memberof UsersApi
26709
- */
26710
- public getUserEvents(requestParameters: UsersApiGetUserEventsRequest = {}, options?: RawAxiosRequestConfig) {
26711
- return UsersApiFp(this.configuration).getUserEvents(requestParameters.limit, requestParameters.skip, options).then((request) => request(this.axios, this.basePath));
26712
- }
26713
-
26714
26545
  /**
26715
26546
  *
26716
26547
  * @param {UsersApiGetUserProfileByIdRequest} requestParameters Request parameters.