@tennac-booking/sdk 1.0.123 → 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 (51) hide show
  1. package/.openapi-generator/FILES +343 -331
  2. package/README.md +16 -4
  3. package/api.ts +569 -226
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +1 -1
  7. package/dist/api.d.ts +449 -141
  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 +449 -141
  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/CreateSubscriptionPlanRequestDiscount.md +0 -2
  28. package/docs/DeleteSubscriptionPlanResponse.md +0 -2
  29. package/docs/EventBookingDetailSummary.md +40 -0
  30. package/docs/EventBookingResponse.md +36 -0
  31. package/docs/EventBookingResponsePlayersInner.md +28 -0
  32. package/docs/EventBookingResponsePlayersInnerInvoiceStatus.md +18 -0
  33. package/docs/EventBookingResponseSetupStatus.md +18 -0
  34. package/docs/EventBookingStatus.md +16 -0
  35. package/docs/EventsApi.md +4 -1
  36. package/docs/InvoiceStatusSETUPPENDING.md +8 -0
  37. package/docs/InvoiceStatusSETUPSUCCESS.md +8 -0
  38. package/docs/OffPeakRule.md +0 -2
  39. package/docs/ParticipationType.md +10 -0
  40. package/docs/PublicSubscriptionPlanResponse.md +0 -2
  41. package/docs/PublishEventResponse.md +2 -0
  42. package/docs/SubscriptionPlanResponse.md +0 -4
  43. package/docs/SubscriptionsManagerApi.md +1 -55
  44. package/docs/UserEventParticipation.md +22 -0
  45. package/docs/UserEventSummary.md +44 -0
  46. package/docs/UserEventsResponse.md +28 -0
  47. package/docs/UsersApi.md +54 -0
  48. package/docs/VisibilityType.md +12 -0
  49. package/index.ts +1 -1
  50. package/package.json +1 -1
  51. 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).
@@ -4140,15 +4140,8 @@ export interface CreateSubscriptionPlanRequestDiscount {
4140
4140
  *
4141
4141
  * @type {Array<OffPeakRule>}
4142
4142
  * @memberof CreateSubscriptionPlanRequestDiscount
4143
- * @deprecated
4144
4143
  */
4145
4144
  'offPeakRules'?: Array<OffPeakRule>;
4146
- /**
4147
- * 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.
4148
- * @type {Array<string>}
4149
- * @memberof CreateSubscriptionPlanRequestDiscount
4150
- */
4151
- 'offPeakRuleNames'?: Array<string>;
4152
4145
  /**
4153
4146
  *
4154
4147
  * @type {string}
@@ -4302,12 +4295,6 @@ export interface DeleteSubscriptionPlanResponse {
4302
4295
  * @memberof DeleteSubscriptionPlanResponse
4303
4296
  */
4304
4297
  'message': string;
4305
- /**
4306
- *
4307
- * @type {boolean}
4308
- * @memberof DeleteSubscriptionPlanResponse
4309
- */
4310
- 'archivedInstead'?: boolean;
4311
4298
  }
4312
4299
  /**
4313
4300
  *
@@ -4424,6 +4411,212 @@ export interface EstimateEventPriceRequestSharesInner {
4424
4411
  */
4425
4412
  'playerId': string;
4426
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
+
4427
4620
  /**
4428
4621
  *
4429
4622
  * @export
@@ -5764,6 +5957,32 @@ export const InvoiceStatus = {
5764
5957
  export type InvoiceStatus = typeof InvoiceStatus[keyof typeof InvoiceStatus];
5765
5958
 
5766
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
+
5767
5986
  /**
5768
5987
  *
5769
5988
  * @export
@@ -6217,12 +6436,6 @@ export interface NoShowFeeResponse {
6217
6436
  * @interface OffPeakRule
6218
6437
  */
6219
6438
  export interface OffPeakRule {
6220
- /**
6221
- *
6222
- * @type {string}
6223
- * @memberof OffPeakRule
6224
- */
6225
- 'pricingPeriodName'?: string;
6226
6439
  /**
6227
6440
  *
6228
6441
  * @type {number}
@@ -6401,6 +6614,20 @@ export interface PartialClubWeeklySchedule {
6401
6614
  */
6402
6615
  'sunday'?: ClubDaySchedule;
6403
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
+
6404
6631
  /**
6405
6632
  *
6406
6633
  * @export
@@ -6946,12 +7173,6 @@ export interface PublicSubscriptionPlanResponse {
6946
7173
  * @memberof PublicSubscriptionPlanResponse
6947
7174
  */
6948
7175
  'description'?: string;
6949
- /**
6950
- *
6951
- * @type {SubscriptionPlanDiscountResponse}
6952
- * @memberof PublicSubscriptionPlanResponse
6953
- */
6954
- 'discount'?: SubscriptionPlanDiscountResponse;
6955
7176
  }
6956
7177
 
6957
7178
 
@@ -7058,6 +7279,12 @@ export interface PublishEventResponse {
7058
7279
  * @memberof PublishEventResponse
7059
7280
  */
7060
7281
  'refundedBookingIds'?: Array<string>;
7282
+ /**
7283
+ *
7284
+ * @type {EventBookingResponse}
7285
+ * @memberof PublishEventResponse
7286
+ */
7287
+ 'userBooking'?: EventBookingResponse;
7061
7288
  }
7062
7289
  /**
7063
7290
  *
@@ -9748,63 +9975,6 @@ export interface SubscriptionMutationResponse {
9748
9975
  */
9749
9976
  'subscription': { [key: string]: any; };
9750
9977
  }
9751
- /**
9752
- *
9753
- * @export
9754
- * @interface SubscriptionPlanDiscountResponse
9755
- */
9756
- export interface SubscriptionPlanDiscountResponse {
9757
- /**
9758
- *
9759
- * @type {DiscountType}
9760
- * @memberof SubscriptionPlanDiscountResponse
9761
- */
9762
- 'type': DiscountType;
9763
- /**
9764
- *
9765
- * @type {number}
9766
- * @memberof SubscriptionPlanDiscountResponse
9767
- */
9768
- 'percentage'?: number;
9769
- /**
9770
- *
9771
- * @type {number}
9772
- * @memberof SubscriptionPlanDiscountResponse
9773
- */
9774
- 'maxDiscountAmountInCents'?: number;
9775
- /**
9776
- *
9777
- * @type {string}
9778
- * @memberof SubscriptionPlanDiscountResponse
9779
- */
9780
- 'validFrom'?: string;
9781
- /**
9782
- *
9783
- * @type {string}
9784
- * @memberof SubscriptionPlanDiscountResponse
9785
- */
9786
- 'validTo'?: string;
9787
- /**
9788
- *
9789
- * @type {Array<string>}
9790
- * @memberof SubscriptionPlanDiscountResponse
9791
- */
9792
- 'offPeakRuleNames'?: Array<string>;
9793
- /**
9794
- *
9795
- * @type {Array<OffPeakRule>}
9796
- * @memberof SubscriptionPlanDiscountResponse
9797
- */
9798
- 'offPeakRules'?: Array<OffPeakRule>;
9799
- /**
9800
- *
9801
- * @type {boolean}
9802
- * @memberof SubscriptionPlanDiscountResponse
9803
- */
9804
- 'bookingFree'?: boolean;
9805
- }
9806
-
9807
-
9808
9978
  /**
9809
9979
  *
9810
9980
  * @export
@@ -9859,18 +10029,6 @@ export interface SubscriptionPlanResponse {
9859
10029
  * @memberof SubscriptionPlanResponse
9860
10030
  */
9861
10031
  'priceActive': boolean;
9862
- /**
9863
- *
9864
- * @type {string}
9865
- * @memberof SubscriptionPlanResponse
9866
- */
9867
- 'description'?: string;
9868
- /**
9869
- *
9870
- * @type {SubscriptionPlanDiscountResponse}
9871
- * @memberof SubscriptionPlanResponse
9872
- */
9873
- 'discount'?: SubscriptionPlanDiscountResponse;
9874
10032
  }
9875
10033
 
9876
10034
 
@@ -10765,98 +10923,241 @@ export interface UserClubMembership {
10765
10923
  export interface UserClubMembershipsResponse {
10766
10924
  /**
10767
10925
  *
10768
- * @type {Array<UserClubMembership>}
10769
- * @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
10770
11034
  */
10771
- 'clubs': Array<UserClubMembership>;
11035
+ 'booking': EventBookingDetailSummary;
10772
11036
  }
10773
11037
  /**
10774
11038
  *
10775
11039
  * @export
10776
- * @interface UserClubSubscription
11040
+ * @interface UserEventSummary
10777
11041
  */
10778
- export interface UserClubSubscription {
11042
+ export interface UserEventSummary {
10779
11043
  /**
10780
11044
  *
10781
11045
  * @type {string}
10782
- * @memberof UserClubSubscription
11046
+ * @memberof UserEventSummary
10783
11047
  */
10784
11048
  'id': string;
10785
11049
  /**
10786
11050
  *
10787
11051
  * @type {string}
10788
- * @memberof UserClubSubscription
11052
+ * @memberof UserEventSummary
10789
11053
  */
10790
- 'status': string;
11054
+ 'clubId': string;
10791
11055
  /**
10792
11056
  *
10793
- * @type {number}
10794
- * @memberof UserClubSubscription
11057
+ * @type {string}
11058
+ * @memberof UserEventSummary
10795
11059
  */
10796
- 'currentPeriodStart': number | null;
11060
+ 'title': string;
10797
11061
  /**
10798
11062
  *
10799
- * @type {number}
10800
- * @memberof UserClubSubscription
11063
+ * @type {string}
11064
+ * @memberof UserEventSummary
10801
11065
  */
10802
- 'currentPeriodEnd': number | null;
11066
+ 'description'?: string | null;
10803
11067
  /**
10804
11068
  *
10805
- * @type {number}
10806
- * @memberof UserClubSubscription
11069
+ * @type {string}
11070
+ * @memberof UserEventSummary
10807
11071
  */
10808
- 'cancelAt': number | null;
11072
+ 'photoUrl'?: string | null;
10809
11073
  /**
10810
11074
  *
10811
- * @type {number}
10812
- * @memberof UserClubSubscription
11075
+ * @type {string}
11076
+ * @memberof UserEventSummary
10813
11077
  */
10814
- 'canceledAt': number | null;
11078
+ 'startDate': string;
10815
11079
  /**
10816
11080
  *
10817
11081
  * @type {string}
10818
- * @memberof UserClubSubscription
11082
+ * @memberof UserEventSummary
10819
11083
  */
10820
- 'priceId': string | null;
11084
+ 'endDate': string;
10821
11085
  /**
10822
11086
  *
10823
- * @type {string}
10824
- * @memberof UserClubSubscription
11087
+ * @type {ParticipationType}
11088
+ * @memberof UserEventSummary
10825
11089
  */
10826
- 'planId': string | null;
11090
+ 'participationType': ParticipationType;
10827
11091
  /**
10828
11092
  *
10829
- * @type {string}
10830
- * @memberof UserClubSubscription
11093
+ * @type {VisibilityType}
11094
+ * @memberof UserEventSummary
10831
11095
  */
10832
- 'planName': string | null;
11096
+ 'visibilityType': VisibilityType;
10833
11097
  /**
10834
11098
  *
10835
- * @type {string}
10836
- * @memberof UserClubSubscription
11099
+ * @type {boolean}
11100
+ * @memberof UserEventSummary
10837
11101
  */
10838
- 'planDescription': string | null;
11102
+ 'isActive': boolean;
10839
11103
  /**
10840
11104
  *
10841
11105
  * @type {number}
10842
- * @memberof UserClubSubscription
11106
+ * @memberof UserEventSummary
10843
11107
  */
10844
- 'amountInCents': number | null;
11108
+ 'price'?: number | null;
10845
11109
  /**
10846
11110
  *
10847
- * @type {string}
10848
- * @memberof UserClubSubscription
11111
+ * @type {Array<string>}
11112
+ * @memberof UserEventSummary
10849
11113
  */
10850
- 'currency': string | null;
11114
+ 'sports'?: Array<string>;
10851
11115
  /**
10852
11116
  *
10853
- * @type {PlanInterval}
10854
- * @memberof UserClubSubscription
11117
+ * @type {Array<string>}
11118
+ * @memberof UserEventSummary
10855
11119
  */
10856
- 'interval': PlanInterval | null;
11120
+ 'courts'?: Array<string>;
10857
11121
  }
10858
11122
 
10859
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
+ }
10860
11161
  /**
10861
11162
  *
10862
11163
  * @export
@@ -11256,6 +11557,21 @@ export interface VerifyEmailRequest {
11256
11557
  */
11257
11558
  'token'?: string;
11258
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
+
11259
11575
  /**
11260
11576
  *
11261
11577
  * @export
@@ -19949,10 +20265,11 @@ export const EventsApiAxiosParamCreator = function (configuration?: Configuratio
19949
20265
  /**
19950
20266
  * Get a specific event by ID
19951
20267
  * @param {string} eventId
20268
+ * @param {string} [userId]
19952
20269
  * @param {*} [options] Override http request option.
19953
20270
  * @throws {RequiredError}
19954
20271
  */
19955
- getEventById: async (eventId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
20272
+ getEventById: async (eventId: string, userId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
19956
20273
  // verify required parameter 'eventId' is not null or undefined
19957
20274
  assertParamExists('getEventById', 'eventId', eventId)
19958
20275
  const localVarPath = `/api/events/{eventId}`
@@ -19968,6 +20285,10 @@ export const EventsApiAxiosParamCreator = function (configuration?: Configuratio
19968
20285
  const localVarHeaderParameter = {} as any;
19969
20286
  const localVarQueryParameter = {} as any;
19970
20287
 
20288
+ if (userId !== undefined) {
20289
+ localVarQueryParameter['userId'] = userId;
20290
+ }
20291
+
19971
20292
 
19972
20293
 
19973
20294
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -20147,11 +20468,12 @@ export const EventsApiFp = function(configuration?: Configuration) {
20147
20468
  /**
20148
20469
  * Get a specific event by ID
20149
20470
  * @param {string} eventId
20471
+ * @param {string} [userId]
20150
20472
  * @param {*} [options] Override http request option.
20151
20473
  * @throws {RequiredError}
20152
20474
  */
20153
- async getEventById(eventId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PublishEventResponse>> {
20154
- 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);
20155
20477
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
20156
20478
  const localVarOperationServerBasePath = operationServerMap['EventsApi.getEventById']?.[localVarOperationServerIndex]?.url;
20157
20479
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -20231,7 +20553,7 @@ export const EventsApiFactory = function (configuration?: Configuration, basePat
20231
20553
  * @throws {RequiredError}
20232
20554
  */
20233
20555
  getEventById(requestParameters: EventsApiGetEventByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<PublishEventResponse> {
20234
- 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));
20235
20557
  },
20236
20558
  /**
20237
20559
  * Get all published events for a club
@@ -20317,6 +20639,13 @@ export interface EventsApiGetEventByIdRequest {
20317
20639
  * @memberof EventsApiGetEventById
20318
20640
  */
20319
20641
  readonly eventId: string
20642
+
20643
+ /**
20644
+ *
20645
+ * @type {string}
20646
+ * @memberof EventsApiGetEventById
20647
+ */
20648
+ readonly userId?: string
20320
20649
  }
20321
20650
 
20322
20651
  /**
@@ -20426,7 +20755,7 @@ export class EventsApi extends BaseAPI {
20426
20755
  * @memberof EventsApi
20427
20756
  */
20428
20757
  public getEventById(requestParameters: EventsApiGetEventByIdRequest, options?: RawAxiosRequestConfig) {
20429
- 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));
20430
20759
  }
20431
20760
 
20432
20761
  /**
@@ -22322,43 +22651,6 @@ export class SportsPublicApi extends BaseAPI {
22322
22651
  */
22323
22652
  export const SubscriptionsManagerApiAxiosParamCreator = function (configuration?: Configuration) {
22324
22653
  return {
22325
- /**
22326
- * Supprime (archive) un plan par productId (manager)
22327
- * @param {string} productId
22328
- * @param {*} [options] Override http request option.
22329
- * @throws {RequiredError}
22330
- */
22331
- archivePlan: async (productId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
22332
- // verify required parameter 'productId' is not null or undefined
22333
- assertParamExists('archivePlan', 'productId', productId)
22334
- const localVarPath = `/api/subscriptions/plans/{productId}/archive`
22335
- .replace(`{${"productId"}}`, encodeURIComponent(String(productId)));
22336
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
22337
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
22338
- let baseOptions;
22339
- if (configuration) {
22340
- baseOptions = configuration.baseOptions;
22341
- }
22342
-
22343
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
22344
- const localVarHeaderParameter = {} as any;
22345
- const localVarQueryParameter = {} as any;
22346
-
22347
- // authentication bearerAuth required
22348
- // http bearer authentication required
22349
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
22350
-
22351
-
22352
-
22353
- setSearchParams(localVarUrlObj, localVarQueryParameter);
22354
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
22355
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
22356
-
22357
- return {
22358
- url: toPathString(localVarUrlObj),
22359
- options: localVarRequestOptions,
22360
- };
22361
- },
22362
22654
  /**
22363
22655
  * Crée un nouveau plan d\'abonnement (produit + price) pour le club (manager)
22364
22656
  * @param {CreateSubscriptionPlanRequest} createSubscriptionPlanRequest
@@ -22399,7 +22691,7 @@ export const SubscriptionsManagerApiAxiosParamCreator = function (configuration?
22399
22691
  };
22400
22692
  },
22401
22693
  /**
22402
- * Supprime un plan par productId (manager)
22694
+ * Supprime (archive) un plan par productId (manager)
22403
22695
  * @param {string} productId
22404
22696
  * @param {*} [options] Override http request option.
22405
22697
  * @throws {RequiredError}
@@ -22484,18 +22776,6 @@ export const SubscriptionsManagerApiAxiosParamCreator = function (configuration?
22484
22776
  export const SubscriptionsManagerApiFp = function(configuration?: Configuration) {
22485
22777
  const localVarAxiosParamCreator = SubscriptionsManagerApiAxiosParamCreator(configuration)
22486
22778
  return {
22487
- /**
22488
- * Supprime (archive) un plan par productId (manager)
22489
- * @param {string} productId
22490
- * @param {*} [options] Override http request option.
22491
- * @throws {RequiredError}
22492
- */
22493
- async archivePlan(productId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteSubscriptionPlanResponse>> {
22494
- const localVarAxiosArgs = await localVarAxiosParamCreator.archivePlan(productId, options);
22495
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
22496
- const localVarOperationServerBasePath = operationServerMap['SubscriptionsManagerApi.archivePlan']?.[localVarOperationServerIndex]?.url;
22497
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
22498
- },
22499
22779
  /**
22500
22780
  * Crée un nouveau plan d\'abonnement (produit + price) pour le club (manager)
22501
22781
  * @param {CreateSubscriptionPlanRequest} createSubscriptionPlanRequest
@@ -22509,7 +22789,7 @@ export const SubscriptionsManagerApiFp = function(configuration?: Configuration)
22509
22789
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
22510
22790
  },
22511
22791
  /**
22512
- * Supprime un plan par productId (manager)
22792
+ * Supprime (archive) un plan par productId (manager)
22513
22793
  * @param {string} productId
22514
22794
  * @param {*} [options] Override http request option.
22515
22795
  * @throws {RequiredError}
@@ -22542,15 +22822,6 @@ export const SubscriptionsManagerApiFp = function(configuration?: Configuration)
22542
22822
  export const SubscriptionsManagerApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
22543
22823
  const localVarFp = SubscriptionsManagerApiFp(configuration)
22544
22824
  return {
22545
- /**
22546
- * Supprime (archive) un plan par productId (manager)
22547
- * @param {SubscriptionsManagerApiArchivePlanRequest} requestParameters Request parameters.
22548
- * @param {*} [options] Override http request option.
22549
- * @throws {RequiredError}
22550
- */
22551
- archivePlan(requestParameters: SubscriptionsManagerApiArchivePlanRequest, options?: RawAxiosRequestConfig): AxiosPromise<DeleteSubscriptionPlanResponse> {
22552
- return localVarFp.archivePlan(requestParameters.productId, options).then((request) => request(axios, basePath));
22553
- },
22554
22825
  /**
22555
22826
  * Crée un nouveau plan d\'abonnement (produit + price) pour le club (manager)
22556
22827
  * @param {SubscriptionsManagerApiCreatePlanRequest} requestParameters Request parameters.
@@ -22561,7 +22832,7 @@ export const SubscriptionsManagerApiFactory = function (configuration?: Configur
22561
22832
  return localVarFp.createPlan(requestParameters.createSubscriptionPlanRequest, options).then((request) => request(axios, basePath));
22562
22833
  },
22563
22834
  /**
22564
- * Supprime un plan par productId (manager)
22835
+ * Supprime (archive) un plan par productId (manager)
22565
22836
  * @param {SubscriptionsManagerApiDeletePlanRequest} requestParameters Request parameters.
22566
22837
  * @param {*} [options] Override http request option.
22567
22838
  * @throws {RequiredError}
@@ -22581,20 +22852,6 @@ export const SubscriptionsManagerApiFactory = function (configuration?: Configur
22581
22852
  };
22582
22853
  };
22583
22854
 
22584
- /**
22585
- * Request parameters for archivePlan operation in SubscriptionsManagerApi.
22586
- * @export
22587
- * @interface SubscriptionsManagerApiArchivePlanRequest
22588
- */
22589
- export interface SubscriptionsManagerApiArchivePlanRequest {
22590
- /**
22591
- *
22592
- * @type {string}
22593
- * @memberof SubscriptionsManagerApiArchivePlan
22594
- */
22595
- readonly productId: string
22596
- }
22597
-
22598
22855
  /**
22599
22856
  * Request parameters for createPlan operation in SubscriptionsManagerApi.
22600
22857
  * @export
@@ -22644,17 +22901,6 @@ export interface SubscriptionsManagerApiUpdatePlanRequest {
22644
22901
  * @extends {BaseAPI}
22645
22902
  */
22646
22903
  export class SubscriptionsManagerApi extends BaseAPI {
22647
- /**
22648
- * Supprime (archive) un plan par productId (manager)
22649
- * @param {SubscriptionsManagerApiArchivePlanRequest} requestParameters Request parameters.
22650
- * @param {*} [options] Override http request option.
22651
- * @throws {RequiredError}
22652
- * @memberof SubscriptionsManagerApi
22653
- */
22654
- public archivePlan(requestParameters: SubscriptionsManagerApiArchivePlanRequest, options?: RawAxiosRequestConfig) {
22655
- return SubscriptionsManagerApiFp(this.configuration).archivePlan(requestParameters.productId, options).then((request) => request(this.axios, this.basePath));
22656
- }
22657
-
22658
22904
  /**
22659
22905
  * Crée un nouveau plan d\'abonnement (produit + price) pour le club (manager)
22660
22906
  * @param {SubscriptionsManagerApiCreatePlanRequest} requestParameters Request parameters.
@@ -22667,7 +22913,7 @@ export class SubscriptionsManagerApi extends BaseAPI {
22667
22913
  }
22668
22914
 
22669
22915
  /**
22670
- * Supprime un plan par productId (manager)
22916
+ * Supprime (archive) un plan par productId (manager)
22671
22917
  * @param {SubscriptionsManagerApiDeletePlanRequest} requestParameters Request parameters.
22672
22918
  * @param {*} [options] Override http request option.
22673
22919
  * @throws {RequiredError}
@@ -24177,6 +24423,49 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
24177
24423
 
24178
24424
 
24179
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
+
24180
24469
  setSearchParams(localVarUrlObj, localVarQueryParameter);
24181
24470
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
24182
24471
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -25115,6 +25404,19 @@ export const UsersApiFp = function(configuration?: Configuration) {
25115
25404
  const localVarOperationServerBasePath = operationServerMap['UsersApi.getUserBookings']?.[localVarOperationServerIndex]?.url;
25116
25405
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
25117
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
+ },
25118
25420
  /**
25119
25421
  *
25120
25422
  * @param {string} id
@@ -25503,6 +25805,15 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
25503
25805
  getUserBookings(requestParameters: UsersApiGetUserBookingsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<UserBookingsResponse> {
25504
25806
  return localVarFp.getUserBookings(requestParameters.limit, requestParameters.skip, options).then((request) => request(axios, basePath));
25505
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
+ },
25506
25817
  /**
25507
25818
  *
25508
25819
  * @param {UsersApiGetUserProfileByIdRequest} requestParameters Request parameters.
@@ -25870,6 +26181,27 @@ export interface UsersApiGetUserBookingsRequest {
25870
26181
  readonly skip?: number
25871
26182
  }
25872
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
+
25873
26205
  /**
25874
26206
  * Request parameters for getUserProfileById operation in UsersApi.
25875
26207
  * @export
@@ -26368,6 +26700,17 @@ export class UsersApi extends BaseAPI {
26368
26700
  return UsersApiFp(this.configuration).getUserBookings(requestParameters.limit, requestParameters.skip, options).then((request) => request(this.axios, this.basePath));
26369
26701
  }
26370
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
+
26371
26714
  /**
26372
26715
  *
26373
26716
  * @param {UsersApiGetUserProfileByIdRequest} requestParameters Request parameters.