@tennac-booking/sdk 1.0.124 → 1.0.125

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 (57) hide show
  1. package/.openapi-generator/FILES +343 -333
  2. package/README.md +16 -6
  3. package/api.ts +578 -313
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +1 -1
  7. package/dist/api.d.ts +458 -224
  8. package/dist/api.js +136 -79
  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 +458 -224
  16. package/dist/esm/api.js +132 -75
  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/ClubPlayerSubscriptionSummary.md +3 -3
  28. package/docs/CreatePlan201Response.md +0 -2
  29. package/docs/CreateSubscriptionPlanRequest.md +2 -2
  30. package/docs/CreateSubscriptionPlanRequestDiscount.md +0 -2
  31. package/docs/DeleteSubscriptionPlanResponse.md +0 -2
  32. package/docs/EventBookingDetailSummary.md +40 -0
  33. package/docs/EventBookingResponse.md +36 -0
  34. package/docs/EventBookingResponsePlayersInner.md +28 -0
  35. package/docs/{PlanPriceInput.md → EventBookingResponsePlayersInnerInvoiceStatus.md} +3 -7
  36. package/docs/EventBookingResponseSetupStatus.md +18 -0
  37. package/docs/EventBookingStatus.md +16 -0
  38. package/docs/EventsApi.md +4 -1
  39. package/docs/InvoiceStatusSETUPPENDING.md +8 -0
  40. package/docs/InvoiceStatusSETUPSUCCESS.md +8 -0
  41. package/docs/MonthlyTurnoverResponse.md +1 -0
  42. package/docs/OffPeakRule.md +0 -2
  43. package/docs/ParticipationType.md +10 -0
  44. package/docs/PublicSubscriptionPlanResponse.md +1 -5
  45. package/docs/PublishEventResponse.md +2 -0
  46. package/docs/SendSubscriptionInvitationRequest.md +0 -2
  47. package/docs/SubscriptionPlanResponse.md +1 -7
  48. package/docs/SubscriptionsManagerApi.md +1 -55
  49. package/docs/UserEventParticipation.md +22 -0
  50. package/docs/UserEventSummary.md +44 -0
  51. package/docs/UserEventsResponse.md +28 -0
  52. package/docs/UsersApi.md +54 -0
  53. package/docs/VisibilityType.md +12 -0
  54. package/index.ts +1 -1
  55. package/package.json +1 -1
  56. package/docs/PlanPrice.md +0 -26
  57. package/docs/SubscriptionPlanDiscountResponse.md +0 -34
package/dist/esm/api.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * openapi.json
3
3
  * Pandook API Documentation
4
4
  *
5
- * The version of the OpenAPI document: 1.0.121
5
+ * The version of the OpenAPI document: 1.0.125
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2705,11 +2705,11 @@ export interface ClubPlayerSubscriptionSummary {
2705
2705
  */
2706
2706
  'name': string | null;
2707
2707
  /**
2708
- * Tarifications disponibles
2709
- * @type {Array<PlanPrice>}
2708
+ * Montant en centimes
2709
+ * @type {number}
2710
2710
  * @memberof ClubPlayerSubscriptionSummary
2711
2711
  */
2712
- 'prices': Array<PlanPrice>;
2712
+ 'amountInCents': number | null;
2713
2713
  /**
2714
2714
  * Devise
2715
2715
  * @type {string}
@@ -2717,7 +2717,7 @@ export interface ClubPlayerSubscriptionSummary {
2717
2717
  */
2718
2718
  'currency': string | null;
2719
2719
  /**
2720
- * Intervalle par défaut
2720
+ * Intervalle de facturation
2721
2721
  * @type {string}
2722
2722
  * @memberof ClubPlayerSubscriptionSummary
2723
2723
  */
@@ -3917,12 +3917,6 @@ export interface CreateOnsiteInvoiceResponseInvoice {
3917
3917
  * @interface CreatePlan201Response
3918
3918
  */
3919
3919
  export interface CreatePlan201Response {
3920
- /**
3921
- *
3922
- * @type {Array<string>}
3923
- * @memberof CreatePlan201Response
3924
- */
3925
- 'priceIds': Array<string>;
3926
3920
  /**
3927
3921
  *
3928
3922
  * @type {string}
@@ -4037,10 +4031,10 @@ export interface CreateSubscriptionPlanRequest {
4037
4031
  'description'?: string;
4038
4032
  /**
4039
4033
  *
4040
- * @type {Array<PlanPriceInput>}
4034
+ * @type {number}
4041
4035
  * @memberof CreateSubscriptionPlanRequest
4042
4036
  */
4043
- 'prices': Array<PlanPriceInput>;
4037
+ 'amountInCents': number;
4044
4038
  /**
4045
4039
  *
4046
4040
  * @type {string}
@@ -4076,15 +4070,8 @@ export interface CreateSubscriptionPlanRequestDiscount {
4076
4070
  *
4077
4071
  * @type {Array<OffPeakRule>}
4078
4072
  * @memberof CreateSubscriptionPlanRequestDiscount
4079
- * @deprecated
4080
4073
  */
4081
4074
  'offPeakRules'?: Array<OffPeakRule>;
4082
- /**
4083
- * 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.
4084
- * @type {Array<string>}
4085
- * @memberof CreateSubscriptionPlanRequestDiscount
4086
- */
4087
- 'offPeakRuleNames'?: Array<string>;
4088
4075
  /**
4089
4076
  *
4090
4077
  * @type {string}
@@ -4236,12 +4223,6 @@ export interface DeleteSubscriptionPlanResponse {
4236
4223
  * @memberof DeleteSubscriptionPlanResponse
4237
4224
  */
4238
4225
  'message': string;
4239
- /**
4240
- *
4241
- * @type {boolean}
4242
- * @memberof DeleteSubscriptionPlanResponse
4243
- */
4244
- 'archivedInstead'?: boolean;
4245
4226
  }
4246
4227
  /**
4247
4228
  *
@@ -4360,6 +4341,204 @@ export interface EstimateEventPriceRequestSharesInner {
4360
4341
  */
4361
4342
  'playerId': string;
4362
4343
  }
4344
+ /**
4345
+ *
4346
+ * @export
4347
+ * @interface EventBookingDetailSummary
4348
+ */
4349
+ export interface EventBookingDetailSummary {
4350
+ /**
4351
+ *
4352
+ * @type {string}
4353
+ * @memberof EventBookingDetailSummary
4354
+ */
4355
+ 'id': string;
4356
+ /**
4357
+ *
4358
+ * @type {EventBookingStatus}
4359
+ * @memberof EventBookingDetailSummary
4360
+ */
4361
+ 'status': EventBookingStatus;
4362
+ /**
4363
+ *
4364
+ * @type {string}
4365
+ * @memberof EventBookingDetailSummary
4366
+ */
4367
+ 'teamName'?: string | null;
4368
+ /**
4369
+ *
4370
+ * @type {Array<string>}
4371
+ * @memberof EventBookingDetailSummary
4372
+ */
4373
+ 'players': Array<string>;
4374
+ /**
4375
+ *
4376
+ * @type {Array<string>}
4377
+ * @memberof EventBookingDetailSummary
4378
+ */
4379
+ 'invoices': Array<string>;
4380
+ /**
4381
+ *
4382
+ * @type {string}
4383
+ * @memberof EventBookingDetailSummary
4384
+ */
4385
+ 'creatorPaymentMethodId'?: string | null;
4386
+ /**
4387
+ *
4388
+ * @type {boolean}
4389
+ * @memberof EventBookingDetailSummary
4390
+ */
4391
+ 'paymentMethodSetupCompleted': boolean;
4392
+ /**
4393
+ *
4394
+ * @type {string}
4395
+ * @memberof EventBookingDetailSummary
4396
+ */
4397
+ 'limitSetupDate'?: string | null;
4398
+ /**
4399
+ *
4400
+ * @type {string}
4401
+ * @memberof EventBookingDetailSummary
4402
+ */
4403
+ 'limitCancellationDate'?: string | null;
4404
+ /**
4405
+ *
4406
+ * @type {string}
4407
+ * @memberof EventBookingDetailSummary
4408
+ */
4409
+ 'createdAt': string;
4410
+ /**
4411
+ *
4412
+ * @type {string}
4413
+ * @memberof EventBookingDetailSummary
4414
+ */
4415
+ 'updatedAt': string;
4416
+ }
4417
+ /**
4418
+ *
4419
+ * @export
4420
+ * @interface EventBookingResponse
4421
+ */
4422
+ export interface EventBookingResponse {
4423
+ /**
4424
+ *
4425
+ * @type {string}
4426
+ * @memberof EventBookingResponse
4427
+ */
4428
+ 'id': string;
4429
+ /**
4430
+ *
4431
+ * @type {EventBookingStatus}
4432
+ * @memberof EventBookingResponse
4433
+ */
4434
+ 'status': EventBookingStatus;
4435
+ /**
4436
+ *
4437
+ * @type {string}
4438
+ * @memberof EventBookingResponse
4439
+ */
4440
+ 'teamName'?: string | null;
4441
+ /**
4442
+ *
4443
+ * @type {Array<EventBookingResponsePlayersInner>}
4444
+ * @memberof EventBookingResponse
4445
+ */
4446
+ 'players': Array<EventBookingResponsePlayersInner>;
4447
+ /**
4448
+ *
4449
+ * @type {string}
4450
+ * @memberof EventBookingResponse
4451
+ */
4452
+ 'setupLimitDate'?: string | null;
4453
+ /**
4454
+ *
4455
+ * @type {string}
4456
+ * @memberof EventBookingResponse
4457
+ */
4458
+ 'cancellationLimitDate'?: string | null;
4459
+ /**
4460
+ *
4461
+ * @type {EventBookingResponseSetupStatus}
4462
+ * @memberof EventBookingResponse
4463
+ */
4464
+ 'setupStatus'?: EventBookingResponseSetupStatus | null;
4465
+ /**
4466
+ *
4467
+ * @type {string}
4468
+ * @memberof EventBookingResponse
4469
+ */
4470
+ 'createdAt': string;
4471
+ /**
4472
+ *
4473
+ * @type {string}
4474
+ * @memberof EventBookingResponse
4475
+ */
4476
+ 'updatedAt': string;
4477
+ }
4478
+ /**
4479
+ *
4480
+ * @export
4481
+ * @interface EventBookingResponsePlayersInner
4482
+ */
4483
+ export interface EventBookingResponsePlayersInner {
4484
+ /**
4485
+ *
4486
+ * @type {EventBookingResponsePlayersInnerInvoiceStatus}
4487
+ * @memberof EventBookingResponsePlayersInner
4488
+ */
4489
+ 'invoiceStatus'?: EventBookingResponsePlayersInnerInvoiceStatus | null;
4490
+ /**
4491
+ *
4492
+ * @type {string}
4493
+ * @memberof EventBookingResponsePlayersInner
4494
+ */
4495
+ 'profilePicture'?: string | null;
4496
+ /**
4497
+ *
4498
+ * @type {string}
4499
+ * @memberof EventBookingResponsePlayersInner
4500
+ */
4501
+ 'lastName'?: string | null;
4502
+ /**
4503
+ *
4504
+ * @type {string}
4505
+ * @memberof EventBookingResponsePlayersInner
4506
+ */
4507
+ 'firstName'?: string | null;
4508
+ /**
4509
+ *
4510
+ * @type {string}
4511
+ * @memberof EventBookingResponsePlayersInner
4512
+ */
4513
+ 'id': string;
4514
+ }
4515
+ /**
4516
+ *
4517
+ * @export
4518
+ * @interface EventBookingResponsePlayersInnerInvoiceStatus
4519
+ */
4520
+ export interface EventBookingResponsePlayersInnerInvoiceStatus {
4521
+ }
4522
+ /**
4523
+ *
4524
+ * @export
4525
+ * @interface EventBookingResponseSetupStatus
4526
+ */
4527
+ export interface EventBookingResponseSetupStatus {
4528
+ }
4529
+ /**
4530
+ *
4531
+ * @export
4532
+ * @enum {string}
4533
+ */
4534
+ export declare const EventBookingStatus: {
4535
+ readonly Pending: "pending";
4536
+ readonly Paid: "paid";
4537
+ readonly Cancelled: "cancelled";
4538
+ readonly Expired: "expired";
4539
+ readonly Archived: "archived";
4540
+ };
4541
+ export type EventBookingStatus = typeof EventBookingStatus[keyof typeof EventBookingStatus];
4363
4542
  /**
4364
4543
  *
4365
4544
  * @export
@@ -5679,6 +5858,24 @@ export declare const InvoiceStatus: {
5679
5858
  readonly Expired: "expired";
5680
5859
  };
5681
5860
  export type InvoiceStatus = typeof InvoiceStatus[keyof typeof InvoiceStatus];
5861
+ /**
5862
+ *
5863
+ * @export
5864
+ * @enum {string}
5865
+ */
5866
+ export declare const InvoiceStatusSETUPPENDING: {
5867
+ readonly SetupPending: "setup_pending";
5868
+ };
5869
+ export type InvoiceStatusSETUPPENDING = typeof InvoiceStatusSETUPPENDING[keyof typeof InvoiceStatusSETUPPENDING];
5870
+ /**
5871
+ *
5872
+ * @export
5873
+ * @enum {string}
5874
+ */
5875
+ export declare const InvoiceStatusSETUPSUCCESS: {
5876
+ readonly SetupSuccess: "setup_success";
5877
+ };
5878
+ export type InvoiceStatusSETUPSUCCESS = typeof InvoiceStatusSETUPSUCCESS[keyof typeof InvoiceStatusSETUPSUCCESS];
5682
5879
  /**
5683
5880
  *
5684
5881
  * @export
@@ -6014,7 +6211,7 @@ export interface MonthlyBreakdown {
6014
6211
  'invoiceCount': number;
6015
6212
  }
6016
6213
  /**
6017
- *
6214
+ * Types TSOA pour les analytics du club
6018
6215
  * @export
6019
6216
  * @interface MonthlyTurnoverResponse
6020
6217
  */
@@ -6130,12 +6327,6 @@ export interface NoShowFeeResponse {
6130
6327
  * @interface OffPeakRule
6131
6328
  */
6132
6329
  export interface OffPeakRule {
6133
- /**
6134
- *
6135
- * @type {string}
6136
- * @memberof OffPeakRule
6137
- */
6138
- 'pricingPeriodName'?: string;
6139
6330
  /**
6140
6331
  *
6141
6332
  * @type {number}
@@ -6314,6 +6505,16 @@ export interface PartialClubWeeklySchedule {
6314
6505
  */
6315
6506
  'sunday'?: ClubDaySchedule;
6316
6507
  }
6508
+ /**
6509
+ *
6510
+ * @export
6511
+ * @enum {string}
6512
+ */
6513
+ export declare const ParticipationType: {
6514
+ readonly Solo: "solo";
6515
+ readonly Team: "team";
6516
+ };
6517
+ export type ParticipationType = typeof ParticipationType[keyof typeof ParticipationType];
6317
6518
  /**
6318
6519
  *
6319
6520
  * @export
@@ -6454,56 +6655,6 @@ export declare const PlanInterval: {
6454
6655
  readonly Semester: "semester";
6455
6656
  };
6456
6657
  export type PlanInterval = typeof PlanInterval[keyof typeof PlanInterval];
6457
- /**
6458
- *
6459
- * @export
6460
- * @interface PlanPrice
6461
- */
6462
- export interface PlanPrice {
6463
- /**
6464
- *
6465
- * @type {number}
6466
- * @memberof PlanPrice
6467
- */
6468
- 'amountInCents': number;
6469
- /**
6470
- *
6471
- * @type {PlanInterval}
6472
- * @memberof PlanPrice
6473
- */
6474
- 'interval': PlanInterval;
6475
- /**
6476
- *
6477
- * @type {boolean}
6478
- * @memberof PlanPrice
6479
- */
6480
- 'active'?: boolean;
6481
- /**
6482
- *
6483
- * @type {string}
6484
- * @memberof PlanPrice
6485
- */
6486
- 'stripePriceId'?: string;
6487
- }
6488
- /**
6489
- *
6490
- * @export
6491
- * @interface PlanPriceInput
6492
- */
6493
- export interface PlanPriceInput {
6494
- /**
6495
- *
6496
- * @type {number}
6497
- * @memberof PlanPriceInput
6498
- */
6499
- 'amountInCents': number;
6500
- /**
6501
- *
6502
- * @type {PlanInterval}
6503
- * @memberof PlanPriceInput
6504
- */
6505
- 'interval': PlanInterval;
6506
- }
6507
6658
  /**
6508
6659
  *
6509
6660
  * @export
@@ -6874,19 +7025,13 @@ export interface PublicSubscriptionPlanResponse {
6874
7025
  * @type {number}
6875
7026
  * @memberof PublicSubscriptionPlanResponse
6876
7027
  */
6877
- 'amountInCents'?: number;
7028
+ 'amountInCents': number;
6878
7029
  /**
6879
7030
  *
6880
7031
  * @type {string}
6881
7032
  * @memberof PublicSubscriptionPlanResponse
6882
7033
  */
6883
7034
  'currency': string;
6884
- /**
6885
- *
6886
- * @type {Array<PlanPrice>}
6887
- * @memberof PublicSubscriptionPlanResponse
6888
- */
6889
- 'prices': Array<PlanPrice>;
6890
7035
  /**
6891
7036
  *
6892
7037
  * @type {PlanInterval}
@@ -6899,12 +7044,6 @@ export interface PublicSubscriptionPlanResponse {
6899
7044
  * @memberof PublicSubscriptionPlanResponse
6900
7045
  */
6901
7046
  'description'?: string;
6902
- /**
6903
- *
6904
- * @type {SubscriptionPlanDiscountResponse}
6905
- * @memberof PublicSubscriptionPlanResponse
6906
- */
6907
- 'discount'?: SubscriptionPlanDiscountResponse;
6908
7047
  }
6909
7048
  /**
6910
7049
  *
@@ -7009,6 +7148,12 @@ export interface PublishEventResponse {
7009
7148
  * @memberof PublishEventResponse
7010
7149
  */
7011
7150
  'refundedBookingIds'?: Array<string>;
7151
+ /**
7152
+ *
7153
+ * @type {EventBookingResponse}
7154
+ * @memberof PublishEventResponse
7155
+ */
7156
+ 'userBooking'?: EventBookingResponse;
7012
7157
  }
7013
7158
  /**
7014
7159
  *
@@ -7535,12 +7680,6 @@ export interface SendSubscriptionInvitationRequest {
7535
7680
  * @memberof SendSubscriptionInvitationRequest
7536
7681
  */
7537
7682
  'productId': string;
7538
- /**
7539
- * Price spécifique proposé dans l\'invitation (facultatif).
7540
- * @type {string}
7541
- * @memberof SendSubscriptionInvitationRequest
7542
- */
7543
- 'priceId'?: string;
7544
7683
  }
7545
7684
  /**
7546
7685
  *
@@ -9644,61 +9783,6 @@ export interface SubscriptionMutationResponse {
9644
9783
  [key: string]: any;
9645
9784
  };
9646
9785
  }
9647
- /**
9648
- *
9649
- * @export
9650
- * @interface SubscriptionPlanDiscountResponse
9651
- */
9652
- export interface SubscriptionPlanDiscountResponse {
9653
- /**
9654
- *
9655
- * @type {DiscountType}
9656
- * @memberof SubscriptionPlanDiscountResponse
9657
- */
9658
- 'type': DiscountType;
9659
- /**
9660
- *
9661
- * @type {number}
9662
- * @memberof SubscriptionPlanDiscountResponse
9663
- */
9664
- 'percentage'?: number;
9665
- /**
9666
- *
9667
- * @type {number}
9668
- * @memberof SubscriptionPlanDiscountResponse
9669
- */
9670
- 'maxDiscountAmountInCents'?: number;
9671
- /**
9672
- *
9673
- * @type {string}
9674
- * @memberof SubscriptionPlanDiscountResponse
9675
- */
9676
- 'validFrom'?: string;
9677
- /**
9678
- *
9679
- * @type {string}
9680
- * @memberof SubscriptionPlanDiscountResponse
9681
- */
9682
- 'validTo'?: string;
9683
- /**
9684
- *
9685
- * @type {Array<string>}
9686
- * @memberof SubscriptionPlanDiscountResponse
9687
- */
9688
- 'offPeakRuleNames'?: Array<string>;
9689
- /**
9690
- *
9691
- * @type {Array<OffPeakRule>}
9692
- * @memberof SubscriptionPlanDiscountResponse
9693
- */
9694
- 'offPeakRules'?: Array<OffPeakRule>;
9695
- /**
9696
- *
9697
- * @type {boolean}
9698
- * @memberof SubscriptionPlanDiscountResponse
9699
- */
9700
- 'bookingFree'?: boolean;
9701
- }
9702
9786
  /**
9703
9787
  *
9704
9788
  * @export
@@ -9734,19 +9818,13 @@ export interface SubscriptionPlanResponse {
9734
9818
  * @type {number}
9735
9819
  * @memberof SubscriptionPlanResponse
9736
9820
  */
9737
- 'amountInCents'?: number;
9821
+ 'amountInCents': number;
9738
9822
  /**
9739
9823
  *
9740
9824
  * @type {string}
9741
9825
  * @memberof SubscriptionPlanResponse
9742
9826
  */
9743
9827
  'currency': string;
9744
- /**
9745
- *
9746
- * @type {Array<PlanPrice>}
9747
- * @memberof SubscriptionPlanResponse
9748
- */
9749
- 'prices': Array<PlanPrice>;
9750
9828
  /**
9751
9829
  *
9752
9830
  * @type {PlanInterval}
@@ -9759,18 +9837,6 @@ export interface SubscriptionPlanResponse {
9759
9837
  * @memberof SubscriptionPlanResponse
9760
9838
  */
9761
9839
  'priceActive': boolean;
9762
- /**
9763
- *
9764
- * @type {string}
9765
- * @memberof SubscriptionPlanResponse
9766
- */
9767
- 'description'?: string;
9768
- /**
9769
- *
9770
- * @type {SubscriptionPlanDiscountResponse}
9771
- * @memberof SubscriptionPlanResponse
9772
- */
9773
- 'discount'?: SubscriptionPlanDiscountResponse;
9774
9840
  }
9775
9841
  /**
9776
9842
  *
@@ -10737,6 +10803,147 @@ export interface UserClubSubscription {
10737
10803
  */
10738
10804
  'interval': PlanInterval | null;
10739
10805
  }
10806
+ /**
10807
+ *
10808
+ * @export
10809
+ * @interface UserEventParticipation
10810
+ */
10811
+ export interface UserEventParticipation {
10812
+ /**
10813
+ *
10814
+ * @type {UserEventSummary}
10815
+ * @memberof UserEventParticipation
10816
+ */
10817
+ 'event': UserEventSummary;
10818
+ /**
10819
+ *
10820
+ * @type {EventBookingDetailSummary}
10821
+ * @memberof UserEventParticipation
10822
+ */
10823
+ 'booking': EventBookingDetailSummary;
10824
+ }
10825
+ /**
10826
+ *
10827
+ * @export
10828
+ * @interface UserEventSummary
10829
+ */
10830
+ export interface UserEventSummary {
10831
+ /**
10832
+ *
10833
+ * @type {string}
10834
+ * @memberof UserEventSummary
10835
+ */
10836
+ 'id': string;
10837
+ /**
10838
+ *
10839
+ * @type {string}
10840
+ * @memberof UserEventSummary
10841
+ */
10842
+ 'clubId': string;
10843
+ /**
10844
+ *
10845
+ * @type {string}
10846
+ * @memberof UserEventSummary
10847
+ */
10848
+ 'title': string;
10849
+ /**
10850
+ *
10851
+ * @type {string}
10852
+ * @memberof UserEventSummary
10853
+ */
10854
+ 'description'?: string | null;
10855
+ /**
10856
+ *
10857
+ * @type {string}
10858
+ * @memberof UserEventSummary
10859
+ */
10860
+ 'photoUrl'?: string | null;
10861
+ /**
10862
+ *
10863
+ * @type {string}
10864
+ * @memberof UserEventSummary
10865
+ */
10866
+ 'startDate': string;
10867
+ /**
10868
+ *
10869
+ * @type {string}
10870
+ * @memberof UserEventSummary
10871
+ */
10872
+ 'endDate': string;
10873
+ /**
10874
+ *
10875
+ * @type {ParticipationType}
10876
+ * @memberof UserEventSummary
10877
+ */
10878
+ 'participationType': ParticipationType;
10879
+ /**
10880
+ *
10881
+ * @type {VisibilityType}
10882
+ * @memberof UserEventSummary
10883
+ */
10884
+ 'visibilityType': VisibilityType;
10885
+ /**
10886
+ *
10887
+ * @type {boolean}
10888
+ * @memberof UserEventSummary
10889
+ */
10890
+ 'isActive': boolean;
10891
+ /**
10892
+ *
10893
+ * @type {number}
10894
+ * @memberof UserEventSummary
10895
+ */
10896
+ 'price'?: number | null;
10897
+ /**
10898
+ *
10899
+ * @type {Array<string>}
10900
+ * @memberof UserEventSummary
10901
+ */
10902
+ 'sports'?: Array<string>;
10903
+ /**
10904
+ *
10905
+ * @type {Array<string>}
10906
+ * @memberof UserEventSummary
10907
+ */
10908
+ 'courts'?: Array<string>;
10909
+ }
10910
+ /**
10911
+ *
10912
+ * @export
10913
+ * @interface UserEventsResponse
10914
+ */
10915
+ export interface UserEventsResponse {
10916
+ /**
10917
+ *
10918
+ * @type {number}
10919
+ * @memberof UserEventsResponse
10920
+ */
10921
+ 'total': number;
10922
+ /**
10923
+ *
10924
+ * @type {number}
10925
+ * @memberof UserEventsResponse
10926
+ */
10927
+ 'limit': number;
10928
+ /**
10929
+ *
10930
+ * @type {number}
10931
+ * @memberof UserEventsResponse
10932
+ */
10933
+ 'skip': number;
10934
+ /**
10935
+ *
10936
+ * @type {boolean}
10937
+ * @memberof UserEventsResponse
10938
+ */
10939
+ 'hasMore': boolean;
10940
+ /**
10941
+ *
10942
+ * @type {Array<UserEventParticipation>}
10943
+ * @memberof UserEventsResponse
10944
+ */
10945
+ 'participations': Array<UserEventParticipation>;
10946
+ }
10740
10947
  /**
10741
10948
  *
10742
10949
  * @export
@@ -11141,6 +11348,17 @@ export interface VerifyEmailRequest {
11141
11348
  */
11142
11349
  'token'?: string;
11143
11350
  }
11351
+ /**
11352
+ *
11353
+ * @export
11354
+ * @enum {string}
11355
+ */
11356
+ export declare const VisibilityType: {
11357
+ readonly Public: "public";
11358
+ readonly Private: "private";
11359
+ readonly Invitation: "invitation";
11360
+ };
11361
+ export type VisibilityType = typeof VisibilityType[keyof typeof VisibilityType];
11144
11362
  /**
11145
11363
  *
11146
11364
  * @export
@@ -15512,10 +15730,11 @@ export declare const EventsApiAxiosParamCreator: (configuration?: Configuration)
15512
15730
  /**
15513
15731
  * Get a specific event by ID
15514
15732
  * @param {string} eventId
15733
+ * @param {string} [userId]
15515
15734
  * @param {*} [options] Override http request option.
15516
15735
  * @throws {RequiredError}
15517
15736
  */
15518
- getEventById: (eventId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
15737
+ getEventById: (eventId: string, userId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
15519
15738
  /**
15520
15739
  * Get all published events for a club
15521
15740
  * @param {string} [clubId]
@@ -15566,10 +15785,11 @@ export declare const EventsApiFp: (configuration?: Configuration) => {
15566
15785
  /**
15567
15786
  * Get a specific event by ID
15568
15787
  * @param {string} eventId
15788
+ * @param {string} [userId]
15569
15789
  * @param {*} [options] Override http request option.
15570
15790
  * @throws {RequiredError}
15571
15791
  */
15572
- getEventById(eventId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PublishEventResponse>>;
15792
+ getEventById(eventId: string, userId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PublishEventResponse>>;
15573
15793
  /**
15574
15794
  * Get all published events for a club
15575
15795
  * @param {string} [clubId]
@@ -15694,6 +15914,12 @@ export interface EventsApiGetEventByIdRequest {
15694
15914
  * @memberof EventsApiGetEventById
15695
15915
  */
15696
15916
  readonly eventId: string;
15917
+ /**
15918
+ *
15919
+ * @type {string}
15920
+ * @memberof EventsApiGetEventById
15921
+ */
15922
+ readonly userId?: string;
15697
15923
  }
15698
15924
  /**
15699
15925
  * Request parameters for getPublishedEventsByClubId operation in EventsApi.
@@ -16825,13 +17051,6 @@ export declare class SportsPublicApi extends BaseAPI {
16825
17051
  * @export
16826
17052
  */
16827
17053
  export declare const SubscriptionsManagerApiAxiosParamCreator: (configuration?: Configuration) => {
16828
- /**
16829
- * Supprime (archive) un plan par productId (manager)
16830
- * @param {string} productId
16831
- * @param {*} [options] Override http request option.
16832
- * @throws {RequiredError}
16833
- */
16834
- archivePlan: (productId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
16835
17054
  /**
16836
17055
  * Crée un nouveau plan d\'abonnement (produit + price) pour le club (manager)
16837
17056
  * @param {CreateSubscriptionPlanRequest} createSubscriptionPlanRequest
@@ -16840,7 +17059,7 @@ export declare const SubscriptionsManagerApiAxiosParamCreator: (configuration?:
16840
17059
  */
16841
17060
  createPlan: (createSubscriptionPlanRequest: CreateSubscriptionPlanRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
16842
17061
  /**
16843
- * Supprime un plan par productId (manager)
17062
+ * Supprime (archive) un plan par productId (manager)
16844
17063
  * @param {string} productId
16845
17064
  * @param {*} [options] Override http request option.
16846
17065
  * @throws {RequiredError}
@@ -16859,13 +17078,6 @@ export declare const SubscriptionsManagerApiAxiosParamCreator: (configuration?:
16859
17078
  * @export
16860
17079
  */
16861
17080
  export declare const SubscriptionsManagerApiFp: (configuration?: Configuration) => {
16862
- /**
16863
- * Supprime (archive) un plan par productId (manager)
16864
- * @param {string} productId
16865
- * @param {*} [options] Override http request option.
16866
- * @throws {RequiredError}
16867
- */
16868
- archivePlan(productId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteSubscriptionPlanResponse>>;
16869
17081
  /**
16870
17082
  * Crée un nouveau plan d\'abonnement (produit + price) pour le club (manager)
16871
17083
  * @param {CreateSubscriptionPlanRequest} createSubscriptionPlanRequest
@@ -16874,7 +17086,7 @@ export declare const SubscriptionsManagerApiFp: (configuration?: Configuration)
16874
17086
  */
16875
17087
  createPlan(createSubscriptionPlanRequest: CreateSubscriptionPlanRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePlan201Response>>;
16876
17088
  /**
16877
- * Supprime un plan par productId (manager)
17089
+ * Supprime (archive) un plan par productId (manager)
16878
17090
  * @param {string} productId
16879
17091
  * @param {*} [options] Override http request option.
16880
17092
  * @throws {RequiredError}
@@ -16893,13 +17105,6 @@ export declare const SubscriptionsManagerApiFp: (configuration?: Configuration)
16893
17105
  * @export
16894
17106
  */
16895
17107
  export declare const SubscriptionsManagerApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
16896
- /**
16897
- * Supprime (archive) un plan par productId (manager)
16898
- * @param {SubscriptionsManagerApiArchivePlanRequest} requestParameters Request parameters.
16899
- * @param {*} [options] Override http request option.
16900
- * @throws {RequiredError}
16901
- */
16902
- archivePlan(requestParameters: SubscriptionsManagerApiArchivePlanRequest, options?: RawAxiosRequestConfig): AxiosPromise<DeleteSubscriptionPlanResponse>;
16903
17108
  /**
16904
17109
  * Crée un nouveau plan d\'abonnement (produit + price) pour le club (manager)
16905
17110
  * @param {SubscriptionsManagerApiCreatePlanRequest} requestParameters Request parameters.
@@ -16908,7 +17113,7 @@ export declare const SubscriptionsManagerApiFactory: (configuration?: Configurat
16908
17113
  */
16909
17114
  createPlan(requestParameters: SubscriptionsManagerApiCreatePlanRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreatePlan201Response>;
16910
17115
  /**
16911
- * Supprime un plan par productId (manager)
17116
+ * Supprime (archive) un plan par productId (manager)
16912
17117
  * @param {SubscriptionsManagerApiDeletePlanRequest} requestParameters Request parameters.
16913
17118
  * @param {*} [options] Override http request option.
16914
17119
  * @throws {RequiredError}
@@ -16922,19 +17127,6 @@ export declare const SubscriptionsManagerApiFactory: (configuration?: Configurat
16922
17127
  */
16923
17128
  updatePlan(requestParameters: SubscriptionsManagerApiUpdatePlanRequest, options?: RawAxiosRequestConfig): AxiosPromise<StripeStripeResponseStripeStripePrice>;
16924
17129
  };
16925
- /**
16926
- * Request parameters for archivePlan operation in SubscriptionsManagerApi.
16927
- * @export
16928
- * @interface SubscriptionsManagerApiArchivePlanRequest
16929
- */
16930
- export interface SubscriptionsManagerApiArchivePlanRequest {
16931
- /**
16932
- *
16933
- * @type {string}
16934
- * @memberof SubscriptionsManagerApiArchivePlan
16935
- */
16936
- readonly productId: string;
16937
- }
16938
17130
  /**
16939
17131
  * Request parameters for createPlan operation in SubscriptionsManagerApi.
16940
17132
  * @export
@@ -16981,14 +17173,6 @@ export interface SubscriptionsManagerApiUpdatePlanRequest {
16981
17173
  * @extends {BaseAPI}
16982
17174
  */
16983
17175
  export declare class SubscriptionsManagerApi extends BaseAPI {
16984
- /**
16985
- * Supprime (archive) un plan par productId (manager)
16986
- * @param {SubscriptionsManagerApiArchivePlanRequest} requestParameters Request parameters.
16987
- * @param {*} [options] Override http request option.
16988
- * @throws {RequiredError}
16989
- * @memberof SubscriptionsManagerApi
16990
- */
16991
- archivePlan(requestParameters: SubscriptionsManagerApiArchivePlanRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DeleteSubscriptionPlanResponse, any, {}>>;
16992
17176
  /**
16993
17177
  * Crée un nouveau plan d\'abonnement (produit + price) pour le club (manager)
16994
17178
  * @param {SubscriptionsManagerApiCreatePlanRequest} requestParameters Request parameters.
@@ -16998,7 +17182,7 @@ export declare class SubscriptionsManagerApi extends BaseAPI {
16998
17182
  */
16999
17183
  createPlan(requestParameters: SubscriptionsManagerApiCreatePlanRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePlan201Response, any, {}>>;
17000
17184
  /**
17001
- * Supprime un plan par productId (manager)
17185
+ * Supprime (archive) un plan par productId (manager)
17002
17186
  * @param {SubscriptionsManagerApiDeletePlanRequest} requestParameters Request parameters.
17003
17187
  * @param {*} [options] Override http request option.
17004
17188
  * @throws {RequiredError}
@@ -17568,6 +17752,14 @@ export declare const UsersApiAxiosParamCreator: (configuration?: Configuration)
17568
17752
  * @throws {RequiredError}
17569
17753
  */
17570
17754
  getUserBookings: (limit?: number, skip?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
17755
+ /**
17756
+ *
17757
+ * @param {number} [limit]
17758
+ * @param {number} [skip]
17759
+ * @param {*} [options] Override http request option.
17760
+ * @throws {RequiredError}
17761
+ */
17762
+ getUserEvents: (limit?: number, skip?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
17571
17763
  /**
17572
17764
  *
17573
17765
  * @param {string} id
@@ -17843,6 +18035,14 @@ export declare const UsersApiFp: (configuration?: Configuration) => {
17843
18035
  * @throws {RequiredError}
17844
18036
  */
17845
18037
  getUserBookings(limit?: number, skip?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserBookingsResponse>>;
18038
+ /**
18039
+ *
18040
+ * @param {number} [limit]
18041
+ * @param {number} [skip]
18042
+ * @param {*} [options] Override http request option.
18043
+ * @throws {RequiredError}
18044
+ */
18045
+ getUserEvents(limit?: number, skip?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserEventsResponse>>;
17846
18046
  /**
17847
18047
  *
17848
18048
  * @param {string} id
@@ -18109,6 +18309,13 @@ export declare const UsersApiFactory: (configuration?: Configuration, basePath?:
18109
18309
  * @throws {RequiredError}
18110
18310
  */
18111
18311
  getUserBookings(requestParameters?: UsersApiGetUserBookingsRequest, options?: RawAxiosRequestConfig): AxiosPromise<UserBookingsResponse>;
18312
+ /**
18313
+ *
18314
+ * @param {UsersApiGetUserEventsRequest} requestParameters Request parameters.
18315
+ * @param {*} [options] Override http request option.
18316
+ * @throws {RequiredError}
18317
+ */
18318
+ getUserEvents(requestParameters?: UsersApiGetUserEventsRequest, options?: RawAxiosRequestConfig): AxiosPromise<UserEventsResponse>;
18112
18319
  /**
18113
18320
  *
18114
18321
  * @param {UsersApiGetUserProfileByIdRequest} requestParameters Request parameters.
@@ -18419,6 +18626,25 @@ export interface UsersApiGetUserBookingsRequest {
18419
18626
  */
18420
18627
  readonly skip?: number;
18421
18628
  }
18629
+ /**
18630
+ * Request parameters for getUserEvents operation in UsersApi.
18631
+ * @export
18632
+ * @interface UsersApiGetUserEventsRequest
18633
+ */
18634
+ export interface UsersApiGetUserEventsRequest {
18635
+ /**
18636
+ *
18637
+ * @type {number}
18638
+ * @memberof UsersApiGetUserEvents
18639
+ */
18640
+ readonly limit?: number;
18641
+ /**
18642
+ *
18643
+ * @type {number}
18644
+ * @memberof UsersApiGetUserEvents
18645
+ */
18646
+ readonly skip?: number;
18647
+ }
18422
18648
  /**
18423
18649
  * Request parameters for getUserProfileById operation in UsersApi.
18424
18650
  * @export
@@ -18845,6 +19071,14 @@ export declare class UsersApi extends BaseAPI {
18845
19071
  * @memberof UsersApi
18846
19072
  */
18847
19073
  getUserBookings(requestParameters?: UsersApiGetUserBookingsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<UserBookingsResponse, any, {}>>;
19074
+ /**
19075
+ *
19076
+ * @param {UsersApiGetUserEventsRequest} requestParameters Request parameters.
19077
+ * @param {*} [options] Override http request option.
19078
+ * @throws {RequiredError}
19079
+ * @memberof UsersApi
19080
+ */
19081
+ getUserEvents(requestParameters?: UsersApiGetUserEventsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<UserEventsResponse, any, {}>>;
18848
19082
  /**
18849
19083
  *
18850
19084
  * @param {UsersApiGetUserProfileByIdRequest} requestParameters Request parameters.