@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/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.121
7
+ * The version of the OpenAPI document: 1.0.125
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2747,11 +2747,11 @@ export interface ClubPlayerSubscriptionSummary {
2747
2747
  */
2748
2748
  'name': string | null;
2749
2749
  /**
2750
- * Tarifications disponibles
2751
- * @type {Array<PlanPrice>}
2750
+ * Montant en centimes
2751
+ * @type {number}
2752
2752
  * @memberof ClubPlayerSubscriptionSummary
2753
2753
  */
2754
- 'prices': Array<PlanPrice>;
2754
+ 'amountInCents': number | null;
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 par défaut
2762
+ * Intervalle de facturation
2763
2763
  * @type {string}
2764
2764
  * @memberof ClubPlayerSubscriptionSummary
2765
2765
  */
@@ -3985,12 +3985,6 @@ 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>;
3994
3988
  /**
3995
3989
  *
3996
3990
  * @type {string}
@@ -4105,10 +4099,10 @@ export interface CreateSubscriptionPlanRequest {
4105
4099
  'description'?: string;
4106
4100
  /**
4107
4101
  *
4108
- * @type {Array<PlanPriceInput>}
4102
+ * @type {number}
4109
4103
  * @memberof CreateSubscriptionPlanRequest
4110
4104
  */
4111
- 'prices': Array<PlanPriceInput>;
4105
+ 'amountInCents': number;
4112
4106
  /**
4113
4107
  *
4114
4108
  * @type {string}
@@ -4146,15 +4140,8 @@ export interface CreateSubscriptionPlanRequestDiscount {
4146
4140
  *
4147
4141
  * @type {Array<OffPeakRule>}
4148
4142
  * @memberof CreateSubscriptionPlanRequestDiscount
4149
- * @deprecated
4150
4143
  */
4151
4144
  '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>;
4158
4145
  /**
4159
4146
  *
4160
4147
  * @type {string}
@@ -4308,12 +4295,6 @@ export interface DeleteSubscriptionPlanResponse {
4308
4295
  * @memberof DeleteSubscriptionPlanResponse
4309
4296
  */
4310
4297
  'message': string;
4311
- /**
4312
- *
4313
- * @type {boolean}
4314
- * @memberof DeleteSubscriptionPlanResponse
4315
- */
4316
- 'archivedInstead'?: boolean;
4317
4298
  }
4318
4299
  /**
4319
4300
  *
@@ -4430,6 +4411,212 @@ export interface EstimateEventPriceRequestSharesInner {
4430
4411
  */
4431
4412
  'playerId': string;
4432
4413
  }
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
+
4433
4620
  /**
4434
4621
  *
4435
4622
  * @export
@@ -5770,6 +5957,32 @@ export const InvoiceStatus = {
5770
5957
  export type InvoiceStatus = typeof InvoiceStatus[keyof typeof InvoiceStatus];
5771
5958
 
5772
5959
 
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
+
5773
5986
  /**
5774
5987
  *
5775
5988
  * @export
@@ -6107,7 +6320,7 @@ export interface MonthlyBreakdown {
6107
6320
  'invoiceCount': number;
6108
6321
  }
6109
6322
  /**
6110
- *
6323
+ * Types TSOA pour les analytics du club
6111
6324
  * @export
6112
6325
  * @interface MonthlyTurnoverResponse
6113
6326
  */
@@ -6223,12 +6436,6 @@ export interface NoShowFeeResponse {
6223
6436
  * @interface OffPeakRule
6224
6437
  */
6225
6438
  export interface OffPeakRule {
6226
- /**
6227
- *
6228
- * @type {string}
6229
- * @memberof OffPeakRule
6230
- */
6231
- 'pricingPeriodName'?: string;
6232
6439
  /**
6233
6440
  *
6234
6441
  * @type {number}
@@ -6407,6 +6614,20 @@ export interface PartialClubWeeklySchedule {
6407
6614
  */
6408
6615
  'sunday'?: ClubDaySchedule;
6409
6616
  }
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
+
6410
6631
  /**
6411
6632
  *
6412
6633
  * @export
@@ -6551,60 +6772,6 @@ export const PlanInterval = {
6551
6772
  export type PlanInterval = typeof PlanInterval[keyof typeof PlanInterval];
6552
6773
 
6553
6774
 
6554
- /**
6555
- *
6556
- * @export
6557
- * @interface PlanPrice
6558
- */
6559
- export interface PlanPrice {
6560
- /**
6561
- *
6562
- * @type {number}
6563
- * @memberof PlanPrice
6564
- */
6565
- 'amountInCents': number;
6566
- /**
6567
- *
6568
- * @type {PlanInterval}
6569
- * @memberof PlanPrice
6570
- */
6571
- 'interval': PlanInterval;
6572
- /**
6573
- *
6574
- * @type {boolean}
6575
- * @memberof PlanPrice
6576
- */
6577
- 'active'?: boolean;
6578
- /**
6579
- *
6580
- * @type {string}
6581
- * @memberof PlanPrice
6582
- */
6583
- 'stripePriceId'?: string;
6584
- }
6585
-
6586
-
6587
- /**
6588
- *
6589
- * @export
6590
- * @interface PlanPriceInput
6591
- */
6592
- export interface PlanPriceInput {
6593
- /**
6594
- *
6595
- * @type {number}
6596
- * @memberof PlanPriceInput
6597
- */
6598
- 'amountInCents': number;
6599
- /**
6600
- *
6601
- * @type {PlanInterval}
6602
- * @memberof PlanPriceInput
6603
- */
6604
- 'interval': PlanInterval;
6605
- }
6606
-
6607
-
6608
6775
  /**
6609
6776
  *
6610
6777
  * @export
@@ -6987,19 +7154,13 @@ export interface PublicSubscriptionPlanResponse {
6987
7154
  * @type {number}
6988
7155
  * @memberof PublicSubscriptionPlanResponse
6989
7156
  */
6990
- 'amountInCents'?: number;
7157
+ 'amountInCents': number;
6991
7158
  /**
6992
7159
  *
6993
7160
  * @type {string}
6994
7161
  * @memberof PublicSubscriptionPlanResponse
6995
7162
  */
6996
7163
  'currency': string;
6997
- /**
6998
- *
6999
- * @type {Array<PlanPrice>}
7000
- * @memberof PublicSubscriptionPlanResponse
7001
- */
7002
- 'prices': Array<PlanPrice>;
7003
7164
  /**
7004
7165
  *
7005
7166
  * @type {PlanInterval}
@@ -7012,12 +7173,6 @@ export interface PublicSubscriptionPlanResponse {
7012
7173
  * @memberof PublicSubscriptionPlanResponse
7013
7174
  */
7014
7175
  'description'?: string;
7015
- /**
7016
- *
7017
- * @type {SubscriptionPlanDiscountResponse}
7018
- * @memberof PublicSubscriptionPlanResponse
7019
- */
7020
- 'discount'?: SubscriptionPlanDiscountResponse;
7021
7176
  }
7022
7177
 
7023
7178
 
@@ -7124,6 +7279,12 @@ export interface PublishEventResponse {
7124
7279
  * @memberof PublishEventResponse
7125
7280
  */
7126
7281
  'refundedBookingIds'?: Array<string>;
7282
+ /**
7283
+ *
7284
+ * @type {EventBookingResponse}
7285
+ * @memberof PublishEventResponse
7286
+ */
7287
+ 'userBooking'?: EventBookingResponse;
7127
7288
  }
7128
7289
  /**
7129
7290
  *
@@ -7649,12 +7810,6 @@ export interface SendSubscriptionInvitationRequest {
7649
7810
  * @memberof SendSubscriptionInvitationRequest
7650
7811
  */
7651
7812
  'productId': string;
7652
- /**
7653
- * Price spécifique proposé dans l\'invitation (facultatif).
7654
- * @type {string}
7655
- * @memberof SendSubscriptionInvitationRequest
7656
- */
7657
- 'priceId'?: string;
7658
7813
  }
7659
7814
  /**
7660
7815
  *
@@ -9820,63 +9975,6 @@ export interface SubscriptionMutationResponse {
9820
9975
  */
9821
9976
  'subscription': { [key: string]: any; };
9822
9977
  }
9823
- /**
9824
- *
9825
- * @export
9826
- * @interface SubscriptionPlanDiscountResponse
9827
- */
9828
- export interface SubscriptionPlanDiscountResponse {
9829
- /**
9830
- *
9831
- * @type {DiscountType}
9832
- * @memberof SubscriptionPlanDiscountResponse
9833
- */
9834
- 'type': DiscountType;
9835
- /**
9836
- *
9837
- * @type {number}
9838
- * @memberof SubscriptionPlanDiscountResponse
9839
- */
9840
- 'percentage'?: number;
9841
- /**
9842
- *
9843
- * @type {number}
9844
- * @memberof SubscriptionPlanDiscountResponse
9845
- */
9846
- 'maxDiscountAmountInCents'?: number;
9847
- /**
9848
- *
9849
- * @type {string}
9850
- * @memberof SubscriptionPlanDiscountResponse
9851
- */
9852
- 'validFrom'?: string;
9853
- /**
9854
- *
9855
- * @type {string}
9856
- * @memberof SubscriptionPlanDiscountResponse
9857
- */
9858
- 'validTo'?: string;
9859
- /**
9860
- *
9861
- * @type {Array<string>}
9862
- * @memberof SubscriptionPlanDiscountResponse
9863
- */
9864
- 'offPeakRuleNames'?: Array<string>;
9865
- /**
9866
- *
9867
- * @type {Array<OffPeakRule>}
9868
- * @memberof SubscriptionPlanDiscountResponse
9869
- */
9870
- 'offPeakRules'?: Array<OffPeakRule>;
9871
- /**
9872
- *
9873
- * @type {boolean}
9874
- * @memberof SubscriptionPlanDiscountResponse
9875
- */
9876
- 'bookingFree'?: boolean;
9877
- }
9878
-
9879
-
9880
9978
  /**
9881
9979
  *
9882
9980
  * @export
@@ -9912,19 +10010,13 @@ export interface SubscriptionPlanResponse {
9912
10010
  * @type {number}
9913
10011
  * @memberof SubscriptionPlanResponse
9914
10012
  */
9915
- 'amountInCents'?: number;
10013
+ 'amountInCents': number;
9916
10014
  /**
9917
10015
  *
9918
10016
  * @type {string}
9919
10017
  * @memberof SubscriptionPlanResponse
9920
10018
  */
9921
10019
  'currency': string;
9922
- /**
9923
- *
9924
- * @type {Array<PlanPrice>}
9925
- * @memberof SubscriptionPlanResponse
9926
- */
9927
- 'prices': Array<PlanPrice>;
9928
10020
  /**
9929
10021
  *
9930
10022
  * @type {PlanInterval}
@@ -9937,18 +10029,6 @@ export interface SubscriptionPlanResponse {
9937
10029
  * @memberof SubscriptionPlanResponse
9938
10030
  */
9939
10031
  'priceActive': boolean;
9940
- /**
9941
- *
9942
- * @type {string}
9943
- * @memberof SubscriptionPlanResponse
9944
- */
9945
- 'description'?: string;
9946
- /**
9947
- *
9948
- * @type {SubscriptionPlanDiscountResponse}
9949
- * @memberof SubscriptionPlanResponse
9950
- */
9951
- 'discount'?: SubscriptionPlanDiscountResponse;
9952
10032
  }
9953
10033
 
9954
10034
 
@@ -10843,98 +10923,241 @@ export interface UserClubMembership {
10843
10923
  export interface UserClubMembershipsResponse {
10844
10924
  /**
10845
10925
  *
10846
- * @type {Array<UserClubMembership>}
10847
- * @memberof UserClubMembershipsResponse
10926
+ * @type {Array<UserClubMembership>}
10927
+ * @memberof UserClubMembershipsResponse
10928
+ */
10929
+ 'clubs': Array<UserClubMembership>;
10930
+ }
10931
+ /**
10932
+ *
10933
+ * @export
10934
+ * @interface UserClubSubscription
10935
+ */
10936
+ export interface UserClubSubscription {
10937
+ /**
10938
+ *
10939
+ * @type {string}
10940
+ * @memberof UserClubSubscription
10941
+ */
10942
+ 'id': string;
10943
+ /**
10944
+ *
10945
+ * @type {string}
10946
+ * @memberof UserClubSubscription
10947
+ */
10948
+ 'status': string;
10949
+ /**
10950
+ *
10951
+ * @type {number}
10952
+ * @memberof UserClubSubscription
10953
+ */
10954
+ 'currentPeriodStart': number | null;
10955
+ /**
10956
+ *
10957
+ * @type {number}
10958
+ * @memberof UserClubSubscription
10959
+ */
10960
+ 'currentPeriodEnd': number | null;
10961
+ /**
10962
+ *
10963
+ * @type {number}
10964
+ * @memberof UserClubSubscription
10965
+ */
10966
+ 'cancelAt': number | null;
10967
+ /**
10968
+ *
10969
+ * @type {number}
10970
+ * @memberof UserClubSubscription
10971
+ */
10972
+ 'canceledAt': number | null;
10973
+ /**
10974
+ *
10975
+ * @type {string}
10976
+ * @memberof UserClubSubscription
10977
+ */
10978
+ 'priceId': string | null;
10979
+ /**
10980
+ *
10981
+ * @type {string}
10982
+ * @memberof UserClubSubscription
10983
+ */
10984
+ 'planId': string | null;
10985
+ /**
10986
+ *
10987
+ * @type {string}
10988
+ * @memberof UserClubSubscription
10989
+ */
10990
+ 'planName': string | null;
10991
+ /**
10992
+ *
10993
+ * @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
10848
11034
  */
10849
- 'clubs': Array<UserClubMembership>;
11035
+ 'booking': EventBookingDetailSummary;
10850
11036
  }
10851
11037
  /**
10852
11038
  *
10853
11039
  * @export
10854
- * @interface UserClubSubscription
11040
+ * @interface UserEventSummary
10855
11041
  */
10856
- export interface UserClubSubscription {
11042
+ export interface UserEventSummary {
10857
11043
  /**
10858
11044
  *
10859
11045
  * @type {string}
10860
- * @memberof UserClubSubscription
11046
+ * @memberof UserEventSummary
10861
11047
  */
10862
11048
  'id': string;
10863
11049
  /**
10864
11050
  *
10865
11051
  * @type {string}
10866
- * @memberof UserClubSubscription
11052
+ * @memberof UserEventSummary
10867
11053
  */
10868
- 'status': string;
11054
+ 'clubId': string;
10869
11055
  /**
10870
11056
  *
10871
- * @type {number}
10872
- * @memberof UserClubSubscription
11057
+ * @type {string}
11058
+ * @memberof UserEventSummary
10873
11059
  */
10874
- 'currentPeriodStart': number | null;
11060
+ 'title': string;
10875
11061
  /**
10876
11062
  *
10877
- * @type {number}
10878
- * @memberof UserClubSubscription
11063
+ * @type {string}
11064
+ * @memberof UserEventSummary
10879
11065
  */
10880
- 'currentPeriodEnd': number | null;
11066
+ 'description'?: string | null;
10881
11067
  /**
10882
11068
  *
10883
- * @type {number}
10884
- * @memberof UserClubSubscription
11069
+ * @type {string}
11070
+ * @memberof UserEventSummary
10885
11071
  */
10886
- 'cancelAt': number | null;
11072
+ 'photoUrl'?: string | null;
10887
11073
  /**
10888
11074
  *
10889
- * @type {number}
10890
- * @memberof UserClubSubscription
11075
+ * @type {string}
11076
+ * @memberof UserEventSummary
10891
11077
  */
10892
- 'canceledAt': number | null;
11078
+ 'startDate': string;
10893
11079
  /**
10894
11080
  *
10895
11081
  * @type {string}
10896
- * @memberof UserClubSubscription
11082
+ * @memberof UserEventSummary
10897
11083
  */
10898
- 'priceId': string | null;
11084
+ 'endDate': string;
10899
11085
  /**
10900
11086
  *
10901
- * @type {string}
10902
- * @memberof UserClubSubscription
11087
+ * @type {ParticipationType}
11088
+ * @memberof UserEventSummary
10903
11089
  */
10904
- 'planId': string | null;
11090
+ 'participationType': ParticipationType;
10905
11091
  /**
10906
11092
  *
10907
- * @type {string}
10908
- * @memberof UserClubSubscription
11093
+ * @type {VisibilityType}
11094
+ * @memberof UserEventSummary
10909
11095
  */
10910
- 'planName': string | null;
11096
+ 'visibilityType': VisibilityType;
10911
11097
  /**
10912
11098
  *
10913
- * @type {string}
10914
- * @memberof UserClubSubscription
11099
+ * @type {boolean}
11100
+ * @memberof UserEventSummary
10915
11101
  */
10916
- 'planDescription': string | null;
11102
+ 'isActive': boolean;
10917
11103
  /**
10918
11104
  *
10919
11105
  * @type {number}
10920
- * @memberof UserClubSubscription
11106
+ * @memberof UserEventSummary
10921
11107
  */
10922
- 'amountInCents': number | null;
11108
+ 'price'?: number | null;
10923
11109
  /**
10924
11110
  *
10925
- * @type {string}
10926
- * @memberof UserClubSubscription
11111
+ * @type {Array<string>}
11112
+ * @memberof UserEventSummary
10927
11113
  */
10928
- 'currency': string | null;
11114
+ 'sports'?: Array<string>;
10929
11115
  /**
10930
11116
  *
10931
- * @type {PlanInterval}
10932
- * @memberof UserClubSubscription
11117
+ * @type {Array<string>}
11118
+ * @memberof UserEventSummary
10933
11119
  */
10934
- 'interval': PlanInterval | null;
11120
+ 'courts'?: Array<string>;
10935
11121
  }
10936
11122
 
10937
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
11140
+ */
11141
+ 'limit': number;
11142
+ /**
11143
+ *
11144
+ * @type {number}
11145
+ * @memberof UserEventsResponse
11146
+ */
11147
+ 'skip': number;
11148
+ /**
11149
+ *
11150
+ * @type {boolean}
11151
+ * @memberof UserEventsResponse
11152
+ */
11153
+ 'hasMore': boolean;
11154
+ /**
11155
+ *
11156
+ * @type {Array<UserEventParticipation>}
11157
+ * @memberof UserEventsResponse
11158
+ */
11159
+ 'participations': Array<UserEventParticipation>;
11160
+ }
10938
11161
  /**
10939
11162
  *
10940
11163
  * @export
@@ -11334,6 +11557,21 @@ export interface VerifyEmailRequest {
11334
11557
  */
11335
11558
  'token'?: string;
11336
11559
  }
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
+
11337
11575
  /**
11338
11576
  *
11339
11577
  * @export
@@ -20027,10 +20265,11 @@ export const EventsApiAxiosParamCreator = function (configuration?: Configuratio
20027
20265
  /**
20028
20266
  * Get a specific event by ID
20029
20267
  * @param {string} eventId
20268
+ * @param {string} [userId]
20030
20269
  * @param {*} [options] Override http request option.
20031
20270
  * @throws {RequiredError}
20032
20271
  */
20033
- getEventById: async (eventId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
20272
+ getEventById: async (eventId: string, userId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
20034
20273
  // verify required parameter 'eventId' is not null or undefined
20035
20274
  assertParamExists('getEventById', 'eventId', eventId)
20036
20275
  const localVarPath = `/api/events/{eventId}`
@@ -20046,6 +20285,10 @@ export const EventsApiAxiosParamCreator = function (configuration?: Configuratio
20046
20285
  const localVarHeaderParameter = {} as any;
20047
20286
  const localVarQueryParameter = {} as any;
20048
20287
 
20288
+ if (userId !== undefined) {
20289
+ localVarQueryParameter['userId'] = userId;
20290
+ }
20291
+
20049
20292
 
20050
20293
 
20051
20294
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -20225,11 +20468,12 @@ export const EventsApiFp = function(configuration?: Configuration) {
20225
20468
  /**
20226
20469
  * Get a specific event by ID
20227
20470
  * @param {string} eventId
20471
+ * @param {string} [userId]
20228
20472
  * @param {*} [options] Override http request option.
20229
20473
  * @throws {RequiredError}
20230
20474
  */
20231
- async getEventById(eventId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PublishEventResponse>> {
20232
- const localVarAxiosArgs = await localVarAxiosParamCreator.getEventById(eventId, options);
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);
20233
20477
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
20234
20478
  const localVarOperationServerBasePath = operationServerMap['EventsApi.getEventById']?.[localVarOperationServerIndex]?.url;
20235
20479
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -20309,7 +20553,7 @@ export const EventsApiFactory = function (configuration?: Configuration, basePat
20309
20553
  * @throws {RequiredError}
20310
20554
  */
20311
20555
  getEventById(requestParameters: EventsApiGetEventByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<PublishEventResponse> {
20312
- return localVarFp.getEventById(requestParameters.eventId, options).then((request) => request(axios, basePath));
20556
+ return localVarFp.getEventById(requestParameters.eventId, requestParameters.userId, options).then((request) => request(axios, basePath));
20313
20557
  },
20314
20558
  /**
20315
20559
  * Get all published events for a club
@@ -20395,6 +20639,13 @@ export interface EventsApiGetEventByIdRequest {
20395
20639
  * @memberof EventsApiGetEventById
20396
20640
  */
20397
20641
  readonly eventId: string
20642
+
20643
+ /**
20644
+ *
20645
+ * @type {string}
20646
+ * @memberof EventsApiGetEventById
20647
+ */
20648
+ readonly userId?: string
20398
20649
  }
20399
20650
 
20400
20651
  /**
@@ -20504,7 +20755,7 @@ export class EventsApi extends BaseAPI {
20504
20755
  * @memberof EventsApi
20505
20756
  */
20506
20757
  public getEventById(requestParameters: EventsApiGetEventByIdRequest, options?: RawAxiosRequestConfig) {
20507
- return EventsApiFp(this.configuration).getEventById(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
20758
+ return EventsApiFp(this.configuration).getEventById(requestParameters.eventId, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
20508
20759
  }
20509
20760
 
20510
20761
  /**
@@ -22400,43 +22651,6 @@ export class SportsPublicApi extends BaseAPI {
22400
22651
  */
22401
22652
  export const SubscriptionsManagerApiAxiosParamCreator = function (configuration?: Configuration) {
22402
22653
  return {
22403
- /**
22404
- * Supprime (archive) un plan par productId (manager)
22405
- * @param {string} productId
22406
- * @param {*} [options] Override http request option.
22407
- * @throws {RequiredError}
22408
- */
22409
- archivePlan: async (productId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
22410
- // verify required parameter 'productId' is not null or undefined
22411
- assertParamExists('archivePlan', 'productId', productId)
22412
- const localVarPath = `/api/subscriptions/plans/{productId}/archive`
22413
- .replace(`{${"productId"}}`, encodeURIComponent(String(productId)));
22414
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
22415
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
22416
- let baseOptions;
22417
- if (configuration) {
22418
- baseOptions = configuration.baseOptions;
22419
- }
22420
-
22421
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
22422
- const localVarHeaderParameter = {} as any;
22423
- const localVarQueryParameter = {} as any;
22424
-
22425
- // authentication bearerAuth required
22426
- // http bearer authentication required
22427
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
22428
-
22429
-
22430
-
22431
- setSearchParams(localVarUrlObj, localVarQueryParameter);
22432
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
22433
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
22434
-
22435
- return {
22436
- url: toPathString(localVarUrlObj),
22437
- options: localVarRequestOptions,
22438
- };
22439
- },
22440
22654
  /**
22441
22655
  * Crée un nouveau plan d\'abonnement (produit + price) pour le club (manager)
22442
22656
  * @param {CreateSubscriptionPlanRequest} createSubscriptionPlanRequest
@@ -22477,7 +22691,7 @@ export const SubscriptionsManagerApiAxiosParamCreator = function (configuration?
22477
22691
  };
22478
22692
  },
22479
22693
  /**
22480
- * Supprime un plan par productId (manager)
22694
+ * Supprime (archive) un plan par productId (manager)
22481
22695
  * @param {string} productId
22482
22696
  * @param {*} [options] Override http request option.
22483
22697
  * @throws {RequiredError}
@@ -22562,18 +22776,6 @@ export const SubscriptionsManagerApiAxiosParamCreator = function (configuration?
22562
22776
  export const SubscriptionsManagerApiFp = function(configuration?: Configuration) {
22563
22777
  const localVarAxiosParamCreator = SubscriptionsManagerApiAxiosParamCreator(configuration)
22564
22778
  return {
22565
- /**
22566
- * Supprime (archive) un plan par productId (manager)
22567
- * @param {string} productId
22568
- * @param {*} [options] Override http request option.
22569
- * @throws {RequiredError}
22570
- */
22571
- async archivePlan(productId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteSubscriptionPlanResponse>> {
22572
- const localVarAxiosArgs = await localVarAxiosParamCreator.archivePlan(productId, options);
22573
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
22574
- const localVarOperationServerBasePath = operationServerMap['SubscriptionsManagerApi.archivePlan']?.[localVarOperationServerIndex]?.url;
22575
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
22576
- },
22577
22779
  /**
22578
22780
  * Crée un nouveau plan d\'abonnement (produit + price) pour le club (manager)
22579
22781
  * @param {CreateSubscriptionPlanRequest} createSubscriptionPlanRequest
@@ -22587,7 +22789,7 @@ export const SubscriptionsManagerApiFp = function(configuration?: Configuration)
22587
22789
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
22588
22790
  },
22589
22791
  /**
22590
- * Supprime un plan par productId (manager)
22792
+ * Supprime (archive) un plan par productId (manager)
22591
22793
  * @param {string} productId
22592
22794
  * @param {*} [options] Override http request option.
22593
22795
  * @throws {RequiredError}
@@ -22620,15 +22822,6 @@ export const SubscriptionsManagerApiFp = function(configuration?: Configuration)
22620
22822
  export const SubscriptionsManagerApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
22621
22823
  const localVarFp = SubscriptionsManagerApiFp(configuration)
22622
22824
  return {
22623
- /**
22624
- * Supprime (archive) un plan par productId (manager)
22625
- * @param {SubscriptionsManagerApiArchivePlanRequest} requestParameters Request parameters.
22626
- * @param {*} [options] Override http request option.
22627
- * @throws {RequiredError}
22628
- */
22629
- archivePlan(requestParameters: SubscriptionsManagerApiArchivePlanRequest, options?: RawAxiosRequestConfig): AxiosPromise<DeleteSubscriptionPlanResponse> {
22630
- return localVarFp.archivePlan(requestParameters.productId, options).then((request) => request(axios, basePath));
22631
- },
22632
22825
  /**
22633
22826
  * Crée un nouveau plan d\'abonnement (produit + price) pour le club (manager)
22634
22827
  * @param {SubscriptionsManagerApiCreatePlanRequest} requestParameters Request parameters.
@@ -22639,7 +22832,7 @@ export const SubscriptionsManagerApiFactory = function (configuration?: Configur
22639
22832
  return localVarFp.createPlan(requestParameters.createSubscriptionPlanRequest, options).then((request) => request(axios, basePath));
22640
22833
  },
22641
22834
  /**
22642
- * Supprime un plan par productId (manager)
22835
+ * Supprime (archive) un plan par productId (manager)
22643
22836
  * @param {SubscriptionsManagerApiDeletePlanRequest} requestParameters Request parameters.
22644
22837
  * @param {*} [options] Override http request option.
22645
22838
  * @throws {RequiredError}
@@ -22659,20 +22852,6 @@ export const SubscriptionsManagerApiFactory = function (configuration?: Configur
22659
22852
  };
22660
22853
  };
22661
22854
 
22662
- /**
22663
- * Request parameters for archivePlan operation in SubscriptionsManagerApi.
22664
- * @export
22665
- * @interface SubscriptionsManagerApiArchivePlanRequest
22666
- */
22667
- export interface SubscriptionsManagerApiArchivePlanRequest {
22668
- /**
22669
- *
22670
- * @type {string}
22671
- * @memberof SubscriptionsManagerApiArchivePlan
22672
- */
22673
- readonly productId: string
22674
- }
22675
-
22676
22855
  /**
22677
22856
  * Request parameters for createPlan operation in SubscriptionsManagerApi.
22678
22857
  * @export
@@ -22722,17 +22901,6 @@ export interface SubscriptionsManagerApiUpdatePlanRequest {
22722
22901
  * @extends {BaseAPI}
22723
22902
  */
22724
22903
  export class SubscriptionsManagerApi extends BaseAPI {
22725
- /**
22726
- * Supprime (archive) un plan par productId (manager)
22727
- * @param {SubscriptionsManagerApiArchivePlanRequest} requestParameters Request parameters.
22728
- * @param {*} [options] Override http request option.
22729
- * @throws {RequiredError}
22730
- * @memberof SubscriptionsManagerApi
22731
- */
22732
- public archivePlan(requestParameters: SubscriptionsManagerApiArchivePlanRequest, options?: RawAxiosRequestConfig) {
22733
- return SubscriptionsManagerApiFp(this.configuration).archivePlan(requestParameters.productId, options).then((request) => request(this.axios, this.basePath));
22734
- }
22735
-
22736
22904
  /**
22737
22905
  * Crée un nouveau plan d\'abonnement (produit + price) pour le club (manager)
22738
22906
  * @param {SubscriptionsManagerApiCreatePlanRequest} requestParameters Request parameters.
@@ -22745,7 +22913,7 @@ export class SubscriptionsManagerApi extends BaseAPI {
22745
22913
  }
22746
22914
 
22747
22915
  /**
22748
- * Supprime un plan par productId (manager)
22916
+ * Supprime (archive) un plan par productId (manager)
22749
22917
  * @param {SubscriptionsManagerApiDeletePlanRequest} requestParameters Request parameters.
22750
22918
  * @param {*} [options] Override http request option.
22751
22919
  * @throws {RequiredError}
@@ -24255,6 +24423,49 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
24255
24423
 
24256
24424
 
24257
24425
 
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
+
24258
24469
  setSearchParams(localVarUrlObj, localVarQueryParameter);
24259
24470
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
24260
24471
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -25193,6 +25404,19 @@ export const UsersApiFp = function(configuration?: Configuration) {
25193
25404
  const localVarOperationServerBasePath = operationServerMap['UsersApi.getUserBookings']?.[localVarOperationServerIndex]?.url;
25194
25405
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
25195
25406
  },
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
+ },
25196
25420
  /**
25197
25421
  *
25198
25422
  * @param {string} id
@@ -25581,6 +25805,15 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
25581
25805
  getUserBookings(requestParameters: UsersApiGetUserBookingsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<UserBookingsResponse> {
25582
25806
  return localVarFp.getUserBookings(requestParameters.limit, requestParameters.skip, options).then((request) => request(axios, basePath));
25583
25807
  },
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
+ },
25584
25817
  /**
25585
25818
  *
25586
25819
  * @param {UsersApiGetUserProfileByIdRequest} requestParameters Request parameters.
@@ -25948,6 +26181,27 @@ export interface UsersApiGetUserBookingsRequest {
25948
26181
  readonly skip?: number
25949
26182
  }
25950
26183
 
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
+
25951
26205
  /**
25952
26206
  * Request parameters for getUserProfileById operation in UsersApi.
25953
26207
  * @export
@@ -26446,6 +26700,17 @@ export class UsersApi extends BaseAPI {
26446
26700
  return UsersApiFp(this.configuration).getUserBookings(requestParameters.limit, requestParameters.skip, options).then((request) => request(this.axios, this.basePath));
26447
26701
  }
26448
26702
 
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
+
26449
26714
  /**
26450
26715
  *
26451
26716
  * @param {UsersApiGetUserProfileByIdRequest} requestParameters Request parameters.