@tennac-booking/sdk 1.0.130 → 1.0.131

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 +361 -344
  2. package/README.md +22 -2
  3. package/api.ts +1008 -28
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +1 -1
  7. package/dist/api.d.ts +826 -26
  8. package/dist/api.js +293 -10
  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 +826 -26
  16. package/dist/esm/api.js +289 -6
  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/EstimateEventPrice200Response.md +0 -2
  28. package/docs/EventBookingDetailSummary.md +40 -0
  29. package/docs/EventBookingDetailSummaryPaymentPerPlayersInner.md +30 -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/EventsManagerApi.md +110 -0
  37. package/docs/InvoiceStatusSETUPPENDING.md +8 -0
  38. package/docs/InvoiceStatusSETUPSUCCESS.md +8 -0
  39. package/docs/ParticipationType.md +10 -0
  40. package/docs/PublishEventResponse.md +4 -0
  41. package/docs/RecurringDefinitionResponse.md +34 -0
  42. package/docs/UpdateRecurringDefinition200Response.md +20 -0
  43. package/docs/UpdateRecurringDefinitionRequest.md +56 -0
  44. package/docs/UserClubSubscription.md +2 -0
  45. package/docs/UserEventParticipation.md +22 -0
  46. package/docs/UserEventSummary.md +44 -0
  47. package/docs/UserEventsResponse.md +28 -0
  48. package/docs/UsersApi.md +54 -0
  49. package/docs/VisibilityType.md +12 -0
  50. package/index.ts +1 -1
  51. package/package.json +1 -1
package/dist/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.131
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4324,14 +4324,6 @@ export interface EstimateEventPrice200Response {
4324
4324
  * @memberof EstimateEventPrice200Response
4325
4325
  */
4326
4326
  'total': number;
4327
- /**
4328
- * Construct a type with a set of properties K of type T
4329
- * @type {{ [key: string]: number; }}
4330
- * @memberof EstimateEventPrice200Response
4331
- */
4332
- 'perPayer': {
4333
- [key: string]: number;
4334
- };
4335
4327
  /**
4336
4328
  * Construct a type with a set of properties K of type T
4337
4329
  * @type {{ [key: string]: number; }}
@@ -4391,6 +4383,247 @@ export interface EstimateEventPriceRequestSharesInner {
4391
4383
  */
4392
4384
  'playerId': string;
4393
4385
  }
4386
+ /**
4387
+ *
4388
+ * @export
4389
+ * @interface EventBookingDetailSummary
4390
+ */
4391
+ export interface EventBookingDetailSummary {
4392
+ /**
4393
+ *
4394
+ * @type {string}
4395
+ * @memberof EventBookingDetailSummary
4396
+ */
4397
+ 'id': string;
4398
+ /**
4399
+ *
4400
+ * @type {EventBookingStatus}
4401
+ * @memberof EventBookingDetailSummary
4402
+ */
4403
+ 'status': EventBookingStatus;
4404
+ /**
4405
+ *
4406
+ * @type {string}
4407
+ * @memberof EventBookingDetailSummary
4408
+ */
4409
+ 'teamName'?: string | null;
4410
+ /**
4411
+ *
4412
+ * @type {Array<string>}
4413
+ * @memberof EventBookingDetailSummary
4414
+ */
4415
+ 'players': Array<string>;
4416
+ /**
4417
+ * Détails des paiements par joueur pour cette réservation d\'événement. Remplace l\'ancien champ `invoices`.
4418
+ * @type {Array<EventBookingDetailSummaryPaymentPerPlayersInner>}
4419
+ * @memberof EventBookingDetailSummary
4420
+ */
4421
+ 'paymentPerPlayers': Array<EventBookingDetailSummaryPaymentPerPlayersInner>;
4422
+ /**
4423
+ *
4424
+ * @type {string}
4425
+ * @memberof EventBookingDetailSummary
4426
+ */
4427
+ 'creatorPaymentMethodId'?: string | null;
4428
+ /**
4429
+ *
4430
+ * @type {boolean}
4431
+ * @memberof EventBookingDetailSummary
4432
+ */
4433
+ 'paymentMethodSetupCompleted': boolean;
4434
+ /**
4435
+ *
4436
+ * @type {string}
4437
+ * @memberof EventBookingDetailSummary
4438
+ */
4439
+ 'limitSetupDate'?: string | null;
4440
+ /**
4441
+ *
4442
+ * @type {string}
4443
+ * @memberof EventBookingDetailSummary
4444
+ */
4445
+ 'limitCancellationDate'?: string | null;
4446
+ /**
4447
+ *
4448
+ * @type {string}
4449
+ * @memberof EventBookingDetailSummary
4450
+ */
4451
+ 'createdAt': string;
4452
+ /**
4453
+ *
4454
+ * @type {string}
4455
+ * @memberof EventBookingDetailSummary
4456
+ */
4457
+ 'updatedAt': string;
4458
+ }
4459
+ /**
4460
+ *
4461
+ * @export
4462
+ * @interface EventBookingDetailSummaryPaymentPerPlayersInner
4463
+ */
4464
+ export interface EventBookingDetailSummaryPaymentPerPlayersInner {
4465
+ /**
4466
+ *
4467
+ * @type {number}
4468
+ * @memberof EventBookingDetailSummaryPaymentPerPlayersInner
4469
+ */
4470
+ 'amount'?: number | null;
4471
+ /**
4472
+ *
4473
+ * @type {InvoiceStatus}
4474
+ * @memberof EventBookingDetailSummaryPaymentPerPlayersInner
4475
+ */
4476
+ 'status'?: InvoiceStatus | null;
4477
+ /**
4478
+ *
4479
+ * @type {string}
4480
+ * @memberof EventBookingDetailSummaryPaymentPerPlayersInner
4481
+ */
4482
+ 'profilePicture'?: string | null;
4483
+ /**
4484
+ *
4485
+ * @type {string}
4486
+ * @memberof EventBookingDetailSummaryPaymentPerPlayersInner
4487
+ */
4488
+ 'lastName'?: string | null;
4489
+ /**
4490
+ *
4491
+ * @type {string}
4492
+ * @memberof EventBookingDetailSummaryPaymentPerPlayersInner
4493
+ */
4494
+ 'firstName'?: string | null;
4495
+ /**
4496
+ *
4497
+ * @type {string}
4498
+ * @memberof EventBookingDetailSummaryPaymentPerPlayersInner
4499
+ */
4500
+ 'id': string;
4501
+ }
4502
+ /**
4503
+ *
4504
+ * @export
4505
+ * @interface EventBookingResponse
4506
+ */
4507
+ export interface EventBookingResponse {
4508
+ /**
4509
+ *
4510
+ * @type {string}
4511
+ * @memberof EventBookingResponse
4512
+ */
4513
+ 'id': string;
4514
+ /**
4515
+ *
4516
+ * @type {EventBookingStatus}
4517
+ * @memberof EventBookingResponse
4518
+ */
4519
+ 'status': EventBookingStatus;
4520
+ /**
4521
+ *
4522
+ * @type {string}
4523
+ * @memberof EventBookingResponse
4524
+ */
4525
+ 'teamName'?: string | null;
4526
+ /**
4527
+ *
4528
+ * @type {Array<EventBookingResponsePlayersInner>}
4529
+ * @memberof EventBookingResponse
4530
+ */
4531
+ 'players': Array<EventBookingResponsePlayersInner>;
4532
+ /**
4533
+ *
4534
+ * @type {string}
4535
+ * @memberof EventBookingResponse
4536
+ */
4537
+ 'setupLimitDate'?: string | null;
4538
+ /**
4539
+ *
4540
+ * @type {string}
4541
+ * @memberof EventBookingResponse
4542
+ */
4543
+ 'cancellationLimitDate'?: string | null;
4544
+ /**
4545
+ *
4546
+ * @type {EventBookingResponseSetupStatus}
4547
+ * @memberof EventBookingResponse
4548
+ */
4549
+ 'setupStatus'?: EventBookingResponseSetupStatus | null;
4550
+ /**
4551
+ *
4552
+ * @type {string}
4553
+ * @memberof EventBookingResponse
4554
+ */
4555
+ 'createdAt': string;
4556
+ /**
4557
+ *
4558
+ * @type {string}
4559
+ * @memberof EventBookingResponse
4560
+ */
4561
+ 'updatedAt': string;
4562
+ }
4563
+ /**
4564
+ *
4565
+ * @export
4566
+ * @interface EventBookingResponsePlayersInner
4567
+ */
4568
+ export interface EventBookingResponsePlayersInner {
4569
+ /**
4570
+ *
4571
+ * @type {EventBookingResponsePlayersInnerInvoiceStatus}
4572
+ * @memberof EventBookingResponsePlayersInner
4573
+ */
4574
+ 'invoiceStatus'?: EventBookingResponsePlayersInnerInvoiceStatus | null;
4575
+ /**
4576
+ *
4577
+ * @type {string}
4578
+ * @memberof EventBookingResponsePlayersInner
4579
+ */
4580
+ 'profilePicture'?: string | null;
4581
+ /**
4582
+ *
4583
+ * @type {string}
4584
+ * @memberof EventBookingResponsePlayersInner
4585
+ */
4586
+ 'lastName'?: string | null;
4587
+ /**
4588
+ *
4589
+ * @type {string}
4590
+ * @memberof EventBookingResponsePlayersInner
4591
+ */
4592
+ 'firstName'?: string | null;
4593
+ /**
4594
+ *
4595
+ * @type {string}
4596
+ * @memberof EventBookingResponsePlayersInner
4597
+ */
4598
+ 'id': string;
4599
+ }
4600
+ /**
4601
+ *
4602
+ * @export
4603
+ * @interface EventBookingResponsePlayersInnerInvoiceStatus
4604
+ */
4605
+ export interface EventBookingResponsePlayersInnerInvoiceStatus {
4606
+ }
4607
+ /**
4608
+ *
4609
+ * @export
4610
+ * @interface EventBookingResponseSetupStatus
4611
+ */
4612
+ export interface EventBookingResponseSetupStatus {
4613
+ }
4614
+ /**
4615
+ *
4616
+ * @export
4617
+ * @enum {string}
4618
+ */
4619
+ export declare const EventBookingStatus: {
4620
+ readonly Pending: "pending";
4621
+ readonly Active: "active";
4622
+ readonly Paid: "paid";
4623
+ readonly Cancelled: "cancelled";
4624
+ readonly Expired: "expired";
4625
+ };
4626
+ export type EventBookingStatus = typeof EventBookingStatus[keyof typeof EventBookingStatus];
4394
4627
  /**
4395
4628
  *
4396
4629
  * @export
@@ -5754,6 +5987,24 @@ export declare const InvoiceStatus: {
5754
5987
  readonly Expired: "expired";
5755
5988
  };
5756
5989
  export type InvoiceStatus = typeof InvoiceStatus[keyof typeof InvoiceStatus];
5990
+ /**
5991
+ *
5992
+ * @export
5993
+ * @enum {string}
5994
+ */
5995
+ export declare const InvoiceStatusSETUPPENDING: {
5996
+ readonly SetupPending: "setup_pending";
5997
+ };
5998
+ export type InvoiceStatusSETUPPENDING = typeof InvoiceStatusSETUPPENDING[keyof typeof InvoiceStatusSETUPPENDING];
5999
+ /**
6000
+ *
6001
+ * @export
6002
+ * @enum {string}
6003
+ */
6004
+ export declare const InvoiceStatusSETUPSUCCESS: {
6005
+ readonly SetupSuccess: "setup_success";
6006
+ };
6007
+ export type InvoiceStatusSETUPSUCCESS = typeof InvoiceStatusSETUPSUCCESS[keyof typeof InvoiceStatusSETUPSUCCESS];
5757
6008
  /**
5758
6009
  *
5759
6010
  * @export
@@ -6495,6 +6746,16 @@ export interface PartialSchoolAccessSettings {
6495
6746
  */
6496
6747
  'enabled'?: boolean;
6497
6748
  }
6749
+ /**
6750
+ *
6751
+ * @export
6752
+ * @enum {string}
6753
+ */
6754
+ export declare const ParticipationType: {
6755
+ readonly Solo: "solo";
6756
+ readonly Team: "team";
6757
+ };
6758
+ export type ParticipationType = typeof ParticipationType[keyof typeof ParticipationType];
6498
6759
  /**
6499
6760
  *
6500
6761
  * @export
@@ -7240,6 +7501,18 @@ export interface PublishEventResponse {
7240
7501
  * @memberof PublishEventResponse
7241
7502
  */
7242
7503
  'refundedBookingIds'?: Array<string>;
7504
+ /**
7505
+ *
7506
+ * @type {EventBookingResponse}
7507
+ * @memberof PublishEventResponse
7508
+ */
7509
+ 'userBooking'?: EventBookingResponse;
7510
+ /**
7511
+ *
7512
+ * @type {boolean}
7513
+ * @memberof PublishEventResponse
7514
+ */
7515
+ 'needsToSetupPaymentMethod'?: boolean;
7243
7516
  }
7244
7517
  /**
7245
7518
  *
@@ -7450,6 +7723,68 @@ export interface QuickReservationSlotSummary {
7450
7723
  */
7451
7724
  'sportKey'?: string;
7452
7725
  }
7726
+ /**
7727
+ *
7728
+ * @export
7729
+ * @interface RecurringDefinitionResponse
7730
+ */
7731
+ export interface RecurringDefinitionResponse {
7732
+ /**
7733
+ *
7734
+ * @type {string}
7735
+ * @memberof RecurringDefinitionResponse
7736
+ */
7737
+ 'id': string;
7738
+ /**
7739
+ *
7740
+ * @type {string}
7741
+ * @memberof RecurringDefinitionResponse
7742
+ */
7743
+ 'clubId'?: string;
7744
+ /**
7745
+ *
7746
+ * @type {string}
7747
+ * @memberof RecurringDefinitionResponse
7748
+ */
7749
+ 'title': string;
7750
+ /**
7751
+ *
7752
+ * @type {string}
7753
+ * @memberof RecurringDefinitionResponse
7754
+ */
7755
+ 'baseStartDate': string;
7756
+ /**
7757
+ *
7758
+ * @type {string}
7759
+ * @memberof RecurringDefinitionResponse
7760
+ */
7761
+ 'baseEndDate': string;
7762
+ /**
7763
+ *
7764
+ * @type {string}
7765
+ * @memberof RecurringDefinitionResponse
7766
+ */
7767
+ 'recurringType': RecurringDefinitionResponseRecurringTypeEnum;
7768
+ /**
7769
+ *
7770
+ * @type {string}
7771
+ * @memberof RecurringDefinitionResponse
7772
+ */
7773
+ 'recurrenceEndDate'?: string;
7774
+ /**
7775
+ *
7776
+ * @type {boolean}
7777
+ * @memberof RecurringDefinitionResponse
7778
+ */
7779
+ 'isActive'?: boolean;
7780
+ }
7781
+ export declare const RecurringDefinitionResponseRecurringTypeEnum: {
7782
+ readonly Daily: "daily";
7783
+ readonly Weekly: "weekly";
7784
+ readonly Monthly: "monthly";
7785
+ readonly Unique: "unique";
7786
+ };
7787
+ export type RecurringDefinitionResponseRecurringTypeEnum = typeof RecurringDefinitionResponseRecurringTypeEnum[keyof typeof RecurringDefinitionResponseRecurringTypeEnum];
7453
7788
  /**
7454
7789
  *
7455
7790
  * @export
@@ -10649,30 +10984,187 @@ export type UpdateEventRequestVisibilityTypeEnum = typeof UpdateEventRequestVisi
10649
10984
  export interface UpdateLevelBySportsRequestBody {
10650
10985
  /**
10651
10986
  *
10652
- * @type {Array<LevelBySportEntry>}
10653
- * @memberof UpdateLevelBySportsRequestBody
10987
+ * @type {Array<LevelBySportEntry>}
10988
+ * @memberof UpdateLevelBySportsRequestBody
10989
+ */
10990
+ 'levelBySports': Array<LevelBySportEntry>;
10991
+ }
10992
+ /**
10993
+ *
10994
+ * @export
10995
+ * @interface UpdatePlanRequest
10996
+ */
10997
+ export interface UpdatePlanRequest {
10998
+ /**
10999
+ *
11000
+ * @type {number}
11001
+ * @memberof UpdatePlanRequest
11002
+ */
11003
+ 'newAmountInCents': number;
11004
+ /**
11005
+ *
11006
+ * @type {string}
11007
+ * @memberof UpdatePlanRequest
11008
+ */
11009
+ 'oldPriceId': string;
11010
+ }
11011
+ /**
11012
+ *
11013
+ * @export
11014
+ * @interface UpdateRecurringDefinition200Response
11015
+ */
11016
+ export interface UpdateRecurringDefinition200Response {
11017
+ /**
11018
+ *
11019
+ * @type {boolean}
11020
+ * @memberof UpdateRecurringDefinition200Response
11021
+ */
11022
+ 'ok': boolean;
11023
+ }
11024
+ /**
11025
+ *
11026
+ * @export
11027
+ * @interface UpdateRecurringDefinitionRequest
11028
+ */
11029
+ export interface UpdateRecurringDefinitionRequest {
11030
+ /**
11031
+ *
11032
+ * @type {string}
11033
+ * @memberof UpdateRecurringDefinitionRequest
11034
+ */
11035
+ 'title'?: string;
11036
+ /**
11037
+ *
11038
+ * @type {string}
11039
+ * @memberof UpdateRecurringDefinitionRequest
11040
+ */
11041
+ 'description'?: string;
11042
+ /**
11043
+ *
11044
+ * @type {string}
11045
+ * @memberof UpdateRecurringDefinitionRequest
11046
+ */
11047
+ 'photoUrl'?: string;
11048
+ /**
11049
+ *
11050
+ * @type {string}
11051
+ * @memberof UpdateRecurringDefinitionRequest
11052
+ */
11053
+ 'sportId'?: string;
11054
+ /**
11055
+ *
11056
+ * @type {Array<string>}
11057
+ * @memberof UpdateRecurringDefinitionRequest
11058
+ */
11059
+ 'courts'?: Array<string>;
11060
+ /**
11061
+ *
11062
+ * @type {Array<string | null>}
11063
+ * @memberof UpdateRecurringDefinitionRequest
11064
+ */
11065
+ 'levels'?: Array<string | null>;
11066
+ /**
11067
+ *
11068
+ * @type {Array<EventSponsor>}
11069
+ * @memberof UpdateRecurringDefinitionRequest
11070
+ */
11071
+ 'sponsors'?: Array<EventSponsor>;
11072
+ /**
11073
+ *
11074
+ * @type {string}
11075
+ * @memberof UpdateRecurringDefinitionRequest
11076
+ */
11077
+ 'visibilityType'?: UpdateRecurringDefinitionRequestVisibilityTypeEnum;
11078
+ /**
11079
+ *
11080
+ * @type {string}
11081
+ * @memberof UpdateRecurringDefinitionRequest
11082
+ */
11083
+ 'type'?: UpdateRecurringDefinitionRequestTypeEnum;
11084
+ /**
11085
+ *
11086
+ * @type {string}
11087
+ * @memberof UpdateRecurringDefinitionRequest
11088
+ */
11089
+ 'participationType'?: UpdateRecurringDefinitionRequestParticipationTypeEnum;
11090
+ /**
11091
+ *
11092
+ * @type {number}
11093
+ * @memberof UpdateRecurringDefinitionRequest
11094
+ */
11095
+ 'playerLimit'?: number;
11096
+ /**
11097
+ *
11098
+ * @type {number}
11099
+ * @memberof UpdateRecurringDefinitionRequest
11100
+ */
11101
+ 'teamLimit'?: number;
11102
+ /**
11103
+ *
11104
+ * @type {number}
11105
+ * @memberof UpdateRecurringDefinitionRequest
11106
+ */
11107
+ 'playersPerTeam'?: number;
11108
+ /**
11109
+ *
11110
+ * @type {number}
11111
+ * @memberof UpdateRecurringDefinitionRequest
11112
+ */
11113
+ 'price'?: number;
11114
+ /**
11115
+ *
11116
+ * @type {Array<SubscriberPrice>}
11117
+ * @memberof UpdateRecurringDefinitionRequest
10654
11118
  */
10655
- 'levelBySports': Array<LevelBySportEntry>;
10656
- }
10657
- /**
10658
- *
10659
- * @export
10660
- * @interface UpdatePlanRequest
10661
- */
10662
- export interface UpdatePlanRequest {
11119
+ 'subscriberPrices'?: Array<SubscriberPrice>;
10663
11120
  /**
10664
11121
  *
10665
- * @type {number}
10666
- * @memberof UpdatePlanRequest
11122
+ * @type {string}
11123
+ * @memberof UpdateRecurringDefinitionRequest
10667
11124
  */
10668
- 'newAmountInCents': number;
11125
+ 'baseStartDate'?: string;
10669
11126
  /**
10670
11127
  *
10671
11128
  * @type {string}
10672
- * @memberof UpdatePlanRequest
11129
+ * @memberof UpdateRecurringDefinitionRequest
10673
11130
  */
10674
- 'oldPriceId': string;
11131
+ 'baseEndDate'?: string;
11132
+ /**
11133
+ *
11134
+ * @type {string}
11135
+ * @memberof UpdateRecurringDefinitionRequest
11136
+ */
11137
+ 'recurringType'?: UpdateRecurringDefinitionRequestRecurringTypeEnum;
11138
+ /**
11139
+ *
11140
+ * @type {string}
11141
+ * @memberof UpdateRecurringDefinitionRequest
11142
+ */
11143
+ 'recurrenceEndDate'?: string;
10675
11144
  }
11145
+ export declare const UpdateRecurringDefinitionRequestVisibilityTypeEnum: {
11146
+ readonly Public: "public";
11147
+ readonly Private: "private";
11148
+ readonly Invitation: "invitation";
11149
+ };
11150
+ export type UpdateRecurringDefinitionRequestVisibilityTypeEnum = typeof UpdateRecurringDefinitionRequestVisibilityTypeEnum[keyof typeof UpdateRecurringDefinitionRequestVisibilityTypeEnum];
11151
+ export declare const UpdateRecurringDefinitionRequestTypeEnum: {
11152
+ readonly Event: "event";
11153
+ readonly Closure: "closure";
11154
+ };
11155
+ export type UpdateRecurringDefinitionRequestTypeEnum = typeof UpdateRecurringDefinitionRequestTypeEnum[keyof typeof UpdateRecurringDefinitionRequestTypeEnum];
11156
+ export declare const UpdateRecurringDefinitionRequestParticipationTypeEnum: {
11157
+ readonly Solo: "solo";
11158
+ readonly Team: "team";
11159
+ };
11160
+ export type UpdateRecurringDefinitionRequestParticipationTypeEnum = typeof UpdateRecurringDefinitionRequestParticipationTypeEnum[keyof typeof UpdateRecurringDefinitionRequestParticipationTypeEnum];
11161
+ export declare const UpdateRecurringDefinitionRequestRecurringTypeEnum: {
11162
+ readonly Daily: "daily";
11163
+ readonly Weekly: "weekly";
11164
+ readonly Monthly: "monthly";
11165
+ readonly Unique: "unique";
11166
+ };
11167
+ export type UpdateRecurringDefinitionRequestRecurringTypeEnum = typeof UpdateRecurringDefinitionRequestRecurringTypeEnum[keyof typeof UpdateRecurringDefinitionRequestRecurringTypeEnum];
10676
11168
  /**
10677
11169
  *
10678
11170
  * @export
@@ -11023,6 +11515,153 @@ export interface UserClubSubscription {
11023
11515
  * @memberof UserClubSubscription
11024
11516
  */
11025
11517
  'interval': PlanInterval | null;
11518
+ /**
11519
+ *
11520
+ * @type {string}
11521
+ * @memberof UserClubSubscription
11522
+ */
11523
+ 'productId': string | null;
11524
+ }
11525
+ /**
11526
+ *
11527
+ * @export
11528
+ * @interface UserEventParticipation
11529
+ */
11530
+ export interface UserEventParticipation {
11531
+ /**
11532
+ *
11533
+ * @type {UserEventSummary}
11534
+ * @memberof UserEventParticipation
11535
+ */
11536
+ 'event': UserEventSummary;
11537
+ /**
11538
+ *
11539
+ * @type {EventBookingDetailSummary}
11540
+ * @memberof UserEventParticipation
11541
+ */
11542
+ 'booking': EventBookingDetailSummary;
11543
+ }
11544
+ /**
11545
+ *
11546
+ * @export
11547
+ * @interface UserEventSummary
11548
+ */
11549
+ export interface UserEventSummary {
11550
+ /**
11551
+ *
11552
+ * @type {string}
11553
+ * @memberof UserEventSummary
11554
+ */
11555
+ 'id': string;
11556
+ /**
11557
+ *
11558
+ * @type {string}
11559
+ * @memberof UserEventSummary
11560
+ */
11561
+ 'clubId': string;
11562
+ /**
11563
+ *
11564
+ * @type {string}
11565
+ * @memberof UserEventSummary
11566
+ */
11567
+ 'title': string;
11568
+ /**
11569
+ *
11570
+ * @type {string}
11571
+ * @memberof UserEventSummary
11572
+ */
11573
+ 'description'?: string | null;
11574
+ /**
11575
+ *
11576
+ * @type {string}
11577
+ * @memberof UserEventSummary
11578
+ */
11579
+ 'photoUrl'?: string | null;
11580
+ /**
11581
+ *
11582
+ * @type {string}
11583
+ * @memberof UserEventSummary
11584
+ */
11585
+ 'startDate': string;
11586
+ /**
11587
+ *
11588
+ * @type {string}
11589
+ * @memberof UserEventSummary
11590
+ */
11591
+ 'endDate': string;
11592
+ /**
11593
+ *
11594
+ * @type {ParticipationType}
11595
+ * @memberof UserEventSummary
11596
+ */
11597
+ 'participationType': ParticipationType;
11598
+ /**
11599
+ *
11600
+ * @type {VisibilityType}
11601
+ * @memberof UserEventSummary
11602
+ */
11603
+ 'visibilityType': VisibilityType;
11604
+ /**
11605
+ *
11606
+ * @type {boolean}
11607
+ * @memberof UserEventSummary
11608
+ */
11609
+ 'isActive': boolean;
11610
+ /**
11611
+ *
11612
+ * @type {number}
11613
+ * @memberof UserEventSummary
11614
+ */
11615
+ 'price'?: number | null;
11616
+ /**
11617
+ *
11618
+ * @type {Array<string>}
11619
+ * @memberof UserEventSummary
11620
+ */
11621
+ 'sports'?: Array<string>;
11622
+ /**
11623
+ *
11624
+ * @type {Array<string>}
11625
+ * @memberof UserEventSummary
11626
+ */
11627
+ 'courts'?: Array<string>;
11628
+ }
11629
+ /**
11630
+ *
11631
+ * @export
11632
+ * @interface UserEventsResponse
11633
+ */
11634
+ export interface UserEventsResponse {
11635
+ /**
11636
+ *
11637
+ * @type {number}
11638
+ * @memberof UserEventsResponse
11639
+ */
11640
+ 'total': number;
11641
+ /**
11642
+ *
11643
+ * @type {number}
11644
+ * @memberof UserEventsResponse
11645
+ */
11646
+ 'limit': number;
11647
+ /**
11648
+ *
11649
+ * @type {number}
11650
+ * @memberof UserEventsResponse
11651
+ */
11652
+ 'skip': number;
11653
+ /**
11654
+ *
11655
+ * @type {boolean}
11656
+ * @memberof UserEventsResponse
11657
+ */
11658
+ 'hasMore': boolean;
11659
+ /**
11660
+ *
11661
+ * @type {Array<UserEventParticipation>}
11662
+ * @memberof UserEventsResponse
11663
+ */
11664
+ 'participations': Array<UserEventParticipation>;
11026
11665
  }
11027
11666
  /**
11028
11667
  *
@@ -11428,6 +12067,17 @@ export interface VerifyEmailRequest {
11428
12067
  */
11429
12068
  'token'?: string;
11430
12069
  }
12070
+ /**
12071
+ *
12072
+ * @export
12073
+ * @enum {string}
12074
+ */
12075
+ export declare const VisibilityType: {
12076
+ readonly Public: "public";
12077
+ readonly Private: "private";
12078
+ readonly Invitation: "invitation";
12079
+ };
12080
+ export type VisibilityType = typeof VisibilityType[keyof typeof VisibilityType];
11431
12081
  /**
11432
12082
  *
11433
12083
  * @export
@@ -15891,10 +16541,11 @@ export declare const EventsApiAxiosParamCreator: (configuration?: Configuration)
15891
16541
  /**
15892
16542
  * Get a specific event by ID
15893
16543
  * @param {string} eventId
16544
+ * @param {string} [userId]
15894
16545
  * @param {*} [options] Override http request option.
15895
16546
  * @throws {RequiredError}
15896
16547
  */
15897
- getEventById: (eventId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
16548
+ getEventById: (eventId: string, userId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
15898
16549
  /**
15899
16550
  * Get all published events for a club
15900
16551
  * @param {string} [clubId]
@@ -15945,10 +16596,11 @@ export declare const EventsApiFp: (configuration?: Configuration) => {
15945
16596
  /**
15946
16597
  * Get a specific event by ID
15947
16598
  * @param {string} eventId
16599
+ * @param {string} [userId]
15948
16600
  * @param {*} [options] Override http request option.
15949
16601
  * @throws {RequiredError}
15950
16602
  */
15951
- getEventById(eventId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PublishEventResponse>>;
16603
+ getEventById(eventId: string, userId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PublishEventResponse>>;
15952
16604
  /**
15953
16605
  * Get all published events for a club
15954
16606
  * @param {string} [clubId]
@@ -16073,6 +16725,12 @@ export interface EventsApiGetEventByIdRequest {
16073
16725
  * @memberof EventsApiGetEventById
16074
16726
  */
16075
16727
  readonly eventId: string;
16728
+ /**
16729
+ *
16730
+ * @type {string}
16731
+ * @memberof EventsApiGetEventById
16732
+ */
16733
+ readonly userId?: string;
16076
16734
  }
16077
16735
  /**
16078
16736
  * Request parameters for getPublishedEventsByClubId operation in EventsApi.
@@ -16236,6 +16894,13 @@ export declare const EventsManagerApiAxiosParamCreator: (configuration?: Configu
16236
16894
  * @throws {RequiredError}
16237
16895
  */
16238
16896
  deleteEvent: (eventId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
16897
+ /**
16898
+ * List recurring definitions about to expire within `days` (manager)
16899
+ * @param {number} [days]
16900
+ * @param {*} [options] Override http request option.
16901
+ * @throws {RequiredError}
16902
+ */
16903
+ getExpiringRecurringDefinitions: (days?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
16239
16904
  /**
16240
16905
  * Publish an event (manager)
16241
16906
  * @param {string} eventId
@@ -16266,6 +16931,14 @@ export declare const EventsManagerApiAxiosParamCreator: (configuration?: Configu
16266
16931
  * @throws {RequiredError}
16267
16932
  */
16268
16933
  updatePublishedEvent: (eventId: string, updateEventRequest: UpdateEventRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
16934
+ /**
16935
+ * Update a recurring event definition (manager) and propagate changes to generated Events
16936
+ * @param {string} definitionId
16937
+ * @param {UpdateRecurringDefinitionRequest} updateRecurringDefinitionRequest
16938
+ * @param {*} [options] Override http request option.
16939
+ * @throws {RequiredError}
16940
+ */
16941
+ updateRecurringDefinition: (definitionId: string, updateRecurringDefinitionRequest: UpdateRecurringDefinitionRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
16269
16942
  };
16270
16943
  /**
16271
16944
  * EventsManagerApi - functional programming interface
@@ -16293,6 +16966,13 @@ export declare const EventsManagerApiFp: (configuration?: Configuration) => {
16293
16966
  * @throws {RequiredError}
16294
16967
  */
16295
16968
  deleteEvent(eventId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteEventResponse>>;
16969
+ /**
16970
+ * List recurring definitions about to expire within `days` (manager)
16971
+ * @param {number} [days]
16972
+ * @param {*} [options] Override http request option.
16973
+ * @throws {RequiredError}
16974
+ */
16975
+ getExpiringRecurringDefinitions(days?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<RecurringDefinitionResponse>>>;
16296
16976
  /**
16297
16977
  * Publish an event (manager)
16298
16978
  * @param {string} eventId
@@ -16323,6 +17003,14 @@ export declare const EventsManagerApiFp: (configuration?: Configuration) => {
16323
17003
  * @throws {RequiredError}
16324
17004
  */
16325
17005
  updatePublishedEvent(eventId: string, updateEventRequest: UpdateEventRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PublishEventResponse>>;
17006
+ /**
17007
+ * Update a recurring event definition (manager) and propagate changes to generated Events
17008
+ * @param {string} definitionId
17009
+ * @param {UpdateRecurringDefinitionRequest} updateRecurringDefinitionRequest
17010
+ * @param {*} [options] Override http request option.
17011
+ * @throws {RequiredError}
17012
+ */
17013
+ updateRecurringDefinition(definitionId: string, updateRecurringDefinitionRequest: UpdateRecurringDefinitionRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateRecurringDefinition200Response>>;
16326
17014
  };
16327
17015
  /**
16328
17016
  * EventsManagerApi - factory interface
@@ -16350,6 +17038,13 @@ export declare const EventsManagerApiFactory: (configuration?: Configuration, ba
16350
17038
  * @throws {RequiredError}
16351
17039
  */
16352
17040
  deleteEvent(requestParameters: EventsManagerApiDeleteEventRequest, options?: RawAxiosRequestConfig): AxiosPromise<DeleteEventResponse>;
17041
+ /**
17042
+ * List recurring definitions about to expire within `days` (manager)
17043
+ * @param {EventsManagerApiGetExpiringRecurringDefinitionsRequest} requestParameters Request parameters.
17044
+ * @param {*} [options] Override http request option.
17045
+ * @throws {RequiredError}
17046
+ */
17047
+ getExpiringRecurringDefinitions(requestParameters?: EventsManagerApiGetExpiringRecurringDefinitionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<RecurringDefinitionResponse>>;
16353
17048
  /**
16354
17049
  * Publish an event (manager)
16355
17050
  * @param {EventsManagerApiPublishEventRequest} requestParameters Request parameters.
@@ -16378,6 +17073,13 @@ export declare const EventsManagerApiFactory: (configuration?: Configuration, ba
16378
17073
  * @throws {RequiredError}
16379
17074
  */
16380
17075
  updatePublishedEvent(requestParameters: EventsManagerApiUpdatePublishedEventRequest, options?: RawAxiosRequestConfig): AxiosPromise<PublishEventResponse>;
17076
+ /**
17077
+ * Update a recurring event definition (manager) and propagate changes to generated Events
17078
+ * @param {EventsManagerApiUpdateRecurringDefinitionRequest} requestParameters Request parameters.
17079
+ * @param {*} [options] Override http request option.
17080
+ * @throws {RequiredError}
17081
+ */
17082
+ updateRecurringDefinition(requestParameters: EventsManagerApiUpdateRecurringDefinitionRequest, options?: RawAxiosRequestConfig): AxiosPromise<UpdateRecurringDefinition200Response>;
16381
17083
  };
16382
17084
  /**
16383
17085
  * Request parameters for checkEventConflicts operation in EventsManagerApi.
@@ -16418,6 +17120,19 @@ export interface EventsManagerApiDeleteEventRequest {
16418
17120
  */
16419
17121
  readonly eventId: string;
16420
17122
  }
17123
+ /**
17124
+ * Request parameters for getExpiringRecurringDefinitions operation in EventsManagerApi.
17125
+ * @export
17126
+ * @interface EventsManagerApiGetExpiringRecurringDefinitionsRequest
17127
+ */
17128
+ export interface EventsManagerApiGetExpiringRecurringDefinitionsRequest {
17129
+ /**
17130
+ *
17131
+ * @type {number}
17132
+ * @memberof EventsManagerApiGetExpiringRecurringDefinitions
17133
+ */
17134
+ readonly days?: number;
17135
+ }
16421
17136
  /**
16422
17137
  * Request parameters for publishEvent operation in EventsManagerApi.
16423
17138
  * @export
@@ -16482,6 +17197,25 @@ export interface EventsManagerApiUpdatePublishedEventRequest {
16482
17197
  */
16483
17198
  readonly updateEventRequest: UpdateEventRequest;
16484
17199
  }
17200
+ /**
17201
+ * Request parameters for updateRecurringDefinition operation in EventsManagerApi.
17202
+ * @export
17203
+ * @interface EventsManagerApiUpdateRecurringDefinitionRequest
17204
+ */
17205
+ export interface EventsManagerApiUpdateRecurringDefinitionRequest {
17206
+ /**
17207
+ *
17208
+ * @type {string}
17209
+ * @memberof EventsManagerApiUpdateRecurringDefinition
17210
+ */
17211
+ readonly definitionId: string;
17212
+ /**
17213
+ *
17214
+ * @type {UpdateRecurringDefinitionRequest}
17215
+ * @memberof EventsManagerApiUpdateRecurringDefinition
17216
+ */
17217
+ readonly updateRecurringDefinitionRequest: UpdateRecurringDefinitionRequest;
17218
+ }
16485
17219
  /**
16486
17220
  * EventsManagerApi - object-oriented interface
16487
17221
  * @export
@@ -16513,6 +17247,14 @@ export declare class EventsManagerApi extends BaseAPI {
16513
17247
  * @memberof EventsManagerApi
16514
17248
  */
16515
17249
  deleteEvent(requestParameters: EventsManagerApiDeleteEventRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DeleteEventResponse, any, {}>>;
17250
+ /**
17251
+ * List recurring definitions about to expire within `days` (manager)
17252
+ * @param {EventsManagerApiGetExpiringRecurringDefinitionsRequest} requestParameters Request parameters.
17253
+ * @param {*} [options] Override http request option.
17254
+ * @throws {RequiredError}
17255
+ * @memberof EventsManagerApi
17256
+ */
17257
+ getExpiringRecurringDefinitions(requestParameters?: EventsManagerApiGetExpiringRecurringDefinitionsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<RecurringDefinitionResponse[], any, {}>>;
16516
17258
  /**
16517
17259
  * Publish an event (manager)
16518
17260
  * @param {EventsManagerApiPublishEventRequest} requestParameters Request parameters.
@@ -16545,6 +17287,14 @@ export declare class EventsManagerApi extends BaseAPI {
16545
17287
  * @memberof EventsManagerApi
16546
17288
  */
16547
17289
  updatePublishedEvent(requestParameters: EventsManagerApiUpdatePublishedEventRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PublishEventResponse, any, {}>>;
17290
+ /**
17291
+ * Update a recurring event definition (manager) and propagate changes to generated Events
17292
+ * @param {EventsManagerApiUpdateRecurringDefinitionRequest} requestParameters Request parameters.
17293
+ * @param {*} [options] Override http request option.
17294
+ * @throws {RequiredError}
17295
+ * @memberof EventsManagerApi
17296
+ */
17297
+ updateRecurringDefinition(requestParameters: EventsManagerApiUpdateRecurringDefinitionRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateRecurringDefinition200Response, any, {}>>;
16548
17298
  }
16549
17299
  /**
16550
17300
  * EventsStaffApi - axios parameter creator
@@ -17947,6 +18697,14 @@ export declare const UsersApiAxiosParamCreator: (configuration?: Configuration)
17947
18697
  * @throws {RequiredError}
17948
18698
  */
17949
18699
  getUserBookings: (limit?: number, skip?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
18700
+ /**
18701
+ *
18702
+ * @param {number} [limit]
18703
+ * @param {number} [skip]
18704
+ * @param {*} [options] Override http request option.
18705
+ * @throws {RequiredError}
18706
+ */
18707
+ getUserEvents: (limit?: number, skip?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
17950
18708
  /**
17951
18709
  *
17952
18710
  * @param {string} id
@@ -18222,6 +18980,14 @@ export declare const UsersApiFp: (configuration?: Configuration) => {
18222
18980
  * @throws {RequiredError}
18223
18981
  */
18224
18982
  getUserBookings(limit?: number, skip?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserBookingsResponse>>;
18983
+ /**
18984
+ *
18985
+ * @param {number} [limit]
18986
+ * @param {number} [skip]
18987
+ * @param {*} [options] Override http request option.
18988
+ * @throws {RequiredError}
18989
+ */
18990
+ getUserEvents(limit?: number, skip?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserEventsResponse>>;
18225
18991
  /**
18226
18992
  *
18227
18993
  * @param {string} id
@@ -18488,6 +19254,13 @@ export declare const UsersApiFactory: (configuration?: Configuration, basePath?:
18488
19254
  * @throws {RequiredError}
18489
19255
  */
18490
19256
  getUserBookings(requestParameters?: UsersApiGetUserBookingsRequest, options?: RawAxiosRequestConfig): AxiosPromise<UserBookingsResponse>;
19257
+ /**
19258
+ *
19259
+ * @param {UsersApiGetUserEventsRequest} requestParameters Request parameters.
19260
+ * @param {*} [options] Override http request option.
19261
+ * @throws {RequiredError}
19262
+ */
19263
+ getUserEvents(requestParameters?: UsersApiGetUserEventsRequest, options?: RawAxiosRequestConfig): AxiosPromise<UserEventsResponse>;
18491
19264
  /**
18492
19265
  *
18493
19266
  * @param {UsersApiGetUserProfileByIdRequest} requestParameters Request parameters.
@@ -18798,6 +19571,25 @@ export interface UsersApiGetUserBookingsRequest {
18798
19571
  */
18799
19572
  readonly skip?: number;
18800
19573
  }
19574
+ /**
19575
+ * Request parameters for getUserEvents operation in UsersApi.
19576
+ * @export
19577
+ * @interface UsersApiGetUserEventsRequest
19578
+ */
19579
+ export interface UsersApiGetUserEventsRequest {
19580
+ /**
19581
+ *
19582
+ * @type {number}
19583
+ * @memberof UsersApiGetUserEvents
19584
+ */
19585
+ readonly limit?: number;
19586
+ /**
19587
+ *
19588
+ * @type {number}
19589
+ * @memberof UsersApiGetUserEvents
19590
+ */
19591
+ readonly skip?: number;
19592
+ }
18801
19593
  /**
18802
19594
  * Request parameters for getUserProfileById operation in UsersApi.
18803
19595
  * @export
@@ -19224,6 +20016,14 @@ export declare class UsersApi extends BaseAPI {
19224
20016
  * @memberof UsersApi
19225
20017
  */
19226
20018
  getUserBookings(requestParameters?: UsersApiGetUserBookingsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<UserBookingsResponse, any, {}>>;
20019
+ /**
20020
+ *
20021
+ * @param {UsersApiGetUserEventsRequest} requestParameters Request parameters.
20022
+ * @param {*} [options] Override http request option.
20023
+ * @throws {RequiredError}
20024
+ * @memberof UsersApi
20025
+ */
20026
+ getUserEvents(requestParameters?: UsersApiGetUserEventsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<UserEventsResponse, any, {}>>;
19227
20027
  /**
19228
20028
  *
19229
20029
  * @param {UsersApiGetUserProfileByIdRequest} requestParameters Request parameters.