@tennac-booking/sdk 1.0.130 → 1.0.132

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 (52) hide show
  1. package/.openapi-generator/FILES +362 -344
  2. package/README.md +23 -2
  3. package/api.ts +1064 -35
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +1 -1
  7. package/dist/api.d.ts +875 -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 +875 -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 +38 -0
  31. package/docs/EventBookingResponsePaymentPerPlayersInner.md +30 -0
  32. package/docs/EventBookingResponsePlayersInner.md +28 -0
  33. package/docs/EventBookingResponsePlayersInnerInvoiceStatus.md +18 -0
  34. package/docs/EventBookingResponseSetupStatus.md +18 -0
  35. package/docs/EventBookingStatus.md +16 -0
  36. package/docs/EventsApi.md +4 -1
  37. package/docs/EventsManagerApi.md +110 -0
  38. package/docs/InvoiceStatusSETUPPENDING.md +8 -0
  39. package/docs/InvoiceStatusSETUPSUCCESS.md +8 -0
  40. package/docs/ParticipationType.md +10 -0
  41. package/docs/PublishEventResponse.md +4 -0
  42. package/docs/RecurringDefinitionResponse.md +34 -0
  43. package/docs/UpdateRecurringDefinition200Response.md +20 -0
  44. package/docs/UpdateRecurringDefinitionRequest.md +56 -0
  45. package/docs/UserClubSubscription.md +2 -0
  46. package/docs/UserEventParticipation.md +22 -0
  47. package/docs/UserEventSummary.md +44 -0
  48. package/docs/UserEventsResponse.md +28 -0
  49. package/docs/UsersApi.md +54 -0
  50. package/docs/VisibilityType.md +12 -0
  51. package/index.ts +1 -1
  52. package/package.json +1 -1
package/dist/esm/api.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * openapi.json
3
3
  * Pandook API Documentation
4
4
  *
5
- * The version of the OpenAPI document: 1.0.121
5
+ * The version of the OpenAPI document: 1.0.132
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,296 @@ 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 {Array<EventBookingResponsePaymentPerPlayersInner>}
4535
+ * @memberof EventBookingResponse
4536
+ */
4537
+ 'paymentPerPlayers'?: Array<EventBookingResponsePaymentPerPlayersInner>;
4538
+ /**
4539
+ *
4540
+ * @type {string}
4541
+ * @memberof EventBookingResponse
4542
+ */
4543
+ 'setupLimitDate'?: string | null;
4544
+ /**
4545
+ *
4546
+ * @type {string}
4547
+ * @memberof EventBookingResponse
4548
+ */
4549
+ 'cancellationLimitDate'?: string | null;
4550
+ /**
4551
+ *
4552
+ * @type {EventBookingResponseSetupStatus}
4553
+ * @memberof EventBookingResponse
4554
+ */
4555
+ 'setupStatus'?: EventBookingResponseSetupStatus | null;
4556
+ /**
4557
+ *
4558
+ * @type {string}
4559
+ * @memberof EventBookingResponse
4560
+ */
4561
+ 'createdAt': string;
4562
+ /**
4563
+ *
4564
+ * @type {string}
4565
+ * @memberof EventBookingResponse
4566
+ */
4567
+ 'updatedAt': string;
4568
+ }
4569
+ /**
4570
+ *
4571
+ * @export
4572
+ * @interface EventBookingResponsePaymentPerPlayersInner
4573
+ */
4574
+ export interface EventBookingResponsePaymentPerPlayersInner {
4575
+ /**
4576
+ *
4577
+ * @type {number}
4578
+ * @memberof EventBookingResponsePaymentPerPlayersInner
4579
+ */
4580
+ 'amount'?: number | null;
4581
+ /**
4582
+ *
4583
+ * @type {EventBookingResponsePlayersInnerInvoiceStatus}
4584
+ * @memberof EventBookingResponsePaymentPerPlayersInner
4585
+ */
4586
+ 'status'?: EventBookingResponsePlayersInnerInvoiceStatus | null;
4587
+ /**
4588
+ *
4589
+ * @type {string}
4590
+ * @memberof EventBookingResponsePaymentPerPlayersInner
4591
+ */
4592
+ 'photo'?: string | null;
4593
+ /**
4594
+ *
4595
+ * @type {string}
4596
+ * @memberof EventBookingResponsePaymentPerPlayersInner
4597
+ */
4598
+ 'lastName'?: string | null;
4599
+ /**
4600
+ *
4601
+ * @type {string}
4602
+ * @memberof EventBookingResponsePaymentPerPlayersInner
4603
+ */
4604
+ 'firstName'?: string | null;
4605
+ /**
4606
+ *
4607
+ * @type {string}
4608
+ * @memberof EventBookingResponsePaymentPerPlayersInner
4609
+ */
4610
+ 'id': string;
4611
+ }
4612
+ /**
4613
+ *
4614
+ * @export
4615
+ * @interface EventBookingResponsePlayersInner
4616
+ */
4617
+ export interface EventBookingResponsePlayersInner {
4618
+ /**
4619
+ *
4620
+ * @type {EventBookingResponsePlayersInnerInvoiceStatus}
4621
+ * @memberof EventBookingResponsePlayersInner
4622
+ */
4623
+ 'invoiceStatus'?: EventBookingResponsePlayersInnerInvoiceStatus | null;
4624
+ /**
4625
+ *
4626
+ * @type {string}
4627
+ * @memberof EventBookingResponsePlayersInner
4628
+ */
4629
+ 'profilePicture'?: string | null;
4630
+ /**
4631
+ *
4632
+ * @type {string}
4633
+ * @memberof EventBookingResponsePlayersInner
4634
+ */
4635
+ 'lastName'?: string | null;
4636
+ /**
4637
+ *
4638
+ * @type {string}
4639
+ * @memberof EventBookingResponsePlayersInner
4640
+ */
4641
+ 'firstName'?: string | null;
4642
+ /**
4643
+ *
4644
+ * @type {string}
4645
+ * @memberof EventBookingResponsePlayersInner
4646
+ */
4647
+ 'id': string;
4648
+ }
4649
+ /**
4650
+ *
4651
+ * @export
4652
+ * @interface EventBookingResponsePlayersInnerInvoiceStatus
4653
+ */
4654
+ export interface EventBookingResponsePlayersInnerInvoiceStatus {
4655
+ }
4656
+ /**
4657
+ *
4658
+ * @export
4659
+ * @interface EventBookingResponseSetupStatus
4660
+ */
4661
+ export interface EventBookingResponseSetupStatus {
4662
+ }
4663
+ /**
4664
+ *
4665
+ * @export
4666
+ * @enum {string}
4667
+ */
4668
+ export declare const EventBookingStatus: {
4669
+ readonly Pending: "pending";
4670
+ readonly Active: "active";
4671
+ readonly Paid: "paid";
4672
+ readonly Cancelled: "cancelled";
4673
+ readonly Expired: "expired";
4674
+ };
4675
+ export type EventBookingStatus = typeof EventBookingStatus[keyof typeof EventBookingStatus];
4394
4676
  /**
4395
4677
  *
4396
4678
  * @export
@@ -5754,6 +6036,24 @@ export declare const InvoiceStatus: {
5754
6036
  readonly Expired: "expired";
5755
6037
  };
5756
6038
  export type InvoiceStatus = typeof InvoiceStatus[keyof typeof InvoiceStatus];
6039
+ /**
6040
+ *
6041
+ * @export
6042
+ * @enum {string}
6043
+ */
6044
+ export declare const InvoiceStatusSETUPPENDING: {
6045
+ readonly SetupPending: "setup_pending";
6046
+ };
6047
+ export type InvoiceStatusSETUPPENDING = typeof InvoiceStatusSETUPPENDING[keyof typeof InvoiceStatusSETUPPENDING];
6048
+ /**
6049
+ *
6050
+ * @export
6051
+ * @enum {string}
6052
+ */
6053
+ export declare const InvoiceStatusSETUPSUCCESS: {
6054
+ readonly SetupSuccess: "setup_success";
6055
+ };
6056
+ export type InvoiceStatusSETUPSUCCESS = typeof InvoiceStatusSETUPSUCCESS[keyof typeof InvoiceStatusSETUPSUCCESS];
5757
6057
  /**
5758
6058
  *
5759
6059
  * @export
@@ -6495,6 +6795,16 @@ export interface PartialSchoolAccessSettings {
6495
6795
  */
6496
6796
  'enabled'?: boolean;
6497
6797
  }
6798
+ /**
6799
+ *
6800
+ * @export
6801
+ * @enum {string}
6802
+ */
6803
+ export declare const ParticipationType: {
6804
+ readonly Solo: "solo";
6805
+ readonly Team: "team";
6806
+ };
6807
+ export type ParticipationType = typeof ParticipationType[keyof typeof ParticipationType];
6498
6808
  /**
6499
6809
  *
6500
6810
  * @export
@@ -7240,6 +7550,18 @@ export interface PublishEventResponse {
7240
7550
  * @memberof PublishEventResponse
7241
7551
  */
7242
7552
  'refundedBookingIds'?: Array<string>;
7553
+ /**
7554
+ *
7555
+ * @type {EventBookingResponse}
7556
+ * @memberof PublishEventResponse
7557
+ */
7558
+ 'userBooking'?: EventBookingResponse;
7559
+ /**
7560
+ *
7561
+ * @type {boolean}
7562
+ * @memberof PublishEventResponse
7563
+ */
7564
+ 'needsToSetupPaymentMethod'?: boolean;
7243
7565
  }
7244
7566
  /**
7245
7567
  *
@@ -7450,6 +7772,68 @@ export interface QuickReservationSlotSummary {
7450
7772
  */
7451
7773
  'sportKey'?: string;
7452
7774
  }
7775
+ /**
7776
+ *
7777
+ * @export
7778
+ * @interface RecurringDefinitionResponse
7779
+ */
7780
+ export interface RecurringDefinitionResponse {
7781
+ /**
7782
+ *
7783
+ * @type {string}
7784
+ * @memberof RecurringDefinitionResponse
7785
+ */
7786
+ 'id': string;
7787
+ /**
7788
+ *
7789
+ * @type {string}
7790
+ * @memberof RecurringDefinitionResponse
7791
+ */
7792
+ 'clubId'?: string;
7793
+ /**
7794
+ *
7795
+ * @type {string}
7796
+ * @memberof RecurringDefinitionResponse
7797
+ */
7798
+ 'title': string;
7799
+ /**
7800
+ *
7801
+ * @type {string}
7802
+ * @memberof RecurringDefinitionResponse
7803
+ */
7804
+ 'baseStartDate': string;
7805
+ /**
7806
+ *
7807
+ * @type {string}
7808
+ * @memberof RecurringDefinitionResponse
7809
+ */
7810
+ 'baseEndDate': string;
7811
+ /**
7812
+ *
7813
+ * @type {string}
7814
+ * @memberof RecurringDefinitionResponse
7815
+ */
7816
+ 'recurringType': RecurringDefinitionResponseRecurringTypeEnum;
7817
+ /**
7818
+ *
7819
+ * @type {string}
7820
+ * @memberof RecurringDefinitionResponse
7821
+ */
7822
+ 'recurrenceEndDate'?: string;
7823
+ /**
7824
+ *
7825
+ * @type {boolean}
7826
+ * @memberof RecurringDefinitionResponse
7827
+ */
7828
+ 'isActive'?: boolean;
7829
+ }
7830
+ export declare const RecurringDefinitionResponseRecurringTypeEnum: {
7831
+ readonly Daily: "daily";
7832
+ readonly Weekly: "weekly";
7833
+ readonly Monthly: "monthly";
7834
+ readonly Unique: "unique";
7835
+ };
7836
+ export type RecurringDefinitionResponseRecurringTypeEnum = typeof RecurringDefinitionResponseRecurringTypeEnum[keyof typeof RecurringDefinitionResponseRecurringTypeEnum];
7453
7837
  /**
7454
7838
  *
7455
7839
  * @export
@@ -10649,30 +11033,187 @@ export type UpdateEventRequestVisibilityTypeEnum = typeof UpdateEventRequestVisi
10649
11033
  export interface UpdateLevelBySportsRequestBody {
10650
11034
  /**
10651
11035
  *
10652
- * @type {Array<LevelBySportEntry>}
10653
- * @memberof UpdateLevelBySportsRequestBody
11036
+ * @type {Array<LevelBySportEntry>}
11037
+ * @memberof UpdateLevelBySportsRequestBody
11038
+ */
11039
+ 'levelBySports': Array<LevelBySportEntry>;
11040
+ }
11041
+ /**
11042
+ *
11043
+ * @export
11044
+ * @interface UpdatePlanRequest
11045
+ */
11046
+ export interface UpdatePlanRequest {
11047
+ /**
11048
+ *
11049
+ * @type {number}
11050
+ * @memberof UpdatePlanRequest
11051
+ */
11052
+ 'newAmountInCents': number;
11053
+ /**
11054
+ *
11055
+ * @type {string}
11056
+ * @memberof UpdatePlanRequest
11057
+ */
11058
+ 'oldPriceId': string;
11059
+ }
11060
+ /**
11061
+ *
11062
+ * @export
11063
+ * @interface UpdateRecurringDefinition200Response
11064
+ */
11065
+ export interface UpdateRecurringDefinition200Response {
11066
+ /**
11067
+ *
11068
+ * @type {boolean}
11069
+ * @memberof UpdateRecurringDefinition200Response
11070
+ */
11071
+ 'ok': boolean;
11072
+ }
11073
+ /**
11074
+ *
11075
+ * @export
11076
+ * @interface UpdateRecurringDefinitionRequest
11077
+ */
11078
+ export interface UpdateRecurringDefinitionRequest {
11079
+ /**
11080
+ *
11081
+ * @type {string}
11082
+ * @memberof UpdateRecurringDefinitionRequest
11083
+ */
11084
+ 'title'?: string;
11085
+ /**
11086
+ *
11087
+ * @type {string}
11088
+ * @memberof UpdateRecurringDefinitionRequest
11089
+ */
11090
+ 'description'?: string;
11091
+ /**
11092
+ *
11093
+ * @type {string}
11094
+ * @memberof UpdateRecurringDefinitionRequest
11095
+ */
11096
+ 'photoUrl'?: string;
11097
+ /**
11098
+ *
11099
+ * @type {string}
11100
+ * @memberof UpdateRecurringDefinitionRequest
11101
+ */
11102
+ 'sportId'?: string;
11103
+ /**
11104
+ *
11105
+ * @type {Array<string>}
11106
+ * @memberof UpdateRecurringDefinitionRequest
11107
+ */
11108
+ 'courts'?: Array<string>;
11109
+ /**
11110
+ *
11111
+ * @type {Array<string | null>}
11112
+ * @memberof UpdateRecurringDefinitionRequest
11113
+ */
11114
+ 'levels'?: Array<string | null>;
11115
+ /**
11116
+ *
11117
+ * @type {Array<EventSponsor>}
11118
+ * @memberof UpdateRecurringDefinitionRequest
11119
+ */
11120
+ 'sponsors'?: Array<EventSponsor>;
11121
+ /**
11122
+ *
11123
+ * @type {string}
11124
+ * @memberof UpdateRecurringDefinitionRequest
11125
+ */
11126
+ 'visibilityType'?: UpdateRecurringDefinitionRequestVisibilityTypeEnum;
11127
+ /**
11128
+ *
11129
+ * @type {string}
11130
+ * @memberof UpdateRecurringDefinitionRequest
11131
+ */
11132
+ 'type'?: UpdateRecurringDefinitionRequestTypeEnum;
11133
+ /**
11134
+ *
11135
+ * @type {string}
11136
+ * @memberof UpdateRecurringDefinitionRequest
11137
+ */
11138
+ 'participationType'?: UpdateRecurringDefinitionRequestParticipationTypeEnum;
11139
+ /**
11140
+ *
11141
+ * @type {number}
11142
+ * @memberof UpdateRecurringDefinitionRequest
11143
+ */
11144
+ 'playerLimit'?: number;
11145
+ /**
11146
+ *
11147
+ * @type {number}
11148
+ * @memberof UpdateRecurringDefinitionRequest
11149
+ */
11150
+ 'teamLimit'?: number;
11151
+ /**
11152
+ *
11153
+ * @type {number}
11154
+ * @memberof UpdateRecurringDefinitionRequest
11155
+ */
11156
+ 'playersPerTeam'?: number;
11157
+ /**
11158
+ *
11159
+ * @type {number}
11160
+ * @memberof UpdateRecurringDefinitionRequest
11161
+ */
11162
+ 'price'?: number;
11163
+ /**
11164
+ *
11165
+ * @type {Array<SubscriberPrice>}
11166
+ * @memberof UpdateRecurringDefinitionRequest
10654
11167
  */
10655
- 'levelBySports': Array<LevelBySportEntry>;
10656
- }
10657
- /**
10658
- *
10659
- * @export
10660
- * @interface UpdatePlanRequest
10661
- */
10662
- export interface UpdatePlanRequest {
11168
+ 'subscriberPrices'?: Array<SubscriberPrice>;
10663
11169
  /**
10664
11170
  *
10665
- * @type {number}
10666
- * @memberof UpdatePlanRequest
11171
+ * @type {string}
11172
+ * @memberof UpdateRecurringDefinitionRequest
10667
11173
  */
10668
- 'newAmountInCents': number;
11174
+ 'baseStartDate'?: string;
10669
11175
  /**
10670
11176
  *
10671
11177
  * @type {string}
10672
- * @memberof UpdatePlanRequest
11178
+ * @memberof UpdateRecurringDefinitionRequest
10673
11179
  */
10674
- 'oldPriceId': string;
11180
+ 'baseEndDate'?: string;
11181
+ /**
11182
+ *
11183
+ * @type {string}
11184
+ * @memberof UpdateRecurringDefinitionRequest
11185
+ */
11186
+ 'recurringType'?: UpdateRecurringDefinitionRequestRecurringTypeEnum;
11187
+ /**
11188
+ *
11189
+ * @type {string}
11190
+ * @memberof UpdateRecurringDefinitionRequest
11191
+ */
11192
+ 'recurrenceEndDate'?: string;
10675
11193
  }
11194
+ export declare const UpdateRecurringDefinitionRequestVisibilityTypeEnum: {
11195
+ readonly Public: "public";
11196
+ readonly Private: "private";
11197
+ readonly Invitation: "invitation";
11198
+ };
11199
+ export type UpdateRecurringDefinitionRequestVisibilityTypeEnum = typeof UpdateRecurringDefinitionRequestVisibilityTypeEnum[keyof typeof UpdateRecurringDefinitionRequestVisibilityTypeEnum];
11200
+ export declare const UpdateRecurringDefinitionRequestTypeEnum: {
11201
+ readonly Event: "event";
11202
+ readonly Closure: "closure";
11203
+ };
11204
+ export type UpdateRecurringDefinitionRequestTypeEnum = typeof UpdateRecurringDefinitionRequestTypeEnum[keyof typeof UpdateRecurringDefinitionRequestTypeEnum];
11205
+ export declare const UpdateRecurringDefinitionRequestParticipationTypeEnum: {
11206
+ readonly Solo: "solo";
11207
+ readonly Team: "team";
11208
+ };
11209
+ export type UpdateRecurringDefinitionRequestParticipationTypeEnum = typeof UpdateRecurringDefinitionRequestParticipationTypeEnum[keyof typeof UpdateRecurringDefinitionRequestParticipationTypeEnum];
11210
+ export declare const UpdateRecurringDefinitionRequestRecurringTypeEnum: {
11211
+ readonly Daily: "daily";
11212
+ readonly Weekly: "weekly";
11213
+ readonly Monthly: "monthly";
11214
+ readonly Unique: "unique";
11215
+ };
11216
+ export type UpdateRecurringDefinitionRequestRecurringTypeEnum = typeof UpdateRecurringDefinitionRequestRecurringTypeEnum[keyof typeof UpdateRecurringDefinitionRequestRecurringTypeEnum];
10676
11217
  /**
10677
11218
  *
10678
11219
  * @export
@@ -11023,6 +11564,153 @@ export interface UserClubSubscription {
11023
11564
  * @memberof UserClubSubscription
11024
11565
  */
11025
11566
  'interval': PlanInterval | null;
11567
+ /**
11568
+ *
11569
+ * @type {string}
11570
+ * @memberof UserClubSubscription
11571
+ */
11572
+ 'productId': string | null;
11573
+ }
11574
+ /**
11575
+ *
11576
+ * @export
11577
+ * @interface UserEventParticipation
11578
+ */
11579
+ export interface UserEventParticipation {
11580
+ /**
11581
+ *
11582
+ * @type {UserEventSummary}
11583
+ * @memberof UserEventParticipation
11584
+ */
11585
+ 'event': UserEventSummary;
11586
+ /**
11587
+ *
11588
+ * @type {EventBookingDetailSummary}
11589
+ * @memberof UserEventParticipation
11590
+ */
11591
+ 'booking': EventBookingDetailSummary;
11592
+ }
11593
+ /**
11594
+ *
11595
+ * @export
11596
+ * @interface UserEventSummary
11597
+ */
11598
+ export interface UserEventSummary {
11599
+ /**
11600
+ *
11601
+ * @type {string}
11602
+ * @memberof UserEventSummary
11603
+ */
11604
+ 'id': string;
11605
+ /**
11606
+ *
11607
+ * @type {string}
11608
+ * @memberof UserEventSummary
11609
+ */
11610
+ 'clubId': string;
11611
+ /**
11612
+ *
11613
+ * @type {string}
11614
+ * @memberof UserEventSummary
11615
+ */
11616
+ 'title': string;
11617
+ /**
11618
+ *
11619
+ * @type {string}
11620
+ * @memberof UserEventSummary
11621
+ */
11622
+ 'description'?: string | null;
11623
+ /**
11624
+ *
11625
+ * @type {string}
11626
+ * @memberof UserEventSummary
11627
+ */
11628
+ 'photoUrl'?: string | null;
11629
+ /**
11630
+ *
11631
+ * @type {string}
11632
+ * @memberof UserEventSummary
11633
+ */
11634
+ 'startDate': string;
11635
+ /**
11636
+ *
11637
+ * @type {string}
11638
+ * @memberof UserEventSummary
11639
+ */
11640
+ 'endDate': string;
11641
+ /**
11642
+ *
11643
+ * @type {ParticipationType}
11644
+ * @memberof UserEventSummary
11645
+ */
11646
+ 'participationType': ParticipationType;
11647
+ /**
11648
+ *
11649
+ * @type {VisibilityType}
11650
+ * @memberof UserEventSummary
11651
+ */
11652
+ 'visibilityType': VisibilityType;
11653
+ /**
11654
+ *
11655
+ * @type {boolean}
11656
+ * @memberof UserEventSummary
11657
+ */
11658
+ 'isActive': boolean;
11659
+ /**
11660
+ *
11661
+ * @type {number}
11662
+ * @memberof UserEventSummary
11663
+ */
11664
+ 'price'?: number | null;
11665
+ /**
11666
+ *
11667
+ * @type {Array<string>}
11668
+ * @memberof UserEventSummary
11669
+ */
11670
+ 'sports'?: Array<string>;
11671
+ /**
11672
+ *
11673
+ * @type {Array<string>}
11674
+ * @memberof UserEventSummary
11675
+ */
11676
+ 'courts'?: Array<string>;
11677
+ }
11678
+ /**
11679
+ *
11680
+ * @export
11681
+ * @interface UserEventsResponse
11682
+ */
11683
+ export interface UserEventsResponse {
11684
+ /**
11685
+ *
11686
+ * @type {number}
11687
+ * @memberof UserEventsResponse
11688
+ */
11689
+ 'total': number;
11690
+ /**
11691
+ *
11692
+ * @type {number}
11693
+ * @memberof UserEventsResponse
11694
+ */
11695
+ 'limit': number;
11696
+ /**
11697
+ *
11698
+ * @type {number}
11699
+ * @memberof UserEventsResponse
11700
+ */
11701
+ 'skip': number;
11702
+ /**
11703
+ *
11704
+ * @type {boolean}
11705
+ * @memberof UserEventsResponse
11706
+ */
11707
+ 'hasMore': boolean;
11708
+ /**
11709
+ *
11710
+ * @type {Array<UserEventParticipation>}
11711
+ * @memberof UserEventsResponse
11712
+ */
11713
+ 'participations': Array<UserEventParticipation>;
11026
11714
  }
11027
11715
  /**
11028
11716
  *
@@ -11428,6 +12116,17 @@ export interface VerifyEmailRequest {
11428
12116
  */
11429
12117
  'token'?: string;
11430
12118
  }
12119
+ /**
12120
+ *
12121
+ * @export
12122
+ * @enum {string}
12123
+ */
12124
+ export declare const VisibilityType: {
12125
+ readonly Public: "public";
12126
+ readonly Private: "private";
12127
+ readonly Invitation: "invitation";
12128
+ };
12129
+ export type VisibilityType = typeof VisibilityType[keyof typeof VisibilityType];
11431
12130
  /**
11432
12131
  *
11433
12132
  * @export
@@ -15891,10 +16590,11 @@ export declare const EventsApiAxiosParamCreator: (configuration?: Configuration)
15891
16590
  /**
15892
16591
  * Get a specific event by ID
15893
16592
  * @param {string} eventId
16593
+ * @param {string} [userId]
15894
16594
  * @param {*} [options] Override http request option.
15895
16595
  * @throws {RequiredError}
15896
16596
  */
15897
- getEventById: (eventId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
16597
+ getEventById: (eventId: string, userId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
15898
16598
  /**
15899
16599
  * Get all published events for a club
15900
16600
  * @param {string} [clubId]
@@ -15945,10 +16645,11 @@ export declare const EventsApiFp: (configuration?: Configuration) => {
15945
16645
  /**
15946
16646
  * Get a specific event by ID
15947
16647
  * @param {string} eventId
16648
+ * @param {string} [userId]
15948
16649
  * @param {*} [options] Override http request option.
15949
16650
  * @throws {RequiredError}
15950
16651
  */
15951
- getEventById(eventId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PublishEventResponse>>;
16652
+ getEventById(eventId: string, userId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PublishEventResponse>>;
15952
16653
  /**
15953
16654
  * Get all published events for a club
15954
16655
  * @param {string} [clubId]
@@ -16073,6 +16774,12 @@ export interface EventsApiGetEventByIdRequest {
16073
16774
  * @memberof EventsApiGetEventById
16074
16775
  */
16075
16776
  readonly eventId: string;
16777
+ /**
16778
+ *
16779
+ * @type {string}
16780
+ * @memberof EventsApiGetEventById
16781
+ */
16782
+ readonly userId?: string;
16076
16783
  }
16077
16784
  /**
16078
16785
  * Request parameters for getPublishedEventsByClubId operation in EventsApi.
@@ -16236,6 +16943,13 @@ export declare const EventsManagerApiAxiosParamCreator: (configuration?: Configu
16236
16943
  * @throws {RequiredError}
16237
16944
  */
16238
16945
  deleteEvent: (eventId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
16946
+ /**
16947
+ * List recurring definitions about to expire within `days` (manager)
16948
+ * @param {number} [days]
16949
+ * @param {*} [options] Override http request option.
16950
+ * @throws {RequiredError}
16951
+ */
16952
+ getExpiringRecurringDefinitions: (days?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
16239
16953
  /**
16240
16954
  * Publish an event (manager)
16241
16955
  * @param {string} eventId
@@ -16266,6 +16980,14 @@ export declare const EventsManagerApiAxiosParamCreator: (configuration?: Configu
16266
16980
  * @throws {RequiredError}
16267
16981
  */
16268
16982
  updatePublishedEvent: (eventId: string, updateEventRequest: UpdateEventRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
16983
+ /**
16984
+ * Update a recurring event definition (manager) and propagate changes to generated Events
16985
+ * @param {string} definitionId
16986
+ * @param {UpdateRecurringDefinitionRequest} updateRecurringDefinitionRequest
16987
+ * @param {*} [options] Override http request option.
16988
+ * @throws {RequiredError}
16989
+ */
16990
+ updateRecurringDefinition: (definitionId: string, updateRecurringDefinitionRequest: UpdateRecurringDefinitionRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
16269
16991
  };
16270
16992
  /**
16271
16993
  * EventsManagerApi - functional programming interface
@@ -16293,6 +17015,13 @@ export declare const EventsManagerApiFp: (configuration?: Configuration) => {
16293
17015
  * @throws {RequiredError}
16294
17016
  */
16295
17017
  deleteEvent(eventId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteEventResponse>>;
17018
+ /**
17019
+ * List recurring definitions about to expire within `days` (manager)
17020
+ * @param {number} [days]
17021
+ * @param {*} [options] Override http request option.
17022
+ * @throws {RequiredError}
17023
+ */
17024
+ getExpiringRecurringDefinitions(days?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<RecurringDefinitionResponse>>>;
16296
17025
  /**
16297
17026
  * Publish an event (manager)
16298
17027
  * @param {string} eventId
@@ -16323,6 +17052,14 @@ export declare const EventsManagerApiFp: (configuration?: Configuration) => {
16323
17052
  * @throws {RequiredError}
16324
17053
  */
16325
17054
  updatePublishedEvent(eventId: string, updateEventRequest: UpdateEventRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PublishEventResponse>>;
17055
+ /**
17056
+ * Update a recurring event definition (manager) and propagate changes to generated Events
17057
+ * @param {string} definitionId
17058
+ * @param {UpdateRecurringDefinitionRequest} updateRecurringDefinitionRequest
17059
+ * @param {*} [options] Override http request option.
17060
+ * @throws {RequiredError}
17061
+ */
17062
+ updateRecurringDefinition(definitionId: string, updateRecurringDefinitionRequest: UpdateRecurringDefinitionRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateRecurringDefinition200Response>>;
16326
17063
  };
16327
17064
  /**
16328
17065
  * EventsManagerApi - factory interface
@@ -16350,6 +17087,13 @@ export declare const EventsManagerApiFactory: (configuration?: Configuration, ba
16350
17087
  * @throws {RequiredError}
16351
17088
  */
16352
17089
  deleteEvent(requestParameters: EventsManagerApiDeleteEventRequest, options?: RawAxiosRequestConfig): AxiosPromise<DeleteEventResponse>;
17090
+ /**
17091
+ * List recurring definitions about to expire within `days` (manager)
17092
+ * @param {EventsManagerApiGetExpiringRecurringDefinitionsRequest} requestParameters Request parameters.
17093
+ * @param {*} [options] Override http request option.
17094
+ * @throws {RequiredError}
17095
+ */
17096
+ getExpiringRecurringDefinitions(requestParameters?: EventsManagerApiGetExpiringRecurringDefinitionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<RecurringDefinitionResponse>>;
16353
17097
  /**
16354
17098
  * Publish an event (manager)
16355
17099
  * @param {EventsManagerApiPublishEventRequest} requestParameters Request parameters.
@@ -16378,6 +17122,13 @@ export declare const EventsManagerApiFactory: (configuration?: Configuration, ba
16378
17122
  * @throws {RequiredError}
16379
17123
  */
16380
17124
  updatePublishedEvent(requestParameters: EventsManagerApiUpdatePublishedEventRequest, options?: RawAxiosRequestConfig): AxiosPromise<PublishEventResponse>;
17125
+ /**
17126
+ * Update a recurring event definition (manager) and propagate changes to generated Events
17127
+ * @param {EventsManagerApiUpdateRecurringDefinitionRequest} requestParameters Request parameters.
17128
+ * @param {*} [options] Override http request option.
17129
+ * @throws {RequiredError}
17130
+ */
17131
+ updateRecurringDefinition(requestParameters: EventsManagerApiUpdateRecurringDefinitionRequest, options?: RawAxiosRequestConfig): AxiosPromise<UpdateRecurringDefinition200Response>;
16381
17132
  };
16382
17133
  /**
16383
17134
  * Request parameters for checkEventConflicts operation in EventsManagerApi.
@@ -16418,6 +17169,19 @@ export interface EventsManagerApiDeleteEventRequest {
16418
17169
  */
16419
17170
  readonly eventId: string;
16420
17171
  }
17172
+ /**
17173
+ * Request parameters for getExpiringRecurringDefinitions operation in EventsManagerApi.
17174
+ * @export
17175
+ * @interface EventsManagerApiGetExpiringRecurringDefinitionsRequest
17176
+ */
17177
+ export interface EventsManagerApiGetExpiringRecurringDefinitionsRequest {
17178
+ /**
17179
+ *
17180
+ * @type {number}
17181
+ * @memberof EventsManagerApiGetExpiringRecurringDefinitions
17182
+ */
17183
+ readonly days?: number;
17184
+ }
16421
17185
  /**
16422
17186
  * Request parameters for publishEvent operation in EventsManagerApi.
16423
17187
  * @export
@@ -16482,6 +17246,25 @@ export interface EventsManagerApiUpdatePublishedEventRequest {
16482
17246
  */
16483
17247
  readonly updateEventRequest: UpdateEventRequest;
16484
17248
  }
17249
+ /**
17250
+ * Request parameters for updateRecurringDefinition operation in EventsManagerApi.
17251
+ * @export
17252
+ * @interface EventsManagerApiUpdateRecurringDefinitionRequest
17253
+ */
17254
+ export interface EventsManagerApiUpdateRecurringDefinitionRequest {
17255
+ /**
17256
+ *
17257
+ * @type {string}
17258
+ * @memberof EventsManagerApiUpdateRecurringDefinition
17259
+ */
17260
+ readonly definitionId: string;
17261
+ /**
17262
+ *
17263
+ * @type {UpdateRecurringDefinitionRequest}
17264
+ * @memberof EventsManagerApiUpdateRecurringDefinition
17265
+ */
17266
+ readonly updateRecurringDefinitionRequest: UpdateRecurringDefinitionRequest;
17267
+ }
16485
17268
  /**
16486
17269
  * EventsManagerApi - object-oriented interface
16487
17270
  * @export
@@ -16513,6 +17296,14 @@ export declare class EventsManagerApi extends BaseAPI {
16513
17296
  * @memberof EventsManagerApi
16514
17297
  */
16515
17298
  deleteEvent(requestParameters: EventsManagerApiDeleteEventRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DeleteEventResponse, any, {}>>;
17299
+ /**
17300
+ * List recurring definitions about to expire within `days` (manager)
17301
+ * @param {EventsManagerApiGetExpiringRecurringDefinitionsRequest} requestParameters Request parameters.
17302
+ * @param {*} [options] Override http request option.
17303
+ * @throws {RequiredError}
17304
+ * @memberof EventsManagerApi
17305
+ */
17306
+ getExpiringRecurringDefinitions(requestParameters?: EventsManagerApiGetExpiringRecurringDefinitionsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<RecurringDefinitionResponse[], any, {}>>;
16516
17307
  /**
16517
17308
  * Publish an event (manager)
16518
17309
  * @param {EventsManagerApiPublishEventRequest} requestParameters Request parameters.
@@ -16545,6 +17336,14 @@ export declare class EventsManagerApi extends BaseAPI {
16545
17336
  * @memberof EventsManagerApi
16546
17337
  */
16547
17338
  updatePublishedEvent(requestParameters: EventsManagerApiUpdatePublishedEventRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PublishEventResponse, any, {}>>;
17339
+ /**
17340
+ * Update a recurring event definition (manager) and propagate changes to generated Events
17341
+ * @param {EventsManagerApiUpdateRecurringDefinitionRequest} requestParameters Request parameters.
17342
+ * @param {*} [options] Override http request option.
17343
+ * @throws {RequiredError}
17344
+ * @memberof EventsManagerApi
17345
+ */
17346
+ updateRecurringDefinition(requestParameters: EventsManagerApiUpdateRecurringDefinitionRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateRecurringDefinition200Response, any, {}>>;
16548
17347
  }
16549
17348
  /**
16550
17349
  * EventsStaffApi - axios parameter creator
@@ -17947,6 +18746,14 @@ export declare const UsersApiAxiosParamCreator: (configuration?: Configuration)
17947
18746
  * @throws {RequiredError}
17948
18747
  */
17949
18748
  getUserBookings: (limit?: number, skip?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
18749
+ /**
18750
+ *
18751
+ * @param {number} [limit]
18752
+ * @param {number} [skip]
18753
+ * @param {*} [options] Override http request option.
18754
+ * @throws {RequiredError}
18755
+ */
18756
+ getUserEvents: (limit?: number, skip?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
17950
18757
  /**
17951
18758
  *
17952
18759
  * @param {string} id
@@ -18222,6 +19029,14 @@ export declare const UsersApiFp: (configuration?: Configuration) => {
18222
19029
  * @throws {RequiredError}
18223
19030
  */
18224
19031
  getUserBookings(limit?: number, skip?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserBookingsResponse>>;
19032
+ /**
19033
+ *
19034
+ * @param {number} [limit]
19035
+ * @param {number} [skip]
19036
+ * @param {*} [options] Override http request option.
19037
+ * @throws {RequiredError}
19038
+ */
19039
+ getUserEvents(limit?: number, skip?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserEventsResponse>>;
18225
19040
  /**
18226
19041
  *
18227
19042
  * @param {string} id
@@ -18488,6 +19303,13 @@ export declare const UsersApiFactory: (configuration?: Configuration, basePath?:
18488
19303
  * @throws {RequiredError}
18489
19304
  */
18490
19305
  getUserBookings(requestParameters?: UsersApiGetUserBookingsRequest, options?: RawAxiosRequestConfig): AxiosPromise<UserBookingsResponse>;
19306
+ /**
19307
+ *
19308
+ * @param {UsersApiGetUserEventsRequest} requestParameters Request parameters.
19309
+ * @param {*} [options] Override http request option.
19310
+ * @throws {RequiredError}
19311
+ */
19312
+ getUserEvents(requestParameters?: UsersApiGetUserEventsRequest, options?: RawAxiosRequestConfig): AxiosPromise<UserEventsResponse>;
18491
19313
  /**
18492
19314
  *
18493
19315
  * @param {UsersApiGetUserProfileByIdRequest} requestParameters Request parameters.
@@ -18798,6 +19620,25 @@ export interface UsersApiGetUserBookingsRequest {
18798
19620
  */
18799
19621
  readonly skip?: number;
18800
19622
  }
19623
+ /**
19624
+ * Request parameters for getUserEvents operation in UsersApi.
19625
+ * @export
19626
+ * @interface UsersApiGetUserEventsRequest
19627
+ */
19628
+ export interface UsersApiGetUserEventsRequest {
19629
+ /**
19630
+ *
19631
+ * @type {number}
19632
+ * @memberof UsersApiGetUserEvents
19633
+ */
19634
+ readonly limit?: number;
19635
+ /**
19636
+ *
19637
+ * @type {number}
19638
+ * @memberof UsersApiGetUserEvents
19639
+ */
19640
+ readonly skip?: number;
19641
+ }
18801
19642
  /**
18802
19643
  * Request parameters for getUserProfileById operation in UsersApi.
18803
19644
  * @export
@@ -19224,6 +20065,14 @@ export declare class UsersApi extends BaseAPI {
19224
20065
  * @memberof UsersApi
19225
20066
  */
19226
20067
  getUserBookings(requestParameters?: UsersApiGetUserBookingsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<UserBookingsResponse, any, {}>>;
20068
+ /**
20069
+ *
20070
+ * @param {UsersApiGetUserEventsRequest} requestParameters Request parameters.
20071
+ * @param {*} [options] Override http request option.
20072
+ * @throws {RequiredError}
20073
+ * @memberof UsersApi
20074
+ */
20075
+ getUserEvents(requestParameters?: UsersApiGetUserEventsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<UserEventsResponse, any, {}>>;
19227
20076
  /**
19228
20077
  *
19229
20078
  * @param {UsersApiGetUserProfileByIdRequest} requestParameters Request parameters.