@tennac-booking/sdk 1.0.127 → 1.0.129
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.
- package/.openapi-generator/FILES +346 -334
- package/README.md +24 -11
- package/api.ts +1006 -422
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +853 -357
- package/dist/api.js +317 -164
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +853 -357
- package/dist/esm/api.js +313 -160
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/BookingsStaffApi.md +10 -10
- package/docs/{PlanPriceInput.md → CheckInPlayersRequest.md} +5 -7
- package/docs/{CheckInPlayerResponse.md → CheckInPlayersResponse.md} +5 -5
- package/docs/ClubPlayerSubscriptionSummary.md +3 -3
- package/docs/ClubsStaffApi.md +0 -54
- package/docs/CreatePlan201Response.md +0 -2
- package/docs/CreateSubscriptionPlanRequest.md +2 -2
- package/docs/CreateSubscriptionPlanRequestDiscount.md +0 -2
- package/docs/DeleteSubscriptionPlanResponse.md +0 -2
- package/docs/EventBookingDetailSummary.md +40 -0
- package/docs/EventBookingResponse.md +36 -0
- package/docs/EventBookingResponsePlayersInner.md +28 -0
- package/docs/{CheckInPlayerRequest.md → EventBookingResponsePlayersInnerInvoiceStatus.md} +3 -5
- package/docs/{GetClubType200Response.md → EventBookingResponseSetupStatus.md} +3 -5
- package/docs/EventBookingStatus.md +16 -0
- package/docs/EventsApi.md +4 -1
- package/docs/EventsManagerApi.md +110 -0
- package/docs/InvoiceStatusSETUPPENDING.md +8 -0
- package/docs/InvoiceStatusSETUPSUCCESS.md +8 -0
- package/docs/MonthlyTurnoverResponse.md +1 -0
- package/docs/OffPeakRule.md +0 -2
- package/docs/ParticipationType.md +10 -0
- package/docs/PublicSubscriptionPlanResponse.md +1 -5
- package/docs/PublishEventResponse.md +4 -0
- package/docs/RecurringDefinitionResponse.md +34 -0
- package/docs/SendSubscriptionInvitationRequest.md +0 -2
- package/docs/SubscriptionPlanResponse.md +1 -7
- package/docs/SubscriptionsManagerApi.md +1 -55
- package/docs/UpdateRecurringDefinition200Response.md +20 -0
- package/docs/UpdateRecurringDefinitionRequest.md +56 -0
- package/docs/UserEventParticipation.md +22 -0
- package/docs/UserEventSummary.md +44 -0
- package/docs/UserEventsResponse.md +28 -0
- package/docs/UsersApi.md +54 -0
- package/docs/VisibilityType.md +12 -0
- package/index.ts +1 -1
- package/package.json +1 -1
- package/docs/PlanPrice.md +0 -26
- 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.
|
|
7
|
+
* The version of the OpenAPI document: 1.0.129
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -1458,34 +1458,34 @@ export interface CheckInEventParticipantsRequest {
|
|
|
1458
1458
|
/**
|
|
1459
1459
|
*
|
|
1460
1460
|
* @export
|
|
1461
|
-
* @interface
|
|
1461
|
+
* @interface CheckInPlayersRequest
|
|
1462
1462
|
*/
|
|
1463
|
-
export interface
|
|
1463
|
+
export interface CheckInPlayersRequest {
|
|
1464
1464
|
/**
|
|
1465
|
-
*
|
|
1466
|
-
* @type {string}
|
|
1467
|
-
* @memberof
|
|
1465
|
+
* Liste des IDs des joueurs qui ont payé/sont arrivés
|
|
1466
|
+
* @type {Array<string>}
|
|
1467
|
+
* @memberof CheckInPlayersRequest
|
|
1468
1468
|
*/
|
|
1469
|
-
'
|
|
1469
|
+
'playerIds': Array<string>;
|
|
1470
1470
|
}
|
|
1471
1471
|
/**
|
|
1472
1472
|
*
|
|
1473
1473
|
* @export
|
|
1474
|
-
* @interface
|
|
1474
|
+
* @interface CheckInPlayersResponse
|
|
1475
1475
|
*/
|
|
1476
|
-
export interface
|
|
1476
|
+
export interface CheckInPlayersResponse {
|
|
1477
1477
|
/**
|
|
1478
1478
|
* Message de confirmation
|
|
1479
1479
|
* @type {string}
|
|
1480
|
-
* @memberof
|
|
1480
|
+
* @memberof CheckInPlayersResponse
|
|
1481
1481
|
*/
|
|
1482
1482
|
'message': string;
|
|
1483
1483
|
/**
|
|
1484
|
-
*
|
|
1485
|
-
* @type {CheckedInPlayer}
|
|
1486
|
-
* @memberof
|
|
1484
|
+
* Joueurs ayant effectué le check-in
|
|
1485
|
+
* @type {Array<CheckedInPlayer>}
|
|
1486
|
+
* @memberof CheckInPlayersResponse
|
|
1487
1487
|
*/
|
|
1488
|
-
'
|
|
1488
|
+
'invoices': Array<CheckedInPlayer>;
|
|
1489
1489
|
}
|
|
1490
1490
|
/**
|
|
1491
1491
|
*
|
|
@@ -2747,11 +2747,11 @@ export interface ClubPlayerSubscriptionSummary {
|
|
|
2747
2747
|
*/
|
|
2748
2748
|
'name': string | null;
|
|
2749
2749
|
/**
|
|
2750
|
-
*
|
|
2751
|
-
* @type {
|
|
2750
|
+
* Montant en centimes
|
|
2751
|
+
* @type {number}
|
|
2752
2752
|
* @memberof ClubPlayerSubscriptionSummary
|
|
2753
2753
|
*/
|
|
2754
|
-
'
|
|
2754
|
+
'amountInCents': number | null;
|
|
2755
2755
|
/**
|
|
2756
2756
|
* Devise
|
|
2757
2757
|
* @type {string}
|
|
@@ -2759,7 +2759,7 @@ export interface ClubPlayerSubscriptionSummary {
|
|
|
2759
2759
|
*/
|
|
2760
2760
|
'currency': string | null;
|
|
2761
2761
|
/**
|
|
2762
|
-
* Intervalle
|
|
2762
|
+
* Intervalle de facturation
|
|
2763
2763
|
* @type {string}
|
|
2764
2764
|
* @memberof ClubPlayerSubscriptionSummary
|
|
2765
2765
|
*/
|
|
@@ -3985,12 +3985,6 @@ export interface CreateOnsiteInvoiceResponseInvoice {
|
|
|
3985
3985
|
* @interface CreatePlan201Response
|
|
3986
3986
|
*/
|
|
3987
3987
|
export interface CreatePlan201Response {
|
|
3988
|
-
/**
|
|
3989
|
-
*
|
|
3990
|
-
* @type {Array<string>}
|
|
3991
|
-
* @memberof CreatePlan201Response
|
|
3992
|
-
*/
|
|
3993
|
-
'priceIds': Array<string>;
|
|
3994
3988
|
/**
|
|
3995
3989
|
*
|
|
3996
3990
|
* @type {string}
|
|
@@ -4105,10 +4099,10 @@ export interface CreateSubscriptionPlanRequest {
|
|
|
4105
4099
|
'description'?: string;
|
|
4106
4100
|
/**
|
|
4107
4101
|
*
|
|
4108
|
-
* @type {
|
|
4102
|
+
* @type {number}
|
|
4109
4103
|
* @memberof CreateSubscriptionPlanRequest
|
|
4110
4104
|
*/
|
|
4111
|
-
'
|
|
4105
|
+
'amountInCents': number;
|
|
4112
4106
|
/**
|
|
4113
4107
|
*
|
|
4114
4108
|
* @type {string}
|
|
@@ -4146,15 +4140,8 @@ export interface CreateSubscriptionPlanRequestDiscount {
|
|
|
4146
4140
|
*
|
|
4147
4141
|
* @type {Array<OffPeakRule>}
|
|
4148
4142
|
* @memberof CreateSubscriptionPlanRequestDiscount
|
|
4149
|
-
* @deprecated
|
|
4150
4143
|
*/
|
|
4151
4144
|
'offPeakRules'?: Array<OffPeakRule>;
|
|
4152
|
-
/**
|
|
4153
|
-
* Liste optionnelle des noms de périodes tarifaires sur lesquelles appliquer la remise. Laisser vide pour appliquer la remise à toutes les heures d\'ouverture du club.
|
|
4154
|
-
* @type {Array<string>}
|
|
4155
|
-
* @memberof CreateSubscriptionPlanRequestDiscount
|
|
4156
|
-
*/
|
|
4157
|
-
'offPeakRuleNames'?: Array<string>;
|
|
4158
4145
|
/**
|
|
4159
4146
|
*
|
|
4160
4147
|
* @type {string}
|
|
@@ -4308,12 +4295,6 @@ export interface DeleteSubscriptionPlanResponse {
|
|
|
4308
4295
|
* @memberof DeleteSubscriptionPlanResponse
|
|
4309
4296
|
*/
|
|
4310
4297
|
'message': string;
|
|
4311
|
-
/**
|
|
4312
|
-
*
|
|
4313
|
-
* @type {boolean}
|
|
4314
|
-
* @memberof DeleteSubscriptionPlanResponse
|
|
4315
|
-
*/
|
|
4316
|
-
'archivedInstead'?: boolean;
|
|
4317
4298
|
}
|
|
4318
4299
|
/**
|
|
4319
4300
|
*
|
|
@@ -4430,6 +4411,212 @@ export interface EstimateEventPriceRequestSharesInner {
|
|
|
4430
4411
|
*/
|
|
4431
4412
|
'playerId': string;
|
|
4432
4413
|
}
|
|
4414
|
+
/**
|
|
4415
|
+
*
|
|
4416
|
+
* @export
|
|
4417
|
+
* @interface EventBookingDetailSummary
|
|
4418
|
+
*/
|
|
4419
|
+
export interface EventBookingDetailSummary {
|
|
4420
|
+
/**
|
|
4421
|
+
*
|
|
4422
|
+
* @type {string}
|
|
4423
|
+
* @memberof EventBookingDetailSummary
|
|
4424
|
+
*/
|
|
4425
|
+
'id': string;
|
|
4426
|
+
/**
|
|
4427
|
+
*
|
|
4428
|
+
* @type {EventBookingStatus}
|
|
4429
|
+
* @memberof EventBookingDetailSummary
|
|
4430
|
+
*/
|
|
4431
|
+
'status': EventBookingStatus;
|
|
4432
|
+
/**
|
|
4433
|
+
*
|
|
4434
|
+
* @type {string}
|
|
4435
|
+
* @memberof EventBookingDetailSummary
|
|
4436
|
+
*/
|
|
4437
|
+
'teamName'?: string | null;
|
|
4438
|
+
/**
|
|
4439
|
+
*
|
|
4440
|
+
* @type {Array<string>}
|
|
4441
|
+
* @memberof EventBookingDetailSummary
|
|
4442
|
+
*/
|
|
4443
|
+
'players': Array<string>;
|
|
4444
|
+
/**
|
|
4445
|
+
*
|
|
4446
|
+
* @type {Array<string>}
|
|
4447
|
+
* @memberof EventBookingDetailSummary
|
|
4448
|
+
*/
|
|
4449
|
+
'invoices': Array<string>;
|
|
4450
|
+
/**
|
|
4451
|
+
*
|
|
4452
|
+
* @type {string}
|
|
4453
|
+
* @memberof EventBookingDetailSummary
|
|
4454
|
+
*/
|
|
4455
|
+
'creatorPaymentMethodId'?: string | null;
|
|
4456
|
+
/**
|
|
4457
|
+
*
|
|
4458
|
+
* @type {boolean}
|
|
4459
|
+
* @memberof EventBookingDetailSummary
|
|
4460
|
+
*/
|
|
4461
|
+
'paymentMethodSetupCompleted': boolean;
|
|
4462
|
+
/**
|
|
4463
|
+
*
|
|
4464
|
+
* @type {string}
|
|
4465
|
+
* @memberof EventBookingDetailSummary
|
|
4466
|
+
*/
|
|
4467
|
+
'limitSetupDate'?: string | null;
|
|
4468
|
+
/**
|
|
4469
|
+
*
|
|
4470
|
+
* @type {string}
|
|
4471
|
+
* @memberof EventBookingDetailSummary
|
|
4472
|
+
*/
|
|
4473
|
+
'limitCancellationDate'?: string | null;
|
|
4474
|
+
/**
|
|
4475
|
+
*
|
|
4476
|
+
* @type {string}
|
|
4477
|
+
* @memberof EventBookingDetailSummary
|
|
4478
|
+
*/
|
|
4479
|
+
'createdAt': string;
|
|
4480
|
+
/**
|
|
4481
|
+
*
|
|
4482
|
+
* @type {string}
|
|
4483
|
+
* @memberof EventBookingDetailSummary
|
|
4484
|
+
*/
|
|
4485
|
+
'updatedAt': string;
|
|
4486
|
+
}
|
|
4487
|
+
|
|
4488
|
+
|
|
4489
|
+
/**
|
|
4490
|
+
*
|
|
4491
|
+
* @export
|
|
4492
|
+
* @interface EventBookingResponse
|
|
4493
|
+
*/
|
|
4494
|
+
export interface EventBookingResponse {
|
|
4495
|
+
/**
|
|
4496
|
+
*
|
|
4497
|
+
* @type {string}
|
|
4498
|
+
* @memberof EventBookingResponse
|
|
4499
|
+
*/
|
|
4500
|
+
'id': string;
|
|
4501
|
+
/**
|
|
4502
|
+
*
|
|
4503
|
+
* @type {EventBookingStatus}
|
|
4504
|
+
* @memberof EventBookingResponse
|
|
4505
|
+
*/
|
|
4506
|
+
'status': EventBookingStatus;
|
|
4507
|
+
/**
|
|
4508
|
+
*
|
|
4509
|
+
* @type {string}
|
|
4510
|
+
* @memberof EventBookingResponse
|
|
4511
|
+
*/
|
|
4512
|
+
'teamName'?: string | null;
|
|
4513
|
+
/**
|
|
4514
|
+
*
|
|
4515
|
+
* @type {Array<EventBookingResponsePlayersInner>}
|
|
4516
|
+
* @memberof EventBookingResponse
|
|
4517
|
+
*/
|
|
4518
|
+
'players': Array<EventBookingResponsePlayersInner>;
|
|
4519
|
+
/**
|
|
4520
|
+
*
|
|
4521
|
+
* @type {string}
|
|
4522
|
+
* @memberof EventBookingResponse
|
|
4523
|
+
*/
|
|
4524
|
+
'setupLimitDate'?: string | null;
|
|
4525
|
+
/**
|
|
4526
|
+
*
|
|
4527
|
+
* @type {string}
|
|
4528
|
+
* @memberof EventBookingResponse
|
|
4529
|
+
*/
|
|
4530
|
+
'cancellationLimitDate'?: string | null;
|
|
4531
|
+
/**
|
|
4532
|
+
*
|
|
4533
|
+
* @type {EventBookingResponseSetupStatus}
|
|
4534
|
+
* @memberof EventBookingResponse
|
|
4535
|
+
*/
|
|
4536
|
+
'setupStatus'?: EventBookingResponseSetupStatus | null;
|
|
4537
|
+
/**
|
|
4538
|
+
*
|
|
4539
|
+
* @type {string}
|
|
4540
|
+
* @memberof EventBookingResponse
|
|
4541
|
+
*/
|
|
4542
|
+
'createdAt': string;
|
|
4543
|
+
/**
|
|
4544
|
+
*
|
|
4545
|
+
* @type {string}
|
|
4546
|
+
* @memberof EventBookingResponse
|
|
4547
|
+
*/
|
|
4548
|
+
'updatedAt': string;
|
|
4549
|
+
}
|
|
4550
|
+
|
|
4551
|
+
|
|
4552
|
+
/**
|
|
4553
|
+
*
|
|
4554
|
+
* @export
|
|
4555
|
+
* @interface EventBookingResponsePlayersInner
|
|
4556
|
+
*/
|
|
4557
|
+
export interface EventBookingResponsePlayersInner {
|
|
4558
|
+
/**
|
|
4559
|
+
*
|
|
4560
|
+
* @type {EventBookingResponsePlayersInnerInvoiceStatus}
|
|
4561
|
+
* @memberof EventBookingResponsePlayersInner
|
|
4562
|
+
*/
|
|
4563
|
+
'invoiceStatus'?: EventBookingResponsePlayersInnerInvoiceStatus | null;
|
|
4564
|
+
/**
|
|
4565
|
+
*
|
|
4566
|
+
* @type {string}
|
|
4567
|
+
* @memberof EventBookingResponsePlayersInner
|
|
4568
|
+
*/
|
|
4569
|
+
'profilePicture'?: string | null;
|
|
4570
|
+
/**
|
|
4571
|
+
*
|
|
4572
|
+
* @type {string}
|
|
4573
|
+
* @memberof EventBookingResponsePlayersInner
|
|
4574
|
+
*/
|
|
4575
|
+
'lastName'?: string | null;
|
|
4576
|
+
/**
|
|
4577
|
+
*
|
|
4578
|
+
* @type {string}
|
|
4579
|
+
* @memberof EventBookingResponsePlayersInner
|
|
4580
|
+
*/
|
|
4581
|
+
'firstName'?: string | null;
|
|
4582
|
+
/**
|
|
4583
|
+
*
|
|
4584
|
+
* @type {string}
|
|
4585
|
+
* @memberof EventBookingResponsePlayersInner
|
|
4586
|
+
*/
|
|
4587
|
+
'id': string;
|
|
4588
|
+
}
|
|
4589
|
+
/**
|
|
4590
|
+
*
|
|
4591
|
+
* @export
|
|
4592
|
+
* @interface EventBookingResponsePlayersInnerInvoiceStatus
|
|
4593
|
+
*/
|
|
4594
|
+
export interface EventBookingResponsePlayersInnerInvoiceStatus {
|
|
4595
|
+
}
|
|
4596
|
+
/**
|
|
4597
|
+
*
|
|
4598
|
+
* @export
|
|
4599
|
+
* @interface EventBookingResponseSetupStatus
|
|
4600
|
+
*/
|
|
4601
|
+
export interface EventBookingResponseSetupStatus {
|
|
4602
|
+
}
|
|
4603
|
+
/**
|
|
4604
|
+
*
|
|
4605
|
+
* @export
|
|
4606
|
+
* @enum {string}
|
|
4607
|
+
*/
|
|
4608
|
+
|
|
4609
|
+
export const EventBookingStatus = {
|
|
4610
|
+
Pending: 'pending',
|
|
4611
|
+
Active: 'active',
|
|
4612
|
+
Paid: 'paid',
|
|
4613
|
+
Cancelled: 'cancelled',
|
|
4614
|
+
Expired: 'expired'
|
|
4615
|
+
} as const;
|
|
4616
|
+
|
|
4617
|
+
export type EventBookingStatus = typeof EventBookingStatus[keyof typeof EventBookingStatus];
|
|
4618
|
+
|
|
4619
|
+
|
|
4433
4620
|
/**
|
|
4434
4621
|
*
|
|
4435
4622
|
* @export
|
|
@@ -4965,19 +5152,6 @@ export interface GetClubRoles200Response {
|
|
|
4965
5152
|
*/
|
|
4966
5153
|
'roles': Array<any>;
|
|
4967
5154
|
}
|
|
4968
|
-
/**
|
|
4969
|
-
*
|
|
4970
|
-
* @export
|
|
4971
|
-
* @interface GetClubType200Response
|
|
4972
|
-
*/
|
|
4973
|
-
export interface GetClubType200Response {
|
|
4974
|
-
/**
|
|
4975
|
-
*
|
|
4976
|
-
* @type {string}
|
|
4977
|
-
* @memberof GetClubType200Response
|
|
4978
|
-
*/
|
|
4979
|
-
'clubType': string;
|
|
4980
|
-
}
|
|
4981
5155
|
/**
|
|
4982
5156
|
*
|
|
4983
5157
|
* @export
|
|
@@ -5783,6 +5957,32 @@ export const InvoiceStatus = {
|
|
|
5783
5957
|
export type InvoiceStatus = typeof InvoiceStatus[keyof typeof InvoiceStatus];
|
|
5784
5958
|
|
|
5785
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
|
+
|
|
5786
5986
|
/**
|
|
5787
5987
|
*
|
|
5788
5988
|
* @export
|
|
@@ -6120,7 +6320,7 @@ export interface MonthlyBreakdown {
|
|
|
6120
6320
|
'invoiceCount': number;
|
|
6121
6321
|
}
|
|
6122
6322
|
/**
|
|
6123
|
-
*
|
|
6323
|
+
* Types TSOA pour les analytics du club
|
|
6124
6324
|
* @export
|
|
6125
6325
|
* @interface MonthlyTurnoverResponse
|
|
6126
6326
|
*/
|
|
@@ -6236,12 +6436,6 @@ export interface NoShowFeeResponse {
|
|
|
6236
6436
|
* @interface OffPeakRule
|
|
6237
6437
|
*/
|
|
6238
6438
|
export interface OffPeakRule {
|
|
6239
|
-
/**
|
|
6240
|
-
*
|
|
6241
|
-
* @type {string}
|
|
6242
|
-
* @memberof OffPeakRule
|
|
6243
|
-
*/
|
|
6244
|
-
'pricingPeriodName'?: string;
|
|
6245
6439
|
/**
|
|
6246
6440
|
*
|
|
6247
6441
|
* @type {number}
|
|
@@ -6420,6 +6614,20 @@ export interface PartialClubWeeklySchedule {
|
|
|
6420
6614
|
*/
|
|
6421
6615
|
'sunday'?: ClubDaySchedule;
|
|
6422
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
|
+
|
|
6423
6631
|
/**
|
|
6424
6632
|
*
|
|
6425
6633
|
* @export
|
|
@@ -6564,60 +6772,6 @@ export const PlanInterval = {
|
|
|
6564
6772
|
export type PlanInterval = typeof PlanInterval[keyof typeof PlanInterval];
|
|
6565
6773
|
|
|
6566
6774
|
|
|
6567
|
-
/**
|
|
6568
|
-
*
|
|
6569
|
-
* @export
|
|
6570
|
-
* @interface PlanPrice
|
|
6571
|
-
*/
|
|
6572
|
-
export interface PlanPrice {
|
|
6573
|
-
/**
|
|
6574
|
-
*
|
|
6575
|
-
* @type {number}
|
|
6576
|
-
* @memberof PlanPrice
|
|
6577
|
-
*/
|
|
6578
|
-
'amountInCents': number;
|
|
6579
|
-
/**
|
|
6580
|
-
*
|
|
6581
|
-
* @type {PlanInterval}
|
|
6582
|
-
* @memberof PlanPrice
|
|
6583
|
-
*/
|
|
6584
|
-
'interval': PlanInterval;
|
|
6585
|
-
/**
|
|
6586
|
-
*
|
|
6587
|
-
* @type {boolean}
|
|
6588
|
-
* @memberof PlanPrice
|
|
6589
|
-
*/
|
|
6590
|
-
'active'?: boolean;
|
|
6591
|
-
/**
|
|
6592
|
-
*
|
|
6593
|
-
* @type {string}
|
|
6594
|
-
* @memberof PlanPrice
|
|
6595
|
-
*/
|
|
6596
|
-
'stripePriceId'?: string;
|
|
6597
|
-
}
|
|
6598
|
-
|
|
6599
|
-
|
|
6600
|
-
/**
|
|
6601
|
-
*
|
|
6602
|
-
* @export
|
|
6603
|
-
* @interface PlanPriceInput
|
|
6604
|
-
*/
|
|
6605
|
-
export interface PlanPriceInput {
|
|
6606
|
-
/**
|
|
6607
|
-
*
|
|
6608
|
-
* @type {number}
|
|
6609
|
-
* @memberof PlanPriceInput
|
|
6610
|
-
*/
|
|
6611
|
-
'amountInCents': number;
|
|
6612
|
-
/**
|
|
6613
|
-
*
|
|
6614
|
-
* @type {PlanInterval}
|
|
6615
|
-
* @memberof PlanPriceInput
|
|
6616
|
-
*/
|
|
6617
|
-
'interval': PlanInterval;
|
|
6618
|
-
}
|
|
6619
|
-
|
|
6620
|
-
|
|
6621
6775
|
/**
|
|
6622
6776
|
*
|
|
6623
6777
|
* @export
|
|
@@ -7000,19 +7154,13 @@ export interface PublicSubscriptionPlanResponse {
|
|
|
7000
7154
|
* @type {number}
|
|
7001
7155
|
* @memberof PublicSubscriptionPlanResponse
|
|
7002
7156
|
*/
|
|
7003
|
-
'amountInCents'
|
|
7157
|
+
'amountInCents': number;
|
|
7004
7158
|
/**
|
|
7005
7159
|
*
|
|
7006
7160
|
* @type {string}
|
|
7007
7161
|
* @memberof PublicSubscriptionPlanResponse
|
|
7008
7162
|
*/
|
|
7009
7163
|
'currency': string;
|
|
7010
|
-
/**
|
|
7011
|
-
*
|
|
7012
|
-
* @type {Array<PlanPrice>}
|
|
7013
|
-
* @memberof PublicSubscriptionPlanResponse
|
|
7014
|
-
*/
|
|
7015
|
-
'prices': Array<PlanPrice>;
|
|
7016
7164
|
/**
|
|
7017
7165
|
*
|
|
7018
7166
|
* @type {PlanInterval}
|
|
@@ -7025,12 +7173,6 @@ export interface PublicSubscriptionPlanResponse {
|
|
|
7025
7173
|
* @memberof PublicSubscriptionPlanResponse
|
|
7026
7174
|
*/
|
|
7027
7175
|
'description'?: string;
|
|
7028
|
-
/**
|
|
7029
|
-
*
|
|
7030
|
-
* @type {SubscriptionPlanDiscountResponse}
|
|
7031
|
-
* @memberof PublicSubscriptionPlanResponse
|
|
7032
|
-
*/
|
|
7033
|
-
'discount'?: SubscriptionPlanDiscountResponse;
|
|
7034
7176
|
}
|
|
7035
7177
|
|
|
7036
7178
|
|
|
@@ -7137,6 +7279,18 @@ export interface PublishEventResponse {
|
|
|
7137
7279
|
* @memberof PublishEventResponse
|
|
7138
7280
|
*/
|
|
7139
7281
|
'refundedBookingIds'?: Array<string>;
|
|
7282
|
+
/**
|
|
7283
|
+
*
|
|
7284
|
+
* @type {EventBookingResponse}
|
|
7285
|
+
* @memberof PublishEventResponse
|
|
7286
|
+
*/
|
|
7287
|
+
'userBooking'?: EventBookingResponse;
|
|
7288
|
+
/**
|
|
7289
|
+
*
|
|
7290
|
+
* @type {boolean}
|
|
7291
|
+
* @memberof PublishEventResponse
|
|
7292
|
+
*/
|
|
7293
|
+
'needsToSetupPaymentMethod'?: boolean;
|
|
7140
7294
|
}
|
|
7141
7295
|
/**
|
|
7142
7296
|
*
|
|
@@ -7347,6 +7501,71 @@ export interface QuickReservationSlotSummary {
|
|
|
7347
7501
|
*/
|
|
7348
7502
|
'sportKey'?: string;
|
|
7349
7503
|
}
|
|
7504
|
+
/**
|
|
7505
|
+
*
|
|
7506
|
+
* @export
|
|
7507
|
+
* @interface RecurringDefinitionResponse
|
|
7508
|
+
*/
|
|
7509
|
+
export interface RecurringDefinitionResponse {
|
|
7510
|
+
/**
|
|
7511
|
+
*
|
|
7512
|
+
* @type {string}
|
|
7513
|
+
* @memberof RecurringDefinitionResponse
|
|
7514
|
+
*/
|
|
7515
|
+
'id': string;
|
|
7516
|
+
/**
|
|
7517
|
+
*
|
|
7518
|
+
* @type {string}
|
|
7519
|
+
* @memberof RecurringDefinitionResponse
|
|
7520
|
+
*/
|
|
7521
|
+
'clubId'?: string;
|
|
7522
|
+
/**
|
|
7523
|
+
*
|
|
7524
|
+
* @type {string}
|
|
7525
|
+
* @memberof RecurringDefinitionResponse
|
|
7526
|
+
*/
|
|
7527
|
+
'title': string;
|
|
7528
|
+
/**
|
|
7529
|
+
*
|
|
7530
|
+
* @type {string}
|
|
7531
|
+
* @memberof RecurringDefinitionResponse
|
|
7532
|
+
*/
|
|
7533
|
+
'baseStartDate': string;
|
|
7534
|
+
/**
|
|
7535
|
+
*
|
|
7536
|
+
* @type {string}
|
|
7537
|
+
* @memberof RecurringDefinitionResponse
|
|
7538
|
+
*/
|
|
7539
|
+
'baseEndDate': string;
|
|
7540
|
+
/**
|
|
7541
|
+
*
|
|
7542
|
+
* @type {string}
|
|
7543
|
+
* @memberof RecurringDefinitionResponse
|
|
7544
|
+
*/
|
|
7545
|
+
'recurringType': RecurringDefinitionResponseRecurringTypeEnum;
|
|
7546
|
+
/**
|
|
7547
|
+
*
|
|
7548
|
+
* @type {string}
|
|
7549
|
+
* @memberof RecurringDefinitionResponse
|
|
7550
|
+
*/
|
|
7551
|
+
'recurrenceEndDate'?: string;
|
|
7552
|
+
/**
|
|
7553
|
+
*
|
|
7554
|
+
* @type {boolean}
|
|
7555
|
+
* @memberof RecurringDefinitionResponse
|
|
7556
|
+
*/
|
|
7557
|
+
'isActive'?: boolean;
|
|
7558
|
+
}
|
|
7559
|
+
|
|
7560
|
+
export const RecurringDefinitionResponseRecurringTypeEnum = {
|
|
7561
|
+
Daily: 'daily',
|
|
7562
|
+
Weekly: 'weekly',
|
|
7563
|
+
Monthly: 'monthly',
|
|
7564
|
+
Unique: 'unique'
|
|
7565
|
+
} as const;
|
|
7566
|
+
|
|
7567
|
+
export type RecurringDefinitionResponseRecurringTypeEnum = typeof RecurringDefinitionResponseRecurringTypeEnum[keyof typeof RecurringDefinitionResponseRecurringTypeEnum];
|
|
7568
|
+
|
|
7350
7569
|
/**
|
|
7351
7570
|
*
|
|
7352
7571
|
* @export
|
|
@@ -7662,12 +7881,6 @@ export interface SendSubscriptionInvitationRequest {
|
|
|
7662
7881
|
* @memberof SendSubscriptionInvitationRequest
|
|
7663
7882
|
*/
|
|
7664
7883
|
'productId': string;
|
|
7665
|
-
/**
|
|
7666
|
-
* Price spécifique proposé dans l\'invitation (facultatif).
|
|
7667
|
-
* @type {string}
|
|
7668
|
-
* @memberof SendSubscriptionInvitationRequest
|
|
7669
|
-
*/
|
|
7670
|
-
'priceId'?: string;
|
|
7671
7884
|
}
|
|
7672
7885
|
/**
|
|
7673
7886
|
*
|
|
@@ -9833,63 +10046,6 @@ export interface SubscriptionMutationResponse {
|
|
|
9833
10046
|
*/
|
|
9834
10047
|
'subscription': { [key: string]: any; };
|
|
9835
10048
|
}
|
|
9836
|
-
/**
|
|
9837
|
-
*
|
|
9838
|
-
* @export
|
|
9839
|
-
* @interface SubscriptionPlanDiscountResponse
|
|
9840
|
-
*/
|
|
9841
|
-
export interface SubscriptionPlanDiscountResponse {
|
|
9842
|
-
/**
|
|
9843
|
-
*
|
|
9844
|
-
* @type {DiscountType}
|
|
9845
|
-
* @memberof SubscriptionPlanDiscountResponse
|
|
9846
|
-
*/
|
|
9847
|
-
'type': DiscountType;
|
|
9848
|
-
/**
|
|
9849
|
-
*
|
|
9850
|
-
* @type {number}
|
|
9851
|
-
* @memberof SubscriptionPlanDiscountResponse
|
|
9852
|
-
*/
|
|
9853
|
-
'percentage'?: number;
|
|
9854
|
-
/**
|
|
9855
|
-
*
|
|
9856
|
-
* @type {number}
|
|
9857
|
-
* @memberof SubscriptionPlanDiscountResponse
|
|
9858
|
-
*/
|
|
9859
|
-
'maxDiscountAmountInCents'?: number;
|
|
9860
|
-
/**
|
|
9861
|
-
*
|
|
9862
|
-
* @type {string}
|
|
9863
|
-
* @memberof SubscriptionPlanDiscountResponse
|
|
9864
|
-
*/
|
|
9865
|
-
'validFrom'?: string;
|
|
9866
|
-
/**
|
|
9867
|
-
*
|
|
9868
|
-
* @type {string}
|
|
9869
|
-
* @memberof SubscriptionPlanDiscountResponse
|
|
9870
|
-
*/
|
|
9871
|
-
'validTo'?: string;
|
|
9872
|
-
/**
|
|
9873
|
-
*
|
|
9874
|
-
* @type {Array<string>}
|
|
9875
|
-
* @memberof SubscriptionPlanDiscountResponse
|
|
9876
|
-
*/
|
|
9877
|
-
'offPeakRuleNames'?: Array<string>;
|
|
9878
|
-
/**
|
|
9879
|
-
*
|
|
9880
|
-
* @type {Array<OffPeakRule>}
|
|
9881
|
-
* @memberof SubscriptionPlanDiscountResponse
|
|
9882
|
-
*/
|
|
9883
|
-
'offPeakRules'?: Array<OffPeakRule>;
|
|
9884
|
-
/**
|
|
9885
|
-
*
|
|
9886
|
-
* @type {boolean}
|
|
9887
|
-
* @memberof SubscriptionPlanDiscountResponse
|
|
9888
|
-
*/
|
|
9889
|
-
'bookingFree'?: boolean;
|
|
9890
|
-
}
|
|
9891
|
-
|
|
9892
|
-
|
|
9893
10049
|
/**
|
|
9894
10050
|
*
|
|
9895
10051
|
* @export
|
|
@@ -9925,19 +10081,13 @@ export interface SubscriptionPlanResponse {
|
|
|
9925
10081
|
* @type {number}
|
|
9926
10082
|
* @memberof SubscriptionPlanResponse
|
|
9927
10083
|
*/
|
|
9928
|
-
'amountInCents'
|
|
10084
|
+
'amountInCents': number;
|
|
9929
10085
|
/**
|
|
9930
10086
|
*
|
|
9931
10087
|
* @type {string}
|
|
9932
10088
|
* @memberof SubscriptionPlanResponse
|
|
9933
10089
|
*/
|
|
9934
10090
|
'currency': string;
|
|
9935
|
-
/**
|
|
9936
|
-
*
|
|
9937
|
-
* @type {Array<PlanPrice>}
|
|
9938
|
-
* @memberof SubscriptionPlanResponse
|
|
9939
|
-
*/
|
|
9940
|
-
'prices': Array<PlanPrice>;
|
|
9941
10091
|
/**
|
|
9942
10092
|
*
|
|
9943
10093
|
* @type {PlanInterval}
|
|
@@ -9950,18 +10100,6 @@ export interface SubscriptionPlanResponse {
|
|
|
9950
10100
|
* @memberof SubscriptionPlanResponse
|
|
9951
10101
|
*/
|
|
9952
10102
|
'priceActive': boolean;
|
|
9953
|
-
/**
|
|
9954
|
-
*
|
|
9955
|
-
* @type {string}
|
|
9956
|
-
* @memberof SubscriptionPlanResponse
|
|
9957
|
-
*/
|
|
9958
|
-
'description'?: string;
|
|
9959
|
-
/**
|
|
9960
|
-
*
|
|
9961
|
-
* @type {SubscriptionPlanDiscountResponse}
|
|
9962
|
-
* @memberof SubscriptionPlanResponse
|
|
9963
|
-
*/
|
|
9964
|
-
'discount'?: SubscriptionPlanDiscountResponse;
|
|
9965
10103
|
}
|
|
9966
10104
|
|
|
9967
10105
|
|
|
@@ -10585,14 +10723,177 @@ export interface UpdatePlanRequest {
|
|
|
10585
10723
|
* @type {number}
|
|
10586
10724
|
* @memberof UpdatePlanRequest
|
|
10587
10725
|
*/
|
|
10588
|
-
'newAmountInCents': number;
|
|
10726
|
+
'newAmountInCents': number;
|
|
10727
|
+
/**
|
|
10728
|
+
*
|
|
10729
|
+
* @type {string}
|
|
10730
|
+
* @memberof UpdatePlanRequest
|
|
10731
|
+
*/
|
|
10732
|
+
'oldPriceId': string;
|
|
10733
|
+
}
|
|
10734
|
+
/**
|
|
10735
|
+
*
|
|
10736
|
+
* @export
|
|
10737
|
+
* @interface UpdateRecurringDefinition200Response
|
|
10738
|
+
*/
|
|
10739
|
+
export interface UpdateRecurringDefinition200Response {
|
|
10740
|
+
/**
|
|
10741
|
+
*
|
|
10742
|
+
* @type {boolean}
|
|
10743
|
+
* @memberof UpdateRecurringDefinition200Response
|
|
10744
|
+
*/
|
|
10745
|
+
'ok': boolean;
|
|
10746
|
+
}
|
|
10747
|
+
/**
|
|
10748
|
+
*
|
|
10749
|
+
* @export
|
|
10750
|
+
* @interface UpdateRecurringDefinitionRequest
|
|
10751
|
+
*/
|
|
10752
|
+
export interface UpdateRecurringDefinitionRequest {
|
|
10753
|
+
/**
|
|
10754
|
+
*
|
|
10755
|
+
* @type {string}
|
|
10756
|
+
* @memberof UpdateRecurringDefinitionRequest
|
|
10757
|
+
*/
|
|
10758
|
+
'title'?: string;
|
|
10759
|
+
/**
|
|
10760
|
+
*
|
|
10761
|
+
* @type {string}
|
|
10762
|
+
* @memberof UpdateRecurringDefinitionRequest
|
|
10763
|
+
*/
|
|
10764
|
+
'description'?: string;
|
|
10765
|
+
/**
|
|
10766
|
+
*
|
|
10767
|
+
* @type {string}
|
|
10768
|
+
* @memberof UpdateRecurringDefinitionRequest
|
|
10769
|
+
*/
|
|
10770
|
+
'photoUrl'?: string;
|
|
10771
|
+
/**
|
|
10772
|
+
*
|
|
10773
|
+
* @type {string}
|
|
10774
|
+
* @memberof UpdateRecurringDefinitionRequest
|
|
10775
|
+
*/
|
|
10776
|
+
'sportId'?: string;
|
|
10777
|
+
/**
|
|
10778
|
+
*
|
|
10779
|
+
* @type {Array<string>}
|
|
10780
|
+
* @memberof UpdateRecurringDefinitionRequest
|
|
10781
|
+
*/
|
|
10782
|
+
'courts'?: Array<string>;
|
|
10783
|
+
/**
|
|
10784
|
+
*
|
|
10785
|
+
* @type {Array<string | null>}
|
|
10786
|
+
* @memberof UpdateRecurringDefinitionRequest
|
|
10787
|
+
*/
|
|
10788
|
+
'levels'?: Array<string | null>;
|
|
10789
|
+
/**
|
|
10790
|
+
*
|
|
10791
|
+
* @type {Array<EventSponsor>}
|
|
10792
|
+
* @memberof UpdateRecurringDefinitionRequest
|
|
10793
|
+
*/
|
|
10794
|
+
'sponsors'?: Array<EventSponsor>;
|
|
10795
|
+
/**
|
|
10796
|
+
*
|
|
10797
|
+
* @type {string}
|
|
10798
|
+
* @memberof UpdateRecurringDefinitionRequest
|
|
10799
|
+
*/
|
|
10800
|
+
'visibilityType'?: UpdateRecurringDefinitionRequestVisibilityTypeEnum;
|
|
10801
|
+
/**
|
|
10802
|
+
*
|
|
10803
|
+
* @type {string}
|
|
10804
|
+
* @memberof UpdateRecurringDefinitionRequest
|
|
10805
|
+
*/
|
|
10806
|
+
'type'?: UpdateRecurringDefinitionRequestTypeEnum;
|
|
10807
|
+
/**
|
|
10808
|
+
*
|
|
10809
|
+
* @type {string}
|
|
10810
|
+
* @memberof UpdateRecurringDefinitionRequest
|
|
10811
|
+
*/
|
|
10812
|
+
'participationType'?: UpdateRecurringDefinitionRequestParticipationTypeEnum;
|
|
10813
|
+
/**
|
|
10814
|
+
*
|
|
10815
|
+
* @type {number}
|
|
10816
|
+
* @memberof UpdateRecurringDefinitionRequest
|
|
10817
|
+
*/
|
|
10818
|
+
'playerLimit'?: number;
|
|
10819
|
+
/**
|
|
10820
|
+
*
|
|
10821
|
+
* @type {number}
|
|
10822
|
+
* @memberof UpdateRecurringDefinitionRequest
|
|
10823
|
+
*/
|
|
10824
|
+
'teamLimit'?: number;
|
|
10825
|
+
/**
|
|
10826
|
+
*
|
|
10827
|
+
* @type {number}
|
|
10828
|
+
* @memberof UpdateRecurringDefinitionRequest
|
|
10829
|
+
*/
|
|
10830
|
+
'playersPerTeam'?: number;
|
|
10831
|
+
/**
|
|
10832
|
+
*
|
|
10833
|
+
* @type {number}
|
|
10834
|
+
* @memberof UpdateRecurringDefinitionRequest
|
|
10835
|
+
*/
|
|
10836
|
+
'price'?: number;
|
|
10837
|
+
/**
|
|
10838
|
+
*
|
|
10839
|
+
* @type {Array<SubscriberPrice>}
|
|
10840
|
+
* @memberof UpdateRecurringDefinitionRequest
|
|
10841
|
+
*/
|
|
10842
|
+
'subscriberPrices'?: Array<SubscriberPrice>;
|
|
10843
|
+
/**
|
|
10844
|
+
*
|
|
10845
|
+
* @type {string}
|
|
10846
|
+
* @memberof UpdateRecurringDefinitionRequest
|
|
10847
|
+
*/
|
|
10848
|
+
'baseStartDate'?: string;
|
|
10849
|
+
/**
|
|
10850
|
+
*
|
|
10851
|
+
* @type {string}
|
|
10852
|
+
* @memberof UpdateRecurringDefinitionRequest
|
|
10853
|
+
*/
|
|
10854
|
+
'baseEndDate'?: string;
|
|
10855
|
+
/**
|
|
10856
|
+
*
|
|
10857
|
+
* @type {string}
|
|
10858
|
+
* @memberof UpdateRecurringDefinitionRequest
|
|
10859
|
+
*/
|
|
10860
|
+
'recurringType'?: UpdateRecurringDefinitionRequestRecurringTypeEnum;
|
|
10589
10861
|
/**
|
|
10590
10862
|
*
|
|
10591
10863
|
* @type {string}
|
|
10592
|
-
* @memberof
|
|
10864
|
+
* @memberof UpdateRecurringDefinitionRequest
|
|
10593
10865
|
*/
|
|
10594
|
-
'
|
|
10866
|
+
'recurrenceEndDate'?: string;
|
|
10595
10867
|
}
|
|
10868
|
+
|
|
10869
|
+
export const UpdateRecurringDefinitionRequestVisibilityTypeEnum = {
|
|
10870
|
+
Public: 'public',
|
|
10871
|
+
Private: 'private',
|
|
10872
|
+
Invitation: 'invitation'
|
|
10873
|
+
} as const;
|
|
10874
|
+
|
|
10875
|
+
export type UpdateRecurringDefinitionRequestVisibilityTypeEnum = typeof UpdateRecurringDefinitionRequestVisibilityTypeEnum[keyof typeof UpdateRecurringDefinitionRequestVisibilityTypeEnum];
|
|
10876
|
+
export const UpdateRecurringDefinitionRequestTypeEnum = {
|
|
10877
|
+
Event: 'event',
|
|
10878
|
+
Closure: 'closure'
|
|
10879
|
+
} as const;
|
|
10880
|
+
|
|
10881
|
+
export type UpdateRecurringDefinitionRequestTypeEnum = typeof UpdateRecurringDefinitionRequestTypeEnum[keyof typeof UpdateRecurringDefinitionRequestTypeEnum];
|
|
10882
|
+
export const UpdateRecurringDefinitionRequestParticipationTypeEnum = {
|
|
10883
|
+
Solo: 'solo',
|
|
10884
|
+
Team: 'team'
|
|
10885
|
+
} as const;
|
|
10886
|
+
|
|
10887
|
+
export type UpdateRecurringDefinitionRequestParticipationTypeEnum = typeof UpdateRecurringDefinitionRequestParticipationTypeEnum[keyof typeof UpdateRecurringDefinitionRequestParticipationTypeEnum];
|
|
10888
|
+
export const UpdateRecurringDefinitionRequestRecurringTypeEnum = {
|
|
10889
|
+
Daily: 'daily',
|
|
10890
|
+
Weekly: 'weekly',
|
|
10891
|
+
Monthly: 'monthly',
|
|
10892
|
+
Unique: 'unique'
|
|
10893
|
+
} as const;
|
|
10894
|
+
|
|
10895
|
+
export type UpdateRecurringDefinitionRequestRecurringTypeEnum = typeof UpdateRecurringDefinitionRequestRecurringTypeEnum[keyof typeof UpdateRecurringDefinitionRequestRecurringTypeEnum];
|
|
10896
|
+
|
|
10596
10897
|
/**
|
|
10597
10898
|
*
|
|
10598
10899
|
* @export
|
|
@@ -10948,6 +11249,149 @@ export interface UserClubSubscription {
|
|
|
10948
11249
|
}
|
|
10949
11250
|
|
|
10950
11251
|
|
|
11252
|
+
/**
|
|
11253
|
+
*
|
|
11254
|
+
* @export
|
|
11255
|
+
* @interface UserEventParticipation
|
|
11256
|
+
*/
|
|
11257
|
+
export interface UserEventParticipation {
|
|
11258
|
+
/**
|
|
11259
|
+
*
|
|
11260
|
+
* @type {UserEventSummary}
|
|
11261
|
+
* @memberof UserEventParticipation
|
|
11262
|
+
*/
|
|
11263
|
+
'event': UserEventSummary;
|
|
11264
|
+
/**
|
|
11265
|
+
*
|
|
11266
|
+
* @type {EventBookingDetailSummary}
|
|
11267
|
+
* @memberof UserEventParticipation
|
|
11268
|
+
*/
|
|
11269
|
+
'booking': EventBookingDetailSummary;
|
|
11270
|
+
}
|
|
11271
|
+
/**
|
|
11272
|
+
*
|
|
11273
|
+
* @export
|
|
11274
|
+
* @interface UserEventSummary
|
|
11275
|
+
*/
|
|
11276
|
+
export interface UserEventSummary {
|
|
11277
|
+
/**
|
|
11278
|
+
*
|
|
11279
|
+
* @type {string}
|
|
11280
|
+
* @memberof UserEventSummary
|
|
11281
|
+
*/
|
|
11282
|
+
'id': string;
|
|
11283
|
+
/**
|
|
11284
|
+
*
|
|
11285
|
+
* @type {string}
|
|
11286
|
+
* @memberof UserEventSummary
|
|
11287
|
+
*/
|
|
11288
|
+
'clubId': string;
|
|
11289
|
+
/**
|
|
11290
|
+
*
|
|
11291
|
+
* @type {string}
|
|
11292
|
+
* @memberof UserEventSummary
|
|
11293
|
+
*/
|
|
11294
|
+
'title': string;
|
|
11295
|
+
/**
|
|
11296
|
+
*
|
|
11297
|
+
* @type {string}
|
|
11298
|
+
* @memberof UserEventSummary
|
|
11299
|
+
*/
|
|
11300
|
+
'description'?: string | null;
|
|
11301
|
+
/**
|
|
11302
|
+
*
|
|
11303
|
+
* @type {string}
|
|
11304
|
+
* @memberof UserEventSummary
|
|
11305
|
+
*/
|
|
11306
|
+
'photoUrl'?: string | null;
|
|
11307
|
+
/**
|
|
11308
|
+
*
|
|
11309
|
+
* @type {string}
|
|
11310
|
+
* @memberof UserEventSummary
|
|
11311
|
+
*/
|
|
11312
|
+
'startDate': string;
|
|
11313
|
+
/**
|
|
11314
|
+
*
|
|
11315
|
+
* @type {string}
|
|
11316
|
+
* @memberof UserEventSummary
|
|
11317
|
+
*/
|
|
11318
|
+
'endDate': string;
|
|
11319
|
+
/**
|
|
11320
|
+
*
|
|
11321
|
+
* @type {ParticipationType}
|
|
11322
|
+
* @memberof UserEventSummary
|
|
11323
|
+
*/
|
|
11324
|
+
'participationType': ParticipationType;
|
|
11325
|
+
/**
|
|
11326
|
+
*
|
|
11327
|
+
* @type {VisibilityType}
|
|
11328
|
+
* @memberof UserEventSummary
|
|
11329
|
+
*/
|
|
11330
|
+
'visibilityType': VisibilityType;
|
|
11331
|
+
/**
|
|
11332
|
+
*
|
|
11333
|
+
* @type {boolean}
|
|
11334
|
+
* @memberof UserEventSummary
|
|
11335
|
+
*/
|
|
11336
|
+
'isActive': boolean;
|
|
11337
|
+
/**
|
|
11338
|
+
*
|
|
11339
|
+
* @type {number}
|
|
11340
|
+
* @memberof UserEventSummary
|
|
11341
|
+
*/
|
|
11342
|
+
'price'?: number | null;
|
|
11343
|
+
/**
|
|
11344
|
+
*
|
|
11345
|
+
* @type {Array<string>}
|
|
11346
|
+
* @memberof UserEventSummary
|
|
11347
|
+
*/
|
|
11348
|
+
'sports'?: Array<string>;
|
|
11349
|
+
/**
|
|
11350
|
+
*
|
|
11351
|
+
* @type {Array<string>}
|
|
11352
|
+
* @memberof UserEventSummary
|
|
11353
|
+
*/
|
|
11354
|
+
'courts'?: Array<string>;
|
|
11355
|
+
}
|
|
11356
|
+
|
|
11357
|
+
|
|
11358
|
+
/**
|
|
11359
|
+
*
|
|
11360
|
+
* @export
|
|
11361
|
+
* @interface UserEventsResponse
|
|
11362
|
+
*/
|
|
11363
|
+
export interface UserEventsResponse {
|
|
11364
|
+
/**
|
|
11365
|
+
*
|
|
11366
|
+
* @type {number}
|
|
11367
|
+
* @memberof UserEventsResponse
|
|
11368
|
+
*/
|
|
11369
|
+
'total': number;
|
|
11370
|
+
/**
|
|
11371
|
+
*
|
|
11372
|
+
* @type {number}
|
|
11373
|
+
* @memberof UserEventsResponse
|
|
11374
|
+
*/
|
|
11375
|
+
'limit': number;
|
|
11376
|
+
/**
|
|
11377
|
+
*
|
|
11378
|
+
* @type {number}
|
|
11379
|
+
* @memberof UserEventsResponse
|
|
11380
|
+
*/
|
|
11381
|
+
'skip': number;
|
|
11382
|
+
/**
|
|
11383
|
+
*
|
|
11384
|
+
* @type {boolean}
|
|
11385
|
+
* @memberof UserEventsResponse
|
|
11386
|
+
*/
|
|
11387
|
+
'hasMore': boolean;
|
|
11388
|
+
/**
|
|
11389
|
+
*
|
|
11390
|
+
* @type {Array<UserEventParticipation>}
|
|
11391
|
+
* @memberof UserEventsResponse
|
|
11392
|
+
*/
|
|
11393
|
+
'participations': Array<UserEventParticipation>;
|
|
11394
|
+
}
|
|
10951
11395
|
/**
|
|
10952
11396
|
*
|
|
10953
11397
|
* @export
|
|
@@ -11347,6 +11791,21 @@ export interface VerifyEmailRequest {
|
|
|
11347
11791
|
*/
|
|
11348
11792
|
'token'?: string;
|
|
11349
11793
|
}
|
|
11794
|
+
/**
|
|
11795
|
+
*
|
|
11796
|
+
* @export
|
|
11797
|
+
* @enum {string}
|
|
11798
|
+
*/
|
|
11799
|
+
|
|
11800
|
+
export const VisibilityType = {
|
|
11801
|
+
Public: 'public',
|
|
11802
|
+
Private: 'private',
|
|
11803
|
+
Invitation: 'invitation'
|
|
11804
|
+
} as const;
|
|
11805
|
+
|
|
11806
|
+
export type VisibilityType = typeof VisibilityType[keyof typeof VisibilityType];
|
|
11807
|
+
|
|
11808
|
+
|
|
11350
11809
|
/**
|
|
11351
11810
|
*
|
|
11352
11811
|
* @export
|
|
@@ -12022,17 +12481,17 @@ export class BookingsManagerApi extends BaseAPI {
|
|
|
12022
12481
|
export const BookingsStaffApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
12023
12482
|
return {
|
|
12024
12483
|
/**
|
|
12025
|
-
* Check-in
|
|
12484
|
+
* Check-in des joueurs only for club with payment features
|
|
12026
12485
|
* @param {string} bookingId
|
|
12027
|
-
* @param {
|
|
12486
|
+
* @param {CheckInPlayersRequest} checkInPlayersRequest
|
|
12028
12487
|
* @param {*} [options] Override http request option.
|
|
12029
12488
|
* @throws {RequiredError}
|
|
12030
12489
|
*/
|
|
12031
|
-
|
|
12490
|
+
checkInPlayers: async (bookingId: string, checkInPlayersRequest: CheckInPlayersRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
12032
12491
|
// verify required parameter 'bookingId' is not null or undefined
|
|
12033
|
-
assertParamExists('
|
|
12034
|
-
// verify required parameter '
|
|
12035
|
-
assertParamExists('
|
|
12492
|
+
assertParamExists('checkInPlayers', 'bookingId', bookingId)
|
|
12493
|
+
// verify required parameter 'checkInPlayersRequest' is not null or undefined
|
|
12494
|
+
assertParamExists('checkInPlayers', 'checkInPlayersRequest', checkInPlayersRequest)
|
|
12036
12495
|
const localVarPath = `/api/bookings/{bookingId}/check-in`
|
|
12037
12496
|
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
12038
12497
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -12057,7 +12516,7 @@ export const BookingsStaffApiAxiosParamCreator = function (configuration?: Confi
|
|
|
12057
12516
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12058
12517
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12059
12518
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
12060
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
12519
|
+
localVarRequestOptions.data = serializeDataIfNeeded(checkInPlayersRequest, localVarRequestOptions, configuration)
|
|
12061
12520
|
|
|
12062
12521
|
return {
|
|
12063
12522
|
url: toPathString(localVarUrlObj),
|
|
@@ -12357,16 +12816,16 @@ export const BookingsStaffApiFp = function(configuration?: Configuration) {
|
|
|
12357
12816
|
const localVarAxiosParamCreator = BookingsStaffApiAxiosParamCreator(configuration)
|
|
12358
12817
|
return {
|
|
12359
12818
|
/**
|
|
12360
|
-
* Check-in
|
|
12819
|
+
* Check-in des joueurs only for club with payment features
|
|
12361
12820
|
* @param {string} bookingId
|
|
12362
|
-
* @param {
|
|
12821
|
+
* @param {CheckInPlayersRequest} checkInPlayersRequest
|
|
12363
12822
|
* @param {*} [options] Override http request option.
|
|
12364
12823
|
* @throws {RequiredError}
|
|
12365
12824
|
*/
|
|
12366
|
-
async
|
|
12367
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
12825
|
+
async checkInPlayers(bookingId: string, checkInPlayersRequest: CheckInPlayersRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CheckInPlayersResponse>> {
|
|
12826
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.checkInPlayers(bookingId, checkInPlayersRequest, options);
|
|
12368
12827
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
12369
|
-
const localVarOperationServerBasePath = operationServerMap['BookingsStaffApi.
|
|
12828
|
+
const localVarOperationServerBasePath = operationServerMap['BookingsStaffApi.checkInPlayers']?.[localVarOperationServerIndex]?.url;
|
|
12370
12829
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12371
12830
|
},
|
|
12372
12831
|
/**
|
|
@@ -12468,13 +12927,13 @@ export const BookingsStaffApiFactory = function (configuration?: Configuration,
|
|
|
12468
12927
|
const localVarFp = BookingsStaffApiFp(configuration)
|
|
12469
12928
|
return {
|
|
12470
12929
|
/**
|
|
12471
|
-
* Check-in
|
|
12472
|
-
* @param {
|
|
12930
|
+
* Check-in des joueurs only for club with payment features
|
|
12931
|
+
* @param {BookingsStaffApiCheckInPlayersRequest} requestParameters Request parameters.
|
|
12473
12932
|
* @param {*} [options] Override http request option.
|
|
12474
12933
|
* @throws {RequiredError}
|
|
12475
12934
|
*/
|
|
12476
|
-
|
|
12477
|
-
return localVarFp.
|
|
12935
|
+
checkInPlayers(requestParameters: BookingsStaffApiCheckInPlayersRequest, options?: RawAxiosRequestConfig): AxiosPromise<CheckInPlayersResponse> {
|
|
12936
|
+
return localVarFp.checkInPlayers(requestParameters.bookingId, requestParameters.checkInPlayersRequest, options).then((request) => request(axios, basePath));
|
|
12478
12937
|
},
|
|
12479
12938
|
/**
|
|
12480
12939
|
* Créer une réservation pour un joueur depuis l\'espace staff
|
|
@@ -12543,24 +13002,24 @@ export const BookingsStaffApiFactory = function (configuration?: Configuration,
|
|
|
12543
13002
|
};
|
|
12544
13003
|
|
|
12545
13004
|
/**
|
|
12546
|
-
* Request parameters for
|
|
13005
|
+
* Request parameters for checkInPlayers operation in BookingsStaffApi.
|
|
12547
13006
|
* @export
|
|
12548
|
-
* @interface
|
|
13007
|
+
* @interface BookingsStaffApiCheckInPlayersRequest
|
|
12549
13008
|
*/
|
|
12550
|
-
export interface
|
|
13009
|
+
export interface BookingsStaffApiCheckInPlayersRequest {
|
|
12551
13010
|
/**
|
|
12552
13011
|
*
|
|
12553
13012
|
* @type {string}
|
|
12554
|
-
* @memberof
|
|
13013
|
+
* @memberof BookingsStaffApiCheckInPlayers
|
|
12555
13014
|
*/
|
|
12556
13015
|
readonly bookingId: string
|
|
12557
13016
|
|
|
12558
13017
|
/**
|
|
12559
13018
|
*
|
|
12560
|
-
* @type {
|
|
12561
|
-
* @memberof
|
|
13019
|
+
* @type {CheckInPlayersRequest}
|
|
13020
|
+
* @memberof BookingsStaffApiCheckInPlayers
|
|
12562
13021
|
*/
|
|
12563
|
-
readonly
|
|
13022
|
+
readonly checkInPlayersRequest: CheckInPlayersRequest
|
|
12564
13023
|
}
|
|
12565
13024
|
|
|
12566
13025
|
/**
|
|
@@ -12697,14 +13156,14 @@ export interface BookingsStaffApiListClubBookingsRequest {
|
|
|
12697
13156
|
*/
|
|
12698
13157
|
export class BookingsStaffApi extends BaseAPI {
|
|
12699
13158
|
/**
|
|
12700
|
-
* Check-in
|
|
12701
|
-
* @param {
|
|
13159
|
+
* Check-in des joueurs only for club with payment features
|
|
13160
|
+
* @param {BookingsStaffApiCheckInPlayersRequest} requestParameters Request parameters.
|
|
12702
13161
|
* @param {*} [options] Override http request option.
|
|
12703
13162
|
* @throws {RequiredError}
|
|
12704
13163
|
* @memberof BookingsStaffApi
|
|
12705
13164
|
*/
|
|
12706
|
-
public
|
|
12707
|
-
return BookingsStaffApiFp(this.configuration).
|
|
13165
|
+
public checkInPlayers(requestParameters: BookingsStaffApiCheckInPlayersRequest, options?: RawAxiosRequestConfig) {
|
|
13166
|
+
return BookingsStaffApiFp(this.configuration).checkInPlayers(requestParameters.bookingId, requestParameters.checkInPlayersRequest, options).then((request) => request(this.axios, this.basePath));
|
|
12708
13167
|
}
|
|
12709
13168
|
|
|
12710
13169
|
/**
|
|
@@ -19189,43 +19648,6 @@ export const ClubsStaffApiAxiosParamCreator = function (configuration?: Configur
|
|
|
19189
19648
|
|
|
19190
19649
|
|
|
19191
19650
|
|
|
19192
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
19193
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
19194
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
19195
|
-
|
|
19196
|
-
return {
|
|
19197
|
-
url: toPathString(localVarUrlObj),
|
|
19198
|
-
options: localVarRequestOptions,
|
|
19199
|
-
};
|
|
19200
|
-
},
|
|
19201
|
-
/**
|
|
19202
|
-
*
|
|
19203
|
-
* @param {string} clubId
|
|
19204
|
-
* @param {*} [options] Override http request option.
|
|
19205
|
-
* @throws {RequiredError}
|
|
19206
|
-
*/
|
|
19207
|
-
getClubType: async (clubId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
19208
|
-
// verify required parameter 'clubId' is not null or undefined
|
|
19209
|
-
assertParamExists('getClubType', 'clubId', clubId)
|
|
19210
|
-
const localVarPath = `/api/clubs/{clubId}/clubType`
|
|
19211
|
-
.replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
|
|
19212
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
19213
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
19214
|
-
let baseOptions;
|
|
19215
|
-
if (configuration) {
|
|
19216
|
-
baseOptions = configuration.baseOptions;
|
|
19217
|
-
}
|
|
19218
|
-
|
|
19219
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
19220
|
-
const localVarHeaderParameter = {} as any;
|
|
19221
|
-
const localVarQueryParameter = {} as any;
|
|
19222
|
-
|
|
19223
|
-
// authentication bearerAuth required
|
|
19224
|
-
// http bearer authentication required
|
|
19225
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
19226
|
-
|
|
19227
|
-
|
|
19228
|
-
|
|
19229
19651
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
19230
19652
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
19231
19653
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -19494,18 +19916,6 @@ export const ClubsStaffApiFp = function(configuration?: Configuration) {
|
|
|
19494
19916
|
const localVarOperationServerBasePath = operationServerMap['ClubsStaffApi.getClubRoles']?.[localVarOperationServerIndex]?.url;
|
|
19495
19917
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
19496
19918
|
},
|
|
19497
|
-
/**
|
|
19498
|
-
*
|
|
19499
|
-
* @param {string} clubId
|
|
19500
|
-
* @param {*} [options] Override http request option.
|
|
19501
|
-
* @throws {RequiredError}
|
|
19502
|
-
*/
|
|
19503
|
-
async getClubType(clubId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetClubType200Response>> {
|
|
19504
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getClubType(clubId, options);
|
|
19505
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
19506
|
-
const localVarOperationServerBasePath = operationServerMap['ClubsStaffApi.getClubType']?.[localVarOperationServerIndex]?.url;
|
|
19507
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
19508
|
-
},
|
|
19509
19919
|
/**
|
|
19510
19920
|
* Récupère les terrains d\'un club
|
|
19511
19921
|
* @param {*} [options] Override http request option.
|
|
@@ -19619,15 +20029,6 @@ export const ClubsStaffApiFactory = function (configuration?: Configuration, bas
|
|
|
19619
20029
|
getClubRoles(options?: RawAxiosRequestConfig): AxiosPromise<GetClubRoles200Response> {
|
|
19620
20030
|
return localVarFp.getClubRoles(options).then((request) => request(axios, basePath));
|
|
19621
20031
|
},
|
|
19622
|
-
/**
|
|
19623
|
-
*
|
|
19624
|
-
* @param {ClubsStaffApiGetClubTypeRequest} requestParameters Request parameters.
|
|
19625
|
-
* @param {*} [options] Override http request option.
|
|
19626
|
-
* @throws {RequiredError}
|
|
19627
|
-
*/
|
|
19628
|
-
getClubType(requestParameters: ClubsStaffApiGetClubTypeRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetClubType200Response> {
|
|
19629
|
-
return localVarFp.getClubType(requestParameters.clubId, options).then((request) => request(axios, basePath));
|
|
19630
|
-
},
|
|
19631
20032
|
/**
|
|
19632
20033
|
* Récupère les terrains d\'un club
|
|
19633
20034
|
* @param {*} [options] Override http request option.
|
|
@@ -19687,20 +20088,6 @@ export interface ClubsStaffApiCreateOnsiteInvoiceForBookingRequest {
|
|
|
19687
20088
|
readonly createOnsiteInvoiceRequest: CreateOnsiteInvoiceRequest
|
|
19688
20089
|
}
|
|
19689
20090
|
|
|
19690
|
-
/**
|
|
19691
|
-
* Request parameters for getClubType operation in ClubsStaffApi.
|
|
19692
|
-
* @export
|
|
19693
|
-
* @interface ClubsStaffApiGetClubTypeRequest
|
|
19694
|
-
*/
|
|
19695
|
-
export interface ClubsStaffApiGetClubTypeRequest {
|
|
19696
|
-
/**
|
|
19697
|
-
*
|
|
19698
|
-
* @type {string}
|
|
19699
|
-
* @memberof ClubsStaffApiGetClubType
|
|
19700
|
-
*/
|
|
19701
|
-
readonly clubId: string
|
|
19702
|
-
}
|
|
19703
|
-
|
|
19704
20091
|
/**
|
|
19705
20092
|
* Request parameters for getInvoices operation in ClubsStaffApi.
|
|
19706
20093
|
* @export
|
|
@@ -19860,17 +20247,6 @@ export class ClubsStaffApi extends BaseAPI {
|
|
|
19860
20247
|
return ClubsStaffApiFp(this.configuration).getClubRoles(options).then((request) => request(this.axios, this.basePath));
|
|
19861
20248
|
}
|
|
19862
20249
|
|
|
19863
|
-
/**
|
|
19864
|
-
*
|
|
19865
|
-
* @param {ClubsStaffApiGetClubTypeRequest} requestParameters Request parameters.
|
|
19866
|
-
* @param {*} [options] Override http request option.
|
|
19867
|
-
* @throws {RequiredError}
|
|
19868
|
-
* @memberof ClubsStaffApi
|
|
19869
|
-
*/
|
|
19870
|
-
public getClubType(requestParameters: ClubsStaffApiGetClubTypeRequest, options?: RawAxiosRequestConfig) {
|
|
19871
|
-
return ClubsStaffApiFp(this.configuration).getClubType(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
|
|
19872
|
-
}
|
|
19873
|
-
|
|
19874
20250
|
/**
|
|
19875
20251
|
* Récupère les terrains d\'un club
|
|
19876
20252
|
* @param {*} [options] Override http request option.
|
|
@@ -20123,10 +20499,11 @@ export const EventsApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
20123
20499
|
/**
|
|
20124
20500
|
* Get a specific event by ID
|
|
20125
20501
|
* @param {string} eventId
|
|
20502
|
+
* @param {string} [userId]
|
|
20126
20503
|
* @param {*} [options] Override http request option.
|
|
20127
20504
|
* @throws {RequiredError}
|
|
20128
20505
|
*/
|
|
20129
|
-
getEventById: async (eventId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
20506
|
+
getEventById: async (eventId: string, userId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
20130
20507
|
// verify required parameter 'eventId' is not null or undefined
|
|
20131
20508
|
assertParamExists('getEventById', 'eventId', eventId)
|
|
20132
20509
|
const localVarPath = `/api/events/{eventId}`
|
|
@@ -20142,6 +20519,10 @@ export const EventsApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
20142
20519
|
const localVarHeaderParameter = {} as any;
|
|
20143
20520
|
const localVarQueryParameter = {} as any;
|
|
20144
20521
|
|
|
20522
|
+
if (userId !== undefined) {
|
|
20523
|
+
localVarQueryParameter['userId'] = userId;
|
|
20524
|
+
}
|
|
20525
|
+
|
|
20145
20526
|
|
|
20146
20527
|
|
|
20147
20528
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -20321,11 +20702,12 @@ export const EventsApiFp = function(configuration?: Configuration) {
|
|
|
20321
20702
|
/**
|
|
20322
20703
|
* Get a specific event by ID
|
|
20323
20704
|
* @param {string} eventId
|
|
20705
|
+
* @param {string} [userId]
|
|
20324
20706
|
* @param {*} [options] Override http request option.
|
|
20325
20707
|
* @throws {RequiredError}
|
|
20326
20708
|
*/
|
|
20327
|
-
async getEventById(eventId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PublishEventResponse>> {
|
|
20328
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getEventById(eventId, options);
|
|
20709
|
+
async getEventById(eventId: string, userId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PublishEventResponse>> {
|
|
20710
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getEventById(eventId, userId, options);
|
|
20329
20711
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
20330
20712
|
const localVarOperationServerBasePath = operationServerMap['EventsApi.getEventById']?.[localVarOperationServerIndex]?.url;
|
|
20331
20713
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -20405,7 +20787,7 @@ export const EventsApiFactory = function (configuration?: Configuration, basePat
|
|
|
20405
20787
|
* @throws {RequiredError}
|
|
20406
20788
|
*/
|
|
20407
20789
|
getEventById(requestParameters: EventsApiGetEventByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<PublishEventResponse> {
|
|
20408
|
-
return localVarFp.getEventById(requestParameters.eventId, options).then((request) => request(axios, basePath));
|
|
20790
|
+
return localVarFp.getEventById(requestParameters.eventId, requestParameters.userId, options).then((request) => request(axios, basePath));
|
|
20409
20791
|
},
|
|
20410
20792
|
/**
|
|
20411
20793
|
* Get all published events for a club
|
|
@@ -20491,6 +20873,13 @@ export interface EventsApiGetEventByIdRequest {
|
|
|
20491
20873
|
* @memberof EventsApiGetEventById
|
|
20492
20874
|
*/
|
|
20493
20875
|
readonly eventId: string
|
|
20876
|
+
|
|
20877
|
+
/**
|
|
20878
|
+
*
|
|
20879
|
+
* @type {string}
|
|
20880
|
+
* @memberof EventsApiGetEventById
|
|
20881
|
+
*/
|
|
20882
|
+
readonly userId?: string
|
|
20494
20883
|
}
|
|
20495
20884
|
|
|
20496
20885
|
/**
|
|
@@ -20600,7 +20989,7 @@ export class EventsApi extends BaseAPI {
|
|
|
20600
20989
|
* @memberof EventsApi
|
|
20601
20990
|
*/
|
|
20602
20991
|
public getEventById(requestParameters: EventsApiGetEventByIdRequest, options?: RawAxiosRequestConfig) {
|
|
20603
|
-
return EventsApiFp(this.configuration).getEventById(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
|
|
20992
|
+
return EventsApiFp(this.configuration).getEventById(requestParameters.eventId, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
|
|
20604
20993
|
}
|
|
20605
20994
|
|
|
20606
20995
|
/**
|
|
@@ -20733,7 +21122,44 @@ export const EventsManagerApiAxiosParamCreator = function (configuration?: Confi
|
|
|
20733
21122
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
20734
21123
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
20735
21124
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
20736
|
-
localVarRequestOptions.data = serializeDataIfNeeded(createEventRequest, localVarRequestOptions, configuration)
|
|
21125
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createEventRequest, localVarRequestOptions, configuration)
|
|
21126
|
+
|
|
21127
|
+
return {
|
|
21128
|
+
url: toPathString(localVarUrlObj),
|
|
21129
|
+
options: localVarRequestOptions,
|
|
21130
|
+
};
|
|
21131
|
+
},
|
|
21132
|
+
/**
|
|
21133
|
+
* Delete an event (manager)
|
|
21134
|
+
* @param {string} eventId
|
|
21135
|
+
* @param {*} [options] Override http request option.
|
|
21136
|
+
* @throws {RequiredError}
|
|
21137
|
+
*/
|
|
21138
|
+
deleteEvent: async (eventId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
21139
|
+
// verify required parameter 'eventId' is not null or undefined
|
|
21140
|
+
assertParamExists('deleteEvent', 'eventId', eventId)
|
|
21141
|
+
const localVarPath = `/api/events/manager/deleteEvent/{eventId}`
|
|
21142
|
+
.replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
|
|
21143
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
21144
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
21145
|
+
let baseOptions;
|
|
21146
|
+
if (configuration) {
|
|
21147
|
+
baseOptions = configuration.baseOptions;
|
|
21148
|
+
}
|
|
21149
|
+
|
|
21150
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
21151
|
+
const localVarHeaderParameter = {} as any;
|
|
21152
|
+
const localVarQueryParameter = {} as any;
|
|
21153
|
+
|
|
21154
|
+
// authentication bearerAuth required
|
|
21155
|
+
// http bearer authentication required
|
|
21156
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
21157
|
+
|
|
21158
|
+
|
|
21159
|
+
|
|
21160
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
21161
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
21162
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
20737
21163
|
|
|
20738
21164
|
return {
|
|
20739
21165
|
url: toPathString(localVarUrlObj),
|
|
@@ -20741,16 +21167,13 @@ export const EventsManagerApiAxiosParamCreator = function (configuration?: Confi
|
|
|
20741
21167
|
};
|
|
20742
21168
|
},
|
|
20743
21169
|
/**
|
|
20744
|
-
*
|
|
20745
|
-
* @param {
|
|
21170
|
+
* List recurring definitions about to expire within `days` (manager)
|
|
21171
|
+
* @param {number} [days]
|
|
20746
21172
|
* @param {*} [options] Override http request option.
|
|
20747
21173
|
* @throws {RequiredError}
|
|
20748
21174
|
*/
|
|
20749
|
-
|
|
20750
|
-
|
|
20751
|
-
assertParamExists('deleteEvent', 'eventId', eventId)
|
|
20752
|
-
const localVarPath = `/api/events/manager/deleteEvent/{eventId}`
|
|
20753
|
-
.replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
|
|
21175
|
+
getExpiringRecurringDefinitions: async (days?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
21176
|
+
const localVarPath = `/api/events/manager/recurring/expiring`;
|
|
20754
21177
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
20755
21178
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
20756
21179
|
let baseOptions;
|
|
@@ -20758,7 +21181,7 @@ export const EventsManagerApiAxiosParamCreator = function (configuration?: Confi
|
|
|
20758
21181
|
baseOptions = configuration.baseOptions;
|
|
20759
21182
|
}
|
|
20760
21183
|
|
|
20761
|
-
const localVarRequestOptions = { method: '
|
|
21184
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
20762
21185
|
const localVarHeaderParameter = {} as any;
|
|
20763
21186
|
const localVarQueryParameter = {} as any;
|
|
20764
21187
|
|
|
@@ -20766,6 +21189,10 @@ export const EventsManagerApiAxiosParamCreator = function (configuration?: Confi
|
|
|
20766
21189
|
// http bearer authentication required
|
|
20767
21190
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
20768
21191
|
|
|
21192
|
+
if (days !== undefined) {
|
|
21193
|
+
localVarQueryParameter['days'] = days;
|
|
21194
|
+
}
|
|
21195
|
+
|
|
20769
21196
|
|
|
20770
21197
|
|
|
20771
21198
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -20932,6 +21359,49 @@ export const EventsManagerApiAxiosParamCreator = function (configuration?: Confi
|
|
|
20932
21359
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
20933
21360
|
localVarRequestOptions.data = serializeDataIfNeeded(updateEventRequest, localVarRequestOptions, configuration)
|
|
20934
21361
|
|
|
21362
|
+
return {
|
|
21363
|
+
url: toPathString(localVarUrlObj),
|
|
21364
|
+
options: localVarRequestOptions,
|
|
21365
|
+
};
|
|
21366
|
+
},
|
|
21367
|
+
/**
|
|
21368
|
+
* Update a recurring event definition (manager) and propagate changes to generated Events
|
|
21369
|
+
* @param {string} definitionId
|
|
21370
|
+
* @param {UpdateRecurringDefinitionRequest} updateRecurringDefinitionRequest
|
|
21371
|
+
* @param {*} [options] Override http request option.
|
|
21372
|
+
* @throws {RequiredError}
|
|
21373
|
+
*/
|
|
21374
|
+
updateRecurringDefinition: async (definitionId: string, updateRecurringDefinitionRequest: UpdateRecurringDefinitionRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
21375
|
+
// verify required parameter 'definitionId' is not null or undefined
|
|
21376
|
+
assertParamExists('updateRecurringDefinition', 'definitionId', definitionId)
|
|
21377
|
+
// verify required parameter 'updateRecurringDefinitionRequest' is not null or undefined
|
|
21378
|
+
assertParamExists('updateRecurringDefinition', 'updateRecurringDefinitionRequest', updateRecurringDefinitionRequest)
|
|
21379
|
+
const localVarPath = `/api/events/manager/recurring/{definitionId}`
|
|
21380
|
+
.replace(`{${"definitionId"}}`, encodeURIComponent(String(definitionId)));
|
|
21381
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
21382
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
21383
|
+
let baseOptions;
|
|
21384
|
+
if (configuration) {
|
|
21385
|
+
baseOptions = configuration.baseOptions;
|
|
21386
|
+
}
|
|
21387
|
+
|
|
21388
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
21389
|
+
const localVarHeaderParameter = {} as any;
|
|
21390
|
+
const localVarQueryParameter = {} as any;
|
|
21391
|
+
|
|
21392
|
+
// authentication bearerAuth required
|
|
21393
|
+
// http bearer authentication required
|
|
21394
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
21395
|
+
|
|
21396
|
+
|
|
21397
|
+
|
|
21398
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
21399
|
+
|
|
21400
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
21401
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
21402
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
21403
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateRecurringDefinitionRequest, localVarRequestOptions, configuration)
|
|
21404
|
+
|
|
20935
21405
|
return {
|
|
20936
21406
|
url: toPathString(localVarUrlObj),
|
|
20937
21407
|
options: localVarRequestOptions,
|
|
@@ -20983,6 +21453,18 @@ export const EventsManagerApiFp = function(configuration?: Configuration) {
|
|
|
20983
21453
|
const localVarOperationServerBasePath = operationServerMap['EventsManagerApi.deleteEvent']?.[localVarOperationServerIndex]?.url;
|
|
20984
21454
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
20985
21455
|
},
|
|
21456
|
+
/**
|
|
21457
|
+
* List recurring definitions about to expire within `days` (manager)
|
|
21458
|
+
* @param {number} [days]
|
|
21459
|
+
* @param {*} [options] Override http request option.
|
|
21460
|
+
* @throws {RequiredError}
|
|
21461
|
+
*/
|
|
21462
|
+
async getExpiringRecurringDefinitions(days?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<RecurringDefinitionResponse>>> {
|
|
21463
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getExpiringRecurringDefinitions(days, options);
|
|
21464
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
21465
|
+
const localVarOperationServerBasePath = operationServerMap['EventsManagerApi.getExpiringRecurringDefinitions']?.[localVarOperationServerIndex]?.url;
|
|
21466
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
21467
|
+
},
|
|
20986
21468
|
/**
|
|
20987
21469
|
* Publish an event (manager)
|
|
20988
21470
|
* @param {string} eventId
|
|
@@ -21033,6 +21515,19 @@ export const EventsManagerApiFp = function(configuration?: Configuration) {
|
|
|
21033
21515
|
const localVarOperationServerBasePath = operationServerMap['EventsManagerApi.updatePublishedEvent']?.[localVarOperationServerIndex]?.url;
|
|
21034
21516
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
21035
21517
|
},
|
|
21518
|
+
/**
|
|
21519
|
+
* Update a recurring event definition (manager) and propagate changes to generated Events
|
|
21520
|
+
* @param {string} definitionId
|
|
21521
|
+
* @param {UpdateRecurringDefinitionRequest} updateRecurringDefinitionRequest
|
|
21522
|
+
* @param {*} [options] Override http request option.
|
|
21523
|
+
* @throws {RequiredError}
|
|
21524
|
+
*/
|
|
21525
|
+
async updateRecurringDefinition(definitionId: string, updateRecurringDefinitionRequest: UpdateRecurringDefinitionRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateRecurringDefinition200Response>> {
|
|
21526
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateRecurringDefinition(definitionId, updateRecurringDefinitionRequest, options);
|
|
21527
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
21528
|
+
const localVarOperationServerBasePath = operationServerMap['EventsManagerApi.updateRecurringDefinition']?.[localVarOperationServerIndex]?.url;
|
|
21529
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
21530
|
+
},
|
|
21036
21531
|
}
|
|
21037
21532
|
};
|
|
21038
21533
|
|
|
@@ -21070,6 +21565,15 @@ export const EventsManagerApiFactory = function (configuration?: Configuration,
|
|
|
21070
21565
|
deleteEvent(requestParameters: EventsManagerApiDeleteEventRequest, options?: RawAxiosRequestConfig): AxiosPromise<DeleteEventResponse> {
|
|
21071
21566
|
return localVarFp.deleteEvent(requestParameters.eventId, options).then((request) => request(axios, basePath));
|
|
21072
21567
|
},
|
|
21568
|
+
/**
|
|
21569
|
+
* List recurring definitions about to expire within `days` (manager)
|
|
21570
|
+
* @param {EventsManagerApiGetExpiringRecurringDefinitionsRequest} requestParameters Request parameters.
|
|
21571
|
+
* @param {*} [options] Override http request option.
|
|
21572
|
+
* @throws {RequiredError}
|
|
21573
|
+
*/
|
|
21574
|
+
getExpiringRecurringDefinitions(requestParameters: EventsManagerApiGetExpiringRecurringDefinitionsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<Array<RecurringDefinitionResponse>> {
|
|
21575
|
+
return localVarFp.getExpiringRecurringDefinitions(requestParameters.days, options).then((request) => request(axios, basePath));
|
|
21576
|
+
},
|
|
21073
21577
|
/**
|
|
21074
21578
|
* Publish an event (manager)
|
|
21075
21579
|
* @param {EventsManagerApiPublishEventRequest} requestParameters Request parameters.
|
|
@@ -21106,6 +21610,15 @@ export const EventsManagerApiFactory = function (configuration?: Configuration,
|
|
|
21106
21610
|
updatePublishedEvent(requestParameters: EventsManagerApiUpdatePublishedEventRequest, options?: RawAxiosRequestConfig): AxiosPromise<PublishEventResponse> {
|
|
21107
21611
|
return localVarFp.updatePublishedEvent(requestParameters.eventId, requestParameters.updateEventRequest, options).then((request) => request(axios, basePath));
|
|
21108
21612
|
},
|
|
21613
|
+
/**
|
|
21614
|
+
* Update a recurring event definition (manager) and propagate changes to generated Events
|
|
21615
|
+
* @param {EventsManagerApiUpdateRecurringDefinitionRequest} requestParameters Request parameters.
|
|
21616
|
+
* @param {*} [options] Override http request option.
|
|
21617
|
+
* @throws {RequiredError}
|
|
21618
|
+
*/
|
|
21619
|
+
updateRecurringDefinition(requestParameters: EventsManagerApiUpdateRecurringDefinitionRequest, options?: RawAxiosRequestConfig): AxiosPromise<UpdateRecurringDefinition200Response> {
|
|
21620
|
+
return localVarFp.updateRecurringDefinition(requestParameters.definitionId, requestParameters.updateRecurringDefinitionRequest, options).then((request) => request(axios, basePath));
|
|
21621
|
+
},
|
|
21109
21622
|
};
|
|
21110
21623
|
};
|
|
21111
21624
|
|
|
@@ -21151,6 +21664,20 @@ export interface EventsManagerApiDeleteEventRequest {
|
|
|
21151
21664
|
readonly eventId: string
|
|
21152
21665
|
}
|
|
21153
21666
|
|
|
21667
|
+
/**
|
|
21668
|
+
* Request parameters for getExpiringRecurringDefinitions operation in EventsManagerApi.
|
|
21669
|
+
* @export
|
|
21670
|
+
* @interface EventsManagerApiGetExpiringRecurringDefinitionsRequest
|
|
21671
|
+
*/
|
|
21672
|
+
export interface EventsManagerApiGetExpiringRecurringDefinitionsRequest {
|
|
21673
|
+
/**
|
|
21674
|
+
*
|
|
21675
|
+
* @type {number}
|
|
21676
|
+
* @memberof EventsManagerApiGetExpiringRecurringDefinitions
|
|
21677
|
+
*/
|
|
21678
|
+
readonly days?: number
|
|
21679
|
+
}
|
|
21680
|
+
|
|
21154
21681
|
/**
|
|
21155
21682
|
* Request parameters for publishEvent operation in EventsManagerApi.
|
|
21156
21683
|
* @export
|
|
@@ -21221,6 +21748,27 @@ export interface EventsManagerApiUpdatePublishedEventRequest {
|
|
|
21221
21748
|
readonly updateEventRequest: UpdateEventRequest
|
|
21222
21749
|
}
|
|
21223
21750
|
|
|
21751
|
+
/**
|
|
21752
|
+
* Request parameters for updateRecurringDefinition operation in EventsManagerApi.
|
|
21753
|
+
* @export
|
|
21754
|
+
* @interface EventsManagerApiUpdateRecurringDefinitionRequest
|
|
21755
|
+
*/
|
|
21756
|
+
export interface EventsManagerApiUpdateRecurringDefinitionRequest {
|
|
21757
|
+
/**
|
|
21758
|
+
*
|
|
21759
|
+
* @type {string}
|
|
21760
|
+
* @memberof EventsManagerApiUpdateRecurringDefinition
|
|
21761
|
+
*/
|
|
21762
|
+
readonly definitionId: string
|
|
21763
|
+
|
|
21764
|
+
/**
|
|
21765
|
+
*
|
|
21766
|
+
* @type {UpdateRecurringDefinitionRequest}
|
|
21767
|
+
* @memberof EventsManagerApiUpdateRecurringDefinition
|
|
21768
|
+
*/
|
|
21769
|
+
readonly updateRecurringDefinitionRequest: UpdateRecurringDefinitionRequest
|
|
21770
|
+
}
|
|
21771
|
+
|
|
21224
21772
|
/**
|
|
21225
21773
|
* EventsManagerApi - object-oriented interface
|
|
21226
21774
|
* @export
|
|
@@ -21261,6 +21809,17 @@ export class EventsManagerApi extends BaseAPI {
|
|
|
21261
21809
|
return EventsManagerApiFp(this.configuration).deleteEvent(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
|
|
21262
21810
|
}
|
|
21263
21811
|
|
|
21812
|
+
/**
|
|
21813
|
+
* List recurring definitions about to expire within `days` (manager)
|
|
21814
|
+
* @param {EventsManagerApiGetExpiringRecurringDefinitionsRequest} requestParameters Request parameters.
|
|
21815
|
+
* @param {*} [options] Override http request option.
|
|
21816
|
+
* @throws {RequiredError}
|
|
21817
|
+
* @memberof EventsManagerApi
|
|
21818
|
+
*/
|
|
21819
|
+
public getExpiringRecurringDefinitions(requestParameters: EventsManagerApiGetExpiringRecurringDefinitionsRequest = {}, options?: RawAxiosRequestConfig) {
|
|
21820
|
+
return EventsManagerApiFp(this.configuration).getExpiringRecurringDefinitions(requestParameters.days, options).then((request) => request(this.axios, this.basePath));
|
|
21821
|
+
}
|
|
21822
|
+
|
|
21264
21823
|
/**
|
|
21265
21824
|
* Publish an event (manager)
|
|
21266
21825
|
* @param {EventsManagerApiPublishEventRequest} requestParameters Request parameters.
|
|
@@ -21304,6 +21863,17 @@ export class EventsManagerApi extends BaseAPI {
|
|
|
21304
21863
|
public updatePublishedEvent(requestParameters: EventsManagerApiUpdatePublishedEventRequest, options?: RawAxiosRequestConfig) {
|
|
21305
21864
|
return EventsManagerApiFp(this.configuration).updatePublishedEvent(requestParameters.eventId, requestParameters.updateEventRequest, options).then((request) => request(this.axios, this.basePath));
|
|
21306
21865
|
}
|
|
21866
|
+
|
|
21867
|
+
/**
|
|
21868
|
+
* Update a recurring event definition (manager) and propagate changes to generated Events
|
|
21869
|
+
* @param {EventsManagerApiUpdateRecurringDefinitionRequest} requestParameters Request parameters.
|
|
21870
|
+
* @param {*} [options] Override http request option.
|
|
21871
|
+
* @throws {RequiredError}
|
|
21872
|
+
* @memberof EventsManagerApi
|
|
21873
|
+
*/
|
|
21874
|
+
public updateRecurringDefinition(requestParameters: EventsManagerApiUpdateRecurringDefinitionRequest, options?: RawAxiosRequestConfig) {
|
|
21875
|
+
return EventsManagerApiFp(this.configuration).updateRecurringDefinition(requestParameters.definitionId, requestParameters.updateRecurringDefinitionRequest, options).then((request) => request(this.axios, this.basePath));
|
|
21876
|
+
}
|
|
21307
21877
|
}
|
|
21308
21878
|
|
|
21309
21879
|
|
|
@@ -22496,43 +23066,6 @@ export class SportsPublicApi extends BaseAPI {
|
|
|
22496
23066
|
*/
|
|
22497
23067
|
export const SubscriptionsManagerApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
22498
23068
|
return {
|
|
22499
|
-
/**
|
|
22500
|
-
* Supprime (archive) un plan par productId (manager)
|
|
22501
|
-
* @param {string} productId
|
|
22502
|
-
* @param {*} [options] Override http request option.
|
|
22503
|
-
* @throws {RequiredError}
|
|
22504
|
-
*/
|
|
22505
|
-
archivePlan: async (productId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
22506
|
-
// verify required parameter 'productId' is not null or undefined
|
|
22507
|
-
assertParamExists('archivePlan', 'productId', productId)
|
|
22508
|
-
const localVarPath = `/api/subscriptions/plans/{productId}/archive`
|
|
22509
|
-
.replace(`{${"productId"}}`, encodeURIComponent(String(productId)));
|
|
22510
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
22511
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
22512
|
-
let baseOptions;
|
|
22513
|
-
if (configuration) {
|
|
22514
|
-
baseOptions = configuration.baseOptions;
|
|
22515
|
-
}
|
|
22516
|
-
|
|
22517
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
22518
|
-
const localVarHeaderParameter = {} as any;
|
|
22519
|
-
const localVarQueryParameter = {} as any;
|
|
22520
|
-
|
|
22521
|
-
// authentication bearerAuth required
|
|
22522
|
-
// http bearer authentication required
|
|
22523
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
22524
|
-
|
|
22525
|
-
|
|
22526
|
-
|
|
22527
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
22528
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
22529
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
22530
|
-
|
|
22531
|
-
return {
|
|
22532
|
-
url: toPathString(localVarUrlObj),
|
|
22533
|
-
options: localVarRequestOptions,
|
|
22534
|
-
};
|
|
22535
|
-
},
|
|
22536
23069
|
/**
|
|
22537
23070
|
* Crée un nouveau plan d\'abonnement (produit + price) pour le club (manager)
|
|
22538
23071
|
* @param {CreateSubscriptionPlanRequest} createSubscriptionPlanRequest
|
|
@@ -22573,7 +23106,7 @@ export const SubscriptionsManagerApiAxiosParamCreator = function (configuration?
|
|
|
22573
23106
|
};
|
|
22574
23107
|
},
|
|
22575
23108
|
/**
|
|
22576
|
-
* Supprime un plan par productId (manager)
|
|
23109
|
+
* Supprime (archive) un plan par productId (manager)
|
|
22577
23110
|
* @param {string} productId
|
|
22578
23111
|
* @param {*} [options] Override http request option.
|
|
22579
23112
|
* @throws {RequiredError}
|
|
@@ -22658,18 +23191,6 @@ export const SubscriptionsManagerApiAxiosParamCreator = function (configuration?
|
|
|
22658
23191
|
export const SubscriptionsManagerApiFp = function(configuration?: Configuration) {
|
|
22659
23192
|
const localVarAxiosParamCreator = SubscriptionsManagerApiAxiosParamCreator(configuration)
|
|
22660
23193
|
return {
|
|
22661
|
-
/**
|
|
22662
|
-
* Supprime (archive) un plan par productId (manager)
|
|
22663
|
-
* @param {string} productId
|
|
22664
|
-
* @param {*} [options] Override http request option.
|
|
22665
|
-
* @throws {RequiredError}
|
|
22666
|
-
*/
|
|
22667
|
-
async archivePlan(productId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteSubscriptionPlanResponse>> {
|
|
22668
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.archivePlan(productId, options);
|
|
22669
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
22670
|
-
const localVarOperationServerBasePath = operationServerMap['SubscriptionsManagerApi.archivePlan']?.[localVarOperationServerIndex]?.url;
|
|
22671
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
22672
|
-
},
|
|
22673
23194
|
/**
|
|
22674
23195
|
* Crée un nouveau plan d\'abonnement (produit + price) pour le club (manager)
|
|
22675
23196
|
* @param {CreateSubscriptionPlanRequest} createSubscriptionPlanRequest
|
|
@@ -22683,7 +23204,7 @@ export const SubscriptionsManagerApiFp = function(configuration?: Configuration)
|
|
|
22683
23204
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
22684
23205
|
},
|
|
22685
23206
|
/**
|
|
22686
|
-
* Supprime un plan par productId (manager)
|
|
23207
|
+
* Supprime (archive) un plan par productId (manager)
|
|
22687
23208
|
* @param {string} productId
|
|
22688
23209
|
* @param {*} [options] Override http request option.
|
|
22689
23210
|
* @throws {RequiredError}
|
|
@@ -22716,15 +23237,6 @@ export const SubscriptionsManagerApiFp = function(configuration?: Configuration)
|
|
|
22716
23237
|
export const SubscriptionsManagerApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
22717
23238
|
const localVarFp = SubscriptionsManagerApiFp(configuration)
|
|
22718
23239
|
return {
|
|
22719
|
-
/**
|
|
22720
|
-
* Supprime (archive) un plan par productId (manager)
|
|
22721
|
-
* @param {SubscriptionsManagerApiArchivePlanRequest} requestParameters Request parameters.
|
|
22722
|
-
* @param {*} [options] Override http request option.
|
|
22723
|
-
* @throws {RequiredError}
|
|
22724
|
-
*/
|
|
22725
|
-
archivePlan(requestParameters: SubscriptionsManagerApiArchivePlanRequest, options?: RawAxiosRequestConfig): AxiosPromise<DeleteSubscriptionPlanResponse> {
|
|
22726
|
-
return localVarFp.archivePlan(requestParameters.productId, options).then((request) => request(axios, basePath));
|
|
22727
|
-
},
|
|
22728
23240
|
/**
|
|
22729
23241
|
* Crée un nouveau plan d\'abonnement (produit + price) pour le club (manager)
|
|
22730
23242
|
* @param {SubscriptionsManagerApiCreatePlanRequest} requestParameters Request parameters.
|
|
@@ -22735,7 +23247,7 @@ export const SubscriptionsManagerApiFactory = function (configuration?: Configur
|
|
|
22735
23247
|
return localVarFp.createPlan(requestParameters.createSubscriptionPlanRequest, options).then((request) => request(axios, basePath));
|
|
22736
23248
|
},
|
|
22737
23249
|
/**
|
|
22738
|
-
* Supprime un plan par productId (manager)
|
|
23250
|
+
* Supprime (archive) un plan par productId (manager)
|
|
22739
23251
|
* @param {SubscriptionsManagerApiDeletePlanRequest} requestParameters Request parameters.
|
|
22740
23252
|
* @param {*} [options] Override http request option.
|
|
22741
23253
|
* @throws {RequiredError}
|
|
@@ -22755,20 +23267,6 @@ export const SubscriptionsManagerApiFactory = function (configuration?: Configur
|
|
|
22755
23267
|
};
|
|
22756
23268
|
};
|
|
22757
23269
|
|
|
22758
|
-
/**
|
|
22759
|
-
* Request parameters for archivePlan operation in SubscriptionsManagerApi.
|
|
22760
|
-
* @export
|
|
22761
|
-
* @interface SubscriptionsManagerApiArchivePlanRequest
|
|
22762
|
-
*/
|
|
22763
|
-
export interface SubscriptionsManagerApiArchivePlanRequest {
|
|
22764
|
-
/**
|
|
22765
|
-
*
|
|
22766
|
-
* @type {string}
|
|
22767
|
-
* @memberof SubscriptionsManagerApiArchivePlan
|
|
22768
|
-
*/
|
|
22769
|
-
readonly productId: string
|
|
22770
|
-
}
|
|
22771
|
-
|
|
22772
23270
|
/**
|
|
22773
23271
|
* Request parameters for createPlan operation in SubscriptionsManagerApi.
|
|
22774
23272
|
* @export
|
|
@@ -22818,17 +23316,6 @@ export interface SubscriptionsManagerApiUpdatePlanRequest {
|
|
|
22818
23316
|
* @extends {BaseAPI}
|
|
22819
23317
|
*/
|
|
22820
23318
|
export class SubscriptionsManagerApi extends BaseAPI {
|
|
22821
|
-
/**
|
|
22822
|
-
* Supprime (archive) un plan par productId (manager)
|
|
22823
|
-
* @param {SubscriptionsManagerApiArchivePlanRequest} requestParameters Request parameters.
|
|
22824
|
-
* @param {*} [options] Override http request option.
|
|
22825
|
-
* @throws {RequiredError}
|
|
22826
|
-
* @memberof SubscriptionsManagerApi
|
|
22827
|
-
*/
|
|
22828
|
-
public archivePlan(requestParameters: SubscriptionsManagerApiArchivePlanRequest, options?: RawAxiosRequestConfig) {
|
|
22829
|
-
return SubscriptionsManagerApiFp(this.configuration).archivePlan(requestParameters.productId, options).then((request) => request(this.axios, this.basePath));
|
|
22830
|
-
}
|
|
22831
|
-
|
|
22832
23319
|
/**
|
|
22833
23320
|
* Crée un nouveau plan d\'abonnement (produit + price) pour le club (manager)
|
|
22834
23321
|
* @param {SubscriptionsManagerApiCreatePlanRequest} requestParameters Request parameters.
|
|
@@ -22841,7 +23328,7 @@ export class SubscriptionsManagerApi extends BaseAPI {
|
|
|
22841
23328
|
}
|
|
22842
23329
|
|
|
22843
23330
|
/**
|
|
22844
|
-
* Supprime un plan par productId (manager)
|
|
23331
|
+
* Supprime (archive) un plan par productId (manager)
|
|
22845
23332
|
* @param {SubscriptionsManagerApiDeletePlanRequest} requestParameters Request parameters.
|
|
22846
23333
|
* @param {*} [options] Override http request option.
|
|
22847
23334
|
* @throws {RequiredError}
|
|
@@ -24351,6 +24838,49 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
24351
24838
|
|
|
24352
24839
|
|
|
24353
24840
|
|
|
24841
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
24842
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
24843
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
24844
|
+
|
|
24845
|
+
return {
|
|
24846
|
+
url: toPathString(localVarUrlObj),
|
|
24847
|
+
options: localVarRequestOptions,
|
|
24848
|
+
};
|
|
24849
|
+
},
|
|
24850
|
+
/**
|
|
24851
|
+
*
|
|
24852
|
+
* @param {number} [limit]
|
|
24853
|
+
* @param {number} [skip]
|
|
24854
|
+
* @param {*} [options] Override http request option.
|
|
24855
|
+
* @throws {RequiredError}
|
|
24856
|
+
*/
|
|
24857
|
+
getUserEvents: async (limit?: number, skip?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
24858
|
+
const localVarPath = `/api/users/me/events`;
|
|
24859
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
24860
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
24861
|
+
let baseOptions;
|
|
24862
|
+
if (configuration) {
|
|
24863
|
+
baseOptions = configuration.baseOptions;
|
|
24864
|
+
}
|
|
24865
|
+
|
|
24866
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
24867
|
+
const localVarHeaderParameter = {} as any;
|
|
24868
|
+
const localVarQueryParameter = {} as any;
|
|
24869
|
+
|
|
24870
|
+
// authentication bearerAuth required
|
|
24871
|
+
// http bearer authentication required
|
|
24872
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
24873
|
+
|
|
24874
|
+
if (limit !== undefined) {
|
|
24875
|
+
localVarQueryParameter['limit'] = limit;
|
|
24876
|
+
}
|
|
24877
|
+
|
|
24878
|
+
if (skip !== undefined) {
|
|
24879
|
+
localVarQueryParameter['skip'] = skip;
|
|
24880
|
+
}
|
|
24881
|
+
|
|
24882
|
+
|
|
24883
|
+
|
|
24354
24884
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
24355
24885
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
24356
24886
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -25289,6 +25819,19 @@ export const UsersApiFp = function(configuration?: Configuration) {
|
|
|
25289
25819
|
const localVarOperationServerBasePath = operationServerMap['UsersApi.getUserBookings']?.[localVarOperationServerIndex]?.url;
|
|
25290
25820
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
25291
25821
|
},
|
|
25822
|
+
/**
|
|
25823
|
+
*
|
|
25824
|
+
* @param {number} [limit]
|
|
25825
|
+
* @param {number} [skip]
|
|
25826
|
+
* @param {*} [options] Override http request option.
|
|
25827
|
+
* @throws {RequiredError}
|
|
25828
|
+
*/
|
|
25829
|
+
async getUserEvents(limit?: number, skip?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserEventsResponse>> {
|
|
25830
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getUserEvents(limit, skip, options);
|
|
25831
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
25832
|
+
const localVarOperationServerBasePath = operationServerMap['UsersApi.getUserEvents']?.[localVarOperationServerIndex]?.url;
|
|
25833
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
25834
|
+
},
|
|
25292
25835
|
/**
|
|
25293
25836
|
*
|
|
25294
25837
|
* @param {string} id
|
|
@@ -25677,6 +26220,15 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
|
|
|
25677
26220
|
getUserBookings(requestParameters: UsersApiGetUserBookingsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<UserBookingsResponse> {
|
|
25678
26221
|
return localVarFp.getUserBookings(requestParameters.limit, requestParameters.skip, options).then((request) => request(axios, basePath));
|
|
25679
26222
|
},
|
|
26223
|
+
/**
|
|
26224
|
+
*
|
|
26225
|
+
* @param {UsersApiGetUserEventsRequest} requestParameters Request parameters.
|
|
26226
|
+
* @param {*} [options] Override http request option.
|
|
26227
|
+
* @throws {RequiredError}
|
|
26228
|
+
*/
|
|
26229
|
+
getUserEvents(requestParameters: UsersApiGetUserEventsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<UserEventsResponse> {
|
|
26230
|
+
return localVarFp.getUserEvents(requestParameters.limit, requestParameters.skip, options).then((request) => request(axios, basePath));
|
|
26231
|
+
},
|
|
25680
26232
|
/**
|
|
25681
26233
|
*
|
|
25682
26234
|
* @param {UsersApiGetUserProfileByIdRequest} requestParameters Request parameters.
|
|
@@ -26044,6 +26596,27 @@ export interface UsersApiGetUserBookingsRequest {
|
|
|
26044
26596
|
readonly skip?: number
|
|
26045
26597
|
}
|
|
26046
26598
|
|
|
26599
|
+
/**
|
|
26600
|
+
* Request parameters for getUserEvents operation in UsersApi.
|
|
26601
|
+
* @export
|
|
26602
|
+
* @interface UsersApiGetUserEventsRequest
|
|
26603
|
+
*/
|
|
26604
|
+
export interface UsersApiGetUserEventsRequest {
|
|
26605
|
+
/**
|
|
26606
|
+
*
|
|
26607
|
+
* @type {number}
|
|
26608
|
+
* @memberof UsersApiGetUserEvents
|
|
26609
|
+
*/
|
|
26610
|
+
readonly limit?: number
|
|
26611
|
+
|
|
26612
|
+
/**
|
|
26613
|
+
*
|
|
26614
|
+
* @type {number}
|
|
26615
|
+
* @memberof UsersApiGetUserEvents
|
|
26616
|
+
*/
|
|
26617
|
+
readonly skip?: number
|
|
26618
|
+
}
|
|
26619
|
+
|
|
26047
26620
|
/**
|
|
26048
26621
|
* Request parameters for getUserProfileById operation in UsersApi.
|
|
26049
26622
|
* @export
|
|
@@ -26542,6 +27115,17 @@ export class UsersApi extends BaseAPI {
|
|
|
26542
27115
|
return UsersApiFp(this.configuration).getUserBookings(requestParameters.limit, requestParameters.skip, options).then((request) => request(this.axios, this.basePath));
|
|
26543
27116
|
}
|
|
26544
27117
|
|
|
27118
|
+
/**
|
|
27119
|
+
*
|
|
27120
|
+
* @param {UsersApiGetUserEventsRequest} requestParameters Request parameters.
|
|
27121
|
+
* @param {*} [options] Override http request option.
|
|
27122
|
+
* @throws {RequiredError}
|
|
27123
|
+
* @memberof UsersApi
|
|
27124
|
+
*/
|
|
27125
|
+
public getUserEvents(requestParameters: UsersApiGetUserEventsRequest = {}, options?: RawAxiosRequestConfig) {
|
|
27126
|
+
return UsersApiFp(this.configuration).getUserEvents(requestParameters.limit, requestParameters.skip, options).then((request) => request(this.axios, this.basePath));
|
|
27127
|
+
}
|
|
27128
|
+
|
|
26545
27129
|
/**
|
|
26546
27130
|
*
|
|
26547
27131
|
* @param {UsersApiGetUserProfileByIdRequest} requestParameters Request parameters.
|