@tennac-booking/sdk 1.0.175 → 1.0.177
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 +409 -398
- package/README.md +18 -3
- package/api.ts +843 -19
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +656 -9
- package/dist/api.js +273 -1
- 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 +656 -9
- package/dist/esm/api.js +273 -1
- 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/BookingPlayerInfo.md +26 -0
- package/docs/BookingPopulated.md +2 -0
- package/docs/BookingSummary.md +12 -0
- package/docs/BookingsApi.md +57 -2
- package/docs/BookingsUserApi.md +109 -0
- package/docs/CreateOpenBookingRequest.md +6 -0
- package/docs/GetOpenBookingPrice200Response.md +24 -0
- package/docs/GetOpenBookingPriceRequest.md +26 -0
- package/docs/JoinPriceEstimateResponse.md +38 -0
- package/docs/JoinPriceEstimateResponseSubscriptionInfo.md +25 -0
- package/docs/OpenBookingInfo.md +50 -0
- package/docs/OpenBookingPlayerInfo.md +26 -0
- package/docs/OpenBookingSlotInfo.md +24 -0
- package/docs/OpenBookingSportInfo.md +24 -0
- package/docs/{GetOpenBookings200Response.md → OpenBookingsResponse.md} +4 -4
- package/docs/UpdateOpenBooking200Response.md +22 -0
- package/docs/UpdateOpenBookingRequest.md +22 -0
- package/docs/UsersApi.md +55 -0
- package/index.ts +1 -1
- package/package.json +1 -1
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.177
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -671,6 +671,37 @@ export interface BookingPaymentStatusResponseSummary {
|
|
|
671
671
|
*/
|
|
672
672
|
'totalPlayers': number;
|
|
673
673
|
}
|
|
674
|
+
/**
|
|
675
|
+
*
|
|
676
|
+
* @export
|
|
677
|
+
* @interface BookingPlayerInfo
|
|
678
|
+
*/
|
|
679
|
+
export interface BookingPlayerInfo {
|
|
680
|
+
/**
|
|
681
|
+
*
|
|
682
|
+
* @type {string}
|
|
683
|
+
* @memberof BookingPlayerInfo
|
|
684
|
+
*/
|
|
685
|
+
'id': string;
|
|
686
|
+
/**
|
|
687
|
+
*
|
|
688
|
+
* @type {string}
|
|
689
|
+
* @memberof BookingPlayerInfo
|
|
690
|
+
*/
|
|
691
|
+
'firstName'?: string | null;
|
|
692
|
+
/**
|
|
693
|
+
*
|
|
694
|
+
* @type {string}
|
|
695
|
+
* @memberof BookingPlayerInfo
|
|
696
|
+
*/
|
|
697
|
+
'lastName'?: string | null;
|
|
698
|
+
/**
|
|
699
|
+
*
|
|
700
|
+
* @type {string}
|
|
701
|
+
* @memberof BookingPlayerInfo
|
|
702
|
+
*/
|
|
703
|
+
'profilePicture'?: string | null;
|
|
704
|
+
}
|
|
674
705
|
/**
|
|
675
706
|
*
|
|
676
707
|
* @export
|
|
@@ -764,6 +795,12 @@ export interface BookingPopulated {
|
|
|
764
795
|
* @memberof BookingPopulated
|
|
765
796
|
*/
|
|
766
797
|
'players': Array<UserInfo>;
|
|
798
|
+
/**
|
|
799
|
+
* Joueurs inclus à la création de la réservation (pour les créneaux ouverts)
|
|
800
|
+
* @type {Array<UserInfo>}
|
|
801
|
+
* @memberof BookingPopulated
|
|
802
|
+
*/
|
|
803
|
+
'initialPlayers'?: Array<UserInfo>;
|
|
767
804
|
/**
|
|
768
805
|
* Statut des paiements par joueur
|
|
769
806
|
* @type {Array<PaymentByPlayerInfo>}
|
|
@@ -1086,6 +1123,42 @@ export interface BookingSummary {
|
|
|
1086
1123
|
* @memberof BookingSummary
|
|
1087
1124
|
*/
|
|
1088
1125
|
'isPublic': boolean;
|
|
1126
|
+
/**
|
|
1127
|
+
*
|
|
1128
|
+
* @type {boolean}
|
|
1129
|
+
* @memberof BookingSummary
|
|
1130
|
+
*/
|
|
1131
|
+
'isOpen': boolean;
|
|
1132
|
+
/**
|
|
1133
|
+
*
|
|
1134
|
+
* @type {number}
|
|
1135
|
+
* @memberof BookingSummary
|
|
1136
|
+
*/
|
|
1137
|
+
'maxPlayers'?: number | null;
|
|
1138
|
+
/**
|
|
1139
|
+
*
|
|
1140
|
+
* @type {number}
|
|
1141
|
+
* @memberof BookingSummary
|
|
1142
|
+
*/
|
|
1143
|
+
'maxPlayersDesired'?: number | null;
|
|
1144
|
+
/**
|
|
1145
|
+
*
|
|
1146
|
+
* @type {string}
|
|
1147
|
+
* @memberof BookingSummary
|
|
1148
|
+
*/
|
|
1149
|
+
'description'?: string | null;
|
|
1150
|
+
/**
|
|
1151
|
+
*
|
|
1152
|
+
* @type {string}
|
|
1153
|
+
* @memberof BookingSummary
|
|
1154
|
+
*/
|
|
1155
|
+
'minLevel'?: string | null;
|
|
1156
|
+
/**
|
|
1157
|
+
*
|
|
1158
|
+
* @type {Array<BookingPlayerInfo>}
|
|
1159
|
+
* @memberof BookingSummary
|
|
1160
|
+
*/
|
|
1161
|
+
'initialPlayers'?: Array<BookingPlayerInfo>;
|
|
1089
1162
|
/**
|
|
1090
1163
|
*
|
|
1091
1164
|
* @type {string}
|
|
@@ -4589,6 +4662,24 @@ export interface CreateOpenBookingRequest {
|
|
|
4589
4662
|
* @memberof CreateOpenBookingRequest
|
|
4590
4663
|
*/
|
|
4591
4664
|
'maxPlayers': number;
|
|
4665
|
+
/**
|
|
4666
|
+
* Description de la réservation ouverte
|
|
4667
|
+
* @type {string}
|
|
4668
|
+
* @memberof CreateOpenBookingRequest
|
|
4669
|
+
*/
|
|
4670
|
+
'description'?: string;
|
|
4671
|
+
/**
|
|
4672
|
+
* Niveau minimal souhaité pour rejoindre
|
|
4673
|
+
* @type {string}
|
|
4674
|
+
* @memberof CreateOpenBookingRequest
|
|
4675
|
+
*/
|
|
4676
|
+
'minLevel'?: string;
|
|
4677
|
+
/**
|
|
4678
|
+
* IDs des joueurs inclus de base dans la réservation (en plus du créateur)
|
|
4679
|
+
* @type {Array<string>}
|
|
4680
|
+
* @memberof CreateOpenBookingRequest
|
|
4681
|
+
*/
|
|
4682
|
+
'initialPlayerIds'?: Array<string>;
|
|
4592
4683
|
}
|
|
4593
4684
|
|
|
4594
4685
|
|
|
@@ -6272,15 +6363,58 @@ export interface GetInfillPercentagePerPeriod200Response {
|
|
|
6272
6363
|
/**
|
|
6273
6364
|
*
|
|
6274
6365
|
* @export
|
|
6275
|
-
* @interface
|
|
6366
|
+
* @interface GetOpenBookingPrice200Response
|
|
6276
6367
|
*/
|
|
6277
|
-
export interface
|
|
6368
|
+
export interface GetOpenBookingPrice200Response {
|
|
6369
|
+
/**
|
|
6370
|
+
*
|
|
6371
|
+
* @type {number}
|
|
6372
|
+
* @memberof GetOpenBookingPrice200Response
|
|
6373
|
+
*/
|
|
6374
|
+
'totalBasePrice': number;
|
|
6278
6375
|
/**
|
|
6279
6376
|
*
|
|
6280
|
-
* @type {Array<
|
|
6281
|
-
* @memberof
|
|
6377
|
+
* @type {Array<PlayerPrice>}
|
|
6378
|
+
* @memberof GetOpenBookingPrice200Response
|
|
6282
6379
|
*/
|
|
6283
|
-
'
|
|
6380
|
+
'playersPrices': Array<PlayerPrice>;
|
|
6381
|
+
/**
|
|
6382
|
+
*
|
|
6383
|
+
* @type {number}
|
|
6384
|
+
* @memberof GetOpenBookingPrice200Response
|
|
6385
|
+
*/
|
|
6386
|
+
'basePricePerPlayer': number;
|
|
6387
|
+
}
|
|
6388
|
+
/**
|
|
6389
|
+
*
|
|
6390
|
+
* @export
|
|
6391
|
+
* @interface GetOpenBookingPriceRequest
|
|
6392
|
+
*/
|
|
6393
|
+
export interface GetOpenBookingPriceRequest {
|
|
6394
|
+
/**
|
|
6395
|
+
* Construct a type with a set of properties K of type T
|
|
6396
|
+
* @type {{ [key: string]: number; }}
|
|
6397
|
+
* @memberof GetOpenBookingPriceRequest
|
|
6398
|
+
*/
|
|
6399
|
+
'creditsByPlayer'?: { [key: string]: number; };
|
|
6400
|
+
/**
|
|
6401
|
+
*
|
|
6402
|
+
* @type {Array<string>}
|
|
6403
|
+
* @memberof GetOpenBookingPriceRequest
|
|
6404
|
+
*/
|
|
6405
|
+
'initialPlayerIds'?: Array<string>;
|
|
6406
|
+
/**
|
|
6407
|
+
*
|
|
6408
|
+
* @type {number}
|
|
6409
|
+
* @memberof GetOpenBookingPriceRequest
|
|
6410
|
+
*/
|
|
6411
|
+
'maxPlayers': number;
|
|
6412
|
+
/**
|
|
6413
|
+
*
|
|
6414
|
+
* @type {Array<string>}
|
|
6415
|
+
* @memberof GetOpenBookingPriceRequest
|
|
6416
|
+
*/
|
|
6417
|
+
'slotIds': Array<string>;
|
|
6284
6418
|
}
|
|
6285
6419
|
/**
|
|
6286
6420
|
*
|
|
@@ -7446,6 +7580,98 @@ export interface JoinOpenEventResponse {
|
|
|
7446
7580
|
*/
|
|
7447
7581
|
'invoices'?: Array<CheckInEventParticipants200ResponseInvoicesInner>;
|
|
7448
7582
|
}
|
|
7583
|
+
/**
|
|
7584
|
+
*
|
|
7585
|
+
* @export
|
|
7586
|
+
* @interface JoinPriceEstimateResponse
|
|
7587
|
+
*/
|
|
7588
|
+
export interface JoinPriceEstimateResponse {
|
|
7589
|
+
/**
|
|
7590
|
+
* ID de la réservation
|
|
7591
|
+
* @type {string}
|
|
7592
|
+
* @memberof JoinPriceEstimateResponse
|
|
7593
|
+
*/
|
|
7594
|
+
'bookingId': string;
|
|
7595
|
+
/**
|
|
7596
|
+
* Prix de base sans réductions (en centimes)
|
|
7597
|
+
* @type {number}
|
|
7598
|
+
* @memberof JoinPriceEstimateResponse
|
|
7599
|
+
*/
|
|
7600
|
+
'basePrice': number;
|
|
7601
|
+
/**
|
|
7602
|
+
* Prix après application de l\'abonnement (en centimes)
|
|
7603
|
+
* @type {number}
|
|
7604
|
+
* @memberof JoinPriceEstimateResponse
|
|
7605
|
+
*/
|
|
7606
|
+
'priceAfterSubscription': number;
|
|
7607
|
+
/**
|
|
7608
|
+
* Montant de la réduction d\'abonnement (en centimes)
|
|
7609
|
+
* @type {number}
|
|
7610
|
+
* @memberof JoinPriceEstimateResponse
|
|
7611
|
+
*/
|
|
7612
|
+
'subscriptionDiscount': number;
|
|
7613
|
+
/**
|
|
7614
|
+
*
|
|
7615
|
+
* @type {JoinPriceEstimateResponseSubscriptionInfo}
|
|
7616
|
+
* @memberof JoinPriceEstimateResponse
|
|
7617
|
+
*/
|
|
7618
|
+
'subscriptionInfo'?: JoinPriceEstimateResponseSubscriptionInfo;
|
|
7619
|
+
/**
|
|
7620
|
+
* Crédits disponibles pour le joueur dans ce club (en centimes)
|
|
7621
|
+
* @type {number}
|
|
7622
|
+
* @memberof JoinPriceEstimateResponse
|
|
7623
|
+
*/
|
|
7624
|
+
'availableCreditsInCents': number;
|
|
7625
|
+
/**
|
|
7626
|
+
* Crédits qui seront utilisés (en centimes)
|
|
7627
|
+
* @type {number}
|
|
7628
|
+
* @memberof JoinPriceEstimateResponse
|
|
7629
|
+
*/
|
|
7630
|
+
'creditToUseInCents': number;
|
|
7631
|
+
/**
|
|
7632
|
+
* Prix final après toutes les réductions et crédits (en centimes)
|
|
7633
|
+
* @type {number}
|
|
7634
|
+
* @memberof JoinPriceEstimateResponse
|
|
7635
|
+
*/
|
|
7636
|
+
'finalPriceInCents': number;
|
|
7637
|
+
/**
|
|
7638
|
+
* Indique si le joueur peut rejoindre la réservation
|
|
7639
|
+
* @type {boolean}
|
|
7640
|
+
* @memberof JoinPriceEstimateResponse
|
|
7641
|
+
*/
|
|
7642
|
+
'canJoin': boolean;
|
|
7643
|
+
/**
|
|
7644
|
+
* Raison si le joueur ne peut pas rejoindre
|
|
7645
|
+
* @type {string}
|
|
7646
|
+
* @memberof JoinPriceEstimateResponse
|
|
7647
|
+
*/
|
|
7648
|
+
'reason'?: string;
|
|
7649
|
+
}
|
|
7650
|
+
/**
|
|
7651
|
+
* Informations sur l\'abonnement du joueur
|
|
7652
|
+
* @export
|
|
7653
|
+
* @interface JoinPriceEstimateResponseSubscriptionInfo
|
|
7654
|
+
*/
|
|
7655
|
+
export interface JoinPriceEstimateResponseSubscriptionInfo {
|
|
7656
|
+
/**
|
|
7657
|
+
*
|
|
7658
|
+
* @type {string}
|
|
7659
|
+
* @memberof JoinPriceEstimateResponseSubscriptionInfo
|
|
7660
|
+
*/
|
|
7661
|
+
'subscriptionName'?: string;
|
|
7662
|
+
/**
|
|
7663
|
+
*
|
|
7664
|
+
* @type {number}
|
|
7665
|
+
* @memberof JoinPriceEstimateResponseSubscriptionInfo
|
|
7666
|
+
*/
|
|
7667
|
+
'discountPercentage'?: number;
|
|
7668
|
+
/**
|
|
7669
|
+
*
|
|
7670
|
+
* @type {boolean}
|
|
7671
|
+
* @memberof JoinPriceEstimateResponseSubscriptionInfo
|
|
7672
|
+
*/
|
|
7673
|
+
'hasSubscription': boolean;
|
|
7674
|
+
}
|
|
7449
7675
|
/**
|
|
7450
7676
|
*
|
|
7451
7677
|
* @export
|
|
@@ -7933,6 +8159,205 @@ export interface OffPeakRule {
|
|
|
7933
8159
|
*/
|
|
7934
8160
|
'dayOfWeek': number;
|
|
7935
8161
|
}
|
|
8162
|
+
/**
|
|
8163
|
+
*
|
|
8164
|
+
* @export
|
|
8165
|
+
* @interface OpenBookingInfo
|
|
8166
|
+
*/
|
|
8167
|
+
export interface OpenBookingInfo {
|
|
8168
|
+
/**
|
|
8169
|
+
* ID de la réservation
|
|
8170
|
+
* @type {string}
|
|
8171
|
+
* @memberof OpenBookingInfo
|
|
8172
|
+
*/
|
|
8173
|
+
'id': string;
|
|
8174
|
+
/**
|
|
8175
|
+
* ID du club
|
|
8176
|
+
* @type {string}
|
|
8177
|
+
* @memberof OpenBookingInfo
|
|
8178
|
+
*/
|
|
8179
|
+
'clubId': string;
|
|
8180
|
+
/**
|
|
8181
|
+
* ID de l\'utilisateur créateur
|
|
8182
|
+
* @type {string}
|
|
8183
|
+
* @memberof OpenBookingInfo
|
|
8184
|
+
*/
|
|
8185
|
+
'userId': string;
|
|
8186
|
+
/**
|
|
8187
|
+
* Liste des joueurs avec leurs infos
|
|
8188
|
+
* @type {Array<OpenBookingPlayerInfo>}
|
|
8189
|
+
* @memberof OpenBookingInfo
|
|
8190
|
+
*/
|
|
8191
|
+
'players': Array<OpenBookingPlayerInfo>;
|
|
8192
|
+
/**
|
|
8193
|
+
*
|
|
8194
|
+
* @type {BookingStatus}
|
|
8195
|
+
* @memberof OpenBookingInfo
|
|
8196
|
+
*/
|
|
8197
|
+
'status': BookingStatus;
|
|
8198
|
+
/**
|
|
8199
|
+
* Prix total en euros
|
|
8200
|
+
* @type {number}
|
|
8201
|
+
* @memberof OpenBookingInfo
|
|
8202
|
+
*/
|
|
8203
|
+
'totalPrice': number;
|
|
8204
|
+
/**
|
|
8205
|
+
* Informations des créneaux
|
|
8206
|
+
* @type {Array<OpenBookingSlotInfo>}
|
|
8207
|
+
* @memberof OpenBookingInfo
|
|
8208
|
+
*/
|
|
8209
|
+
'slots': Array<OpenBookingSlotInfo>;
|
|
8210
|
+
/**
|
|
8211
|
+
* Indique si le créateur paie pour tous
|
|
8212
|
+
* @type {boolean}
|
|
8213
|
+
* @memberof OpenBookingInfo
|
|
8214
|
+
*/
|
|
8215
|
+
'isCreatorPayingAll': boolean;
|
|
8216
|
+
/**
|
|
8217
|
+
* Date de création
|
|
8218
|
+
* @type {string}
|
|
8219
|
+
* @memberof OpenBookingInfo
|
|
8220
|
+
*/
|
|
8221
|
+
'createdAt': string;
|
|
8222
|
+
/**
|
|
8223
|
+
* Date de mise à jour
|
|
8224
|
+
* @type {string}
|
|
8225
|
+
* @memberof OpenBookingInfo
|
|
8226
|
+
*/
|
|
8227
|
+
'updatedAt': string;
|
|
8228
|
+
/**
|
|
8229
|
+
*
|
|
8230
|
+
* @type {OpenBookingSportInfo}
|
|
8231
|
+
* @memberof OpenBookingInfo
|
|
8232
|
+
*/
|
|
8233
|
+
'sport'?: OpenBookingSportInfo;
|
|
8234
|
+
/**
|
|
8235
|
+
* Niveau minimal souhaité
|
|
8236
|
+
* @type {string}
|
|
8237
|
+
* @memberof OpenBookingInfo
|
|
8238
|
+
*/
|
|
8239
|
+
'minLevel'?: string;
|
|
8240
|
+
/**
|
|
8241
|
+
* Description de la réservation
|
|
8242
|
+
* @type {string}
|
|
8243
|
+
* @memberof OpenBookingInfo
|
|
8244
|
+
*/
|
|
8245
|
+
'description'?: string;
|
|
8246
|
+
/**
|
|
8247
|
+
* Nombre maximal de joueurs
|
|
8248
|
+
* @type {number}
|
|
8249
|
+
* @memberof OpenBookingInfo
|
|
8250
|
+
*/
|
|
8251
|
+
'maxPlayers'?: number;
|
|
8252
|
+
/**
|
|
8253
|
+
* Nombre de joueurs actuels
|
|
8254
|
+
* @type {number}
|
|
8255
|
+
* @memberof OpenBookingInfo
|
|
8256
|
+
*/
|
|
8257
|
+
'currentPlayersCount': number;
|
|
8258
|
+
/**
|
|
8259
|
+
* Prix de base pour rejoindre la réservation (en centimes)
|
|
8260
|
+
* @type {number}
|
|
8261
|
+
* @memberof OpenBookingInfo
|
|
8262
|
+
*/
|
|
8263
|
+
'basePriceToJoin'?: number;
|
|
8264
|
+
}
|
|
8265
|
+
|
|
8266
|
+
|
|
8267
|
+
/**
|
|
8268
|
+
*
|
|
8269
|
+
* @export
|
|
8270
|
+
* @interface OpenBookingPlayerInfo
|
|
8271
|
+
*/
|
|
8272
|
+
export interface OpenBookingPlayerInfo {
|
|
8273
|
+
/**
|
|
8274
|
+
* ID du joueur
|
|
8275
|
+
* @type {string}
|
|
8276
|
+
* @memberof OpenBookingPlayerInfo
|
|
8277
|
+
*/
|
|
8278
|
+
'id': string;
|
|
8279
|
+
/**
|
|
8280
|
+
* Prénom
|
|
8281
|
+
* @type {string}
|
|
8282
|
+
* @memberof OpenBookingPlayerInfo
|
|
8283
|
+
*/
|
|
8284
|
+
'firstName': string;
|
|
8285
|
+
/**
|
|
8286
|
+
* Nom
|
|
8287
|
+
* @type {string}
|
|
8288
|
+
* @memberof OpenBookingPlayerInfo
|
|
8289
|
+
*/
|
|
8290
|
+
'lastName': string;
|
|
8291
|
+
/**
|
|
8292
|
+
* Photo de profil
|
|
8293
|
+
* @type {string}
|
|
8294
|
+
* @memberof OpenBookingPlayerInfo
|
|
8295
|
+
*/
|
|
8296
|
+
'profilePicture'?: string;
|
|
8297
|
+
}
|
|
8298
|
+
/**
|
|
8299
|
+
*
|
|
8300
|
+
* @export
|
|
8301
|
+
* @interface OpenBookingSlotInfo
|
|
8302
|
+
*/
|
|
8303
|
+
export interface OpenBookingSlotInfo {
|
|
8304
|
+
/**
|
|
8305
|
+
* ID du slot
|
|
8306
|
+
* @type {string}
|
|
8307
|
+
* @memberof OpenBookingSlotInfo
|
|
8308
|
+
*/
|
|
8309
|
+
'id': string;
|
|
8310
|
+
/**
|
|
8311
|
+
* Date de début ISO
|
|
8312
|
+
* @type {string}
|
|
8313
|
+
* @memberof OpenBookingSlotInfo
|
|
8314
|
+
*/
|
|
8315
|
+
'startDate': string;
|
|
8316
|
+
/**
|
|
8317
|
+
* Date de fin ISO
|
|
8318
|
+
* @type {string}
|
|
8319
|
+
* @memberof OpenBookingSlotInfo
|
|
8320
|
+
*/
|
|
8321
|
+
'endDate': string;
|
|
8322
|
+
}
|
|
8323
|
+
/**
|
|
8324
|
+
*
|
|
8325
|
+
* @export
|
|
8326
|
+
* @interface OpenBookingSportInfo
|
|
8327
|
+
*/
|
|
8328
|
+
export interface OpenBookingSportInfo {
|
|
8329
|
+
/**
|
|
8330
|
+
* ID du sport
|
|
8331
|
+
* @type {string}
|
|
8332
|
+
* @memberof OpenBookingSportInfo
|
|
8333
|
+
*/
|
|
8334
|
+
'id': string;
|
|
8335
|
+
/**
|
|
8336
|
+
* Clé du sport
|
|
8337
|
+
* @type {string}
|
|
8338
|
+
* @memberof OpenBookingSportInfo
|
|
8339
|
+
*/
|
|
8340
|
+
'key': string;
|
|
8341
|
+
/**
|
|
8342
|
+
* Nom du sport
|
|
8343
|
+
* @type {string}
|
|
8344
|
+
* @memberof OpenBookingSportInfo
|
|
8345
|
+
*/
|
|
8346
|
+
'name': string;
|
|
8347
|
+
}
|
|
8348
|
+
/**
|
|
8349
|
+
*
|
|
8350
|
+
* @export
|
|
8351
|
+
* @interface OpenBookingsResponse
|
|
8352
|
+
*/
|
|
8353
|
+
export interface OpenBookingsResponse {
|
|
8354
|
+
/**
|
|
8355
|
+
* Liste des réservations ouvertes
|
|
8356
|
+
* @type {Array<OpenBookingInfo>}
|
|
8357
|
+
* @memberof OpenBookingsResponse
|
|
8358
|
+
*/
|
|
8359
|
+
'bookings': Array<OpenBookingInfo>;
|
|
8360
|
+
}
|
|
7936
8361
|
/**
|
|
7937
8362
|
*
|
|
7938
8363
|
* @export
|
|
@@ -11875,6 +12300,44 @@ export interface UpdateLevelBySportsRequestBody {
|
|
|
11875
12300
|
*/
|
|
11876
12301
|
'levelBySports': Array<LevelBySportEntry>;
|
|
11877
12302
|
}
|
|
12303
|
+
/**
|
|
12304
|
+
*
|
|
12305
|
+
* @export
|
|
12306
|
+
* @interface UpdateOpenBooking200Response
|
|
12307
|
+
*/
|
|
12308
|
+
export interface UpdateOpenBooking200Response {
|
|
12309
|
+
/**
|
|
12310
|
+
*
|
|
12311
|
+
* @type {BookingInfo}
|
|
12312
|
+
* @memberof UpdateOpenBooking200Response
|
|
12313
|
+
*/
|
|
12314
|
+
'booking': BookingInfo;
|
|
12315
|
+
/**
|
|
12316
|
+
*
|
|
12317
|
+
* @type {string}
|
|
12318
|
+
* @memberof UpdateOpenBooking200Response
|
|
12319
|
+
*/
|
|
12320
|
+
'message': string;
|
|
12321
|
+
}
|
|
12322
|
+
/**
|
|
12323
|
+
*
|
|
12324
|
+
* @export
|
|
12325
|
+
* @interface UpdateOpenBookingRequest
|
|
12326
|
+
*/
|
|
12327
|
+
export interface UpdateOpenBookingRequest {
|
|
12328
|
+
/**
|
|
12329
|
+
* Description de la réservation ouverte
|
|
12330
|
+
* @type {string}
|
|
12331
|
+
* @memberof UpdateOpenBookingRequest
|
|
12332
|
+
*/
|
|
12333
|
+
'description'?: string;
|
|
12334
|
+
/**
|
|
12335
|
+
* Niveau minimal souhaité pour rejoindre
|
|
12336
|
+
* @type {string}
|
|
12337
|
+
* @memberof UpdateOpenBookingRequest
|
|
12338
|
+
*/
|
|
12339
|
+
'minLevel'?: string;
|
|
12340
|
+
}
|
|
11878
12341
|
/**
|
|
11879
12342
|
*
|
|
11880
12343
|
* @export
|
|
@@ -13503,7 +13966,42 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
13503
13966
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13504
13967
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13505
13968
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
13506
|
-
localVarRequestOptions.data = serializeDataIfNeeded(bookingPriceBody, localVarRequestOptions, configuration)
|
|
13969
|
+
localVarRequestOptions.data = serializeDataIfNeeded(bookingPriceBody, localVarRequestOptions, configuration)
|
|
13970
|
+
|
|
13971
|
+
return {
|
|
13972
|
+
url: toPathString(localVarUrlObj),
|
|
13973
|
+
options: localVarRequestOptions,
|
|
13974
|
+
};
|
|
13975
|
+
},
|
|
13976
|
+
/**
|
|
13977
|
+
* Calculer le prix d\'une réservation pour un invité (sans authentification)
|
|
13978
|
+
* @param {GetGuestBookingPriceRequest} getGuestBookingPriceRequest
|
|
13979
|
+
* @param {*} [options] Override http request option.
|
|
13980
|
+
* @throws {RequiredError}
|
|
13981
|
+
*/
|
|
13982
|
+
getGuestBookingPrice: async (getGuestBookingPriceRequest: GetGuestBookingPriceRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
13983
|
+
// verify required parameter 'getGuestBookingPriceRequest' is not null or undefined
|
|
13984
|
+
assertParamExists('getGuestBookingPrice', 'getGuestBookingPriceRequest', getGuestBookingPriceRequest)
|
|
13985
|
+
const localVarPath = `/api/bookings/guest/booking-price`;
|
|
13986
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13987
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13988
|
+
let baseOptions;
|
|
13989
|
+
if (configuration) {
|
|
13990
|
+
baseOptions = configuration.baseOptions;
|
|
13991
|
+
}
|
|
13992
|
+
|
|
13993
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
13994
|
+
const localVarHeaderParameter = {} as any;
|
|
13995
|
+
const localVarQueryParameter = {} as any;
|
|
13996
|
+
|
|
13997
|
+
|
|
13998
|
+
|
|
13999
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
14000
|
+
|
|
14001
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
14002
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14003
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
14004
|
+
localVarRequestOptions.data = serializeDataIfNeeded(getGuestBookingPriceRequest, localVarRequestOptions, configuration)
|
|
13507
14005
|
|
|
13508
14006
|
return {
|
|
13509
14007
|
url: toPathString(localVarUrlObj),
|
|
@@ -13511,15 +14009,17 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
13511
14009
|
};
|
|
13512
14010
|
},
|
|
13513
14011
|
/**
|
|
13514
|
-
*
|
|
13515
|
-
* @param {
|
|
14012
|
+
* Estimation complète du prix pour rejoindre une réservation ouverte Retourne tous les détails: prix de base, réductions, crédits disponibles, et prix final
|
|
14013
|
+
* @param {string} bookingId
|
|
14014
|
+
* @param {number} [creditToUseInCents]
|
|
13516
14015
|
* @param {*} [options] Override http request option.
|
|
13517
14016
|
* @throws {RequiredError}
|
|
13518
14017
|
*/
|
|
13519
|
-
|
|
13520
|
-
// verify required parameter '
|
|
13521
|
-
assertParamExists('
|
|
13522
|
-
const localVarPath = `/api/bookings/
|
|
14018
|
+
getJoinPriceEstimate: async (bookingId: string, creditToUseInCents?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
14019
|
+
// verify required parameter 'bookingId' is not null or undefined
|
|
14020
|
+
assertParamExists('getJoinPriceEstimate', 'bookingId', bookingId)
|
|
14021
|
+
const localVarPath = `/api/bookings/{bookingId}/join-price-estimate`
|
|
14022
|
+
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
13523
14023
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13524
14024
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13525
14025
|
let baseOptions;
|
|
@@ -13527,18 +14027,23 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
13527
14027
|
baseOptions = configuration.baseOptions;
|
|
13528
14028
|
}
|
|
13529
14029
|
|
|
13530
|
-
const localVarRequestOptions = { method: '
|
|
14030
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
13531
14031
|
const localVarHeaderParameter = {} as any;
|
|
13532
14032
|
const localVarQueryParameter = {} as any;
|
|
13533
14033
|
|
|
14034
|
+
// authentication bearerAuth required
|
|
14035
|
+
// http bearer authentication required
|
|
14036
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
14037
|
+
|
|
14038
|
+
if (creditToUseInCents !== undefined) {
|
|
14039
|
+
localVarQueryParameter['creditToUseInCents'] = creditToUseInCents;
|
|
14040
|
+
}
|
|
13534
14041
|
|
|
13535
|
-
|
|
13536
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
13537
14042
|
|
|
14043
|
+
|
|
13538
14044
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13539
14045
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13540
14046
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
13541
|
-
localVarRequestOptions.data = serializeDataIfNeeded(getGuestBookingPriceRequest, localVarRequestOptions, configuration)
|
|
13542
14047
|
|
|
13543
14048
|
return {
|
|
13544
14049
|
url: toPathString(localVarUrlObj),
|
|
@@ -13855,6 +14360,19 @@ export const BookingsApiFp = function(configuration?: Configuration) {
|
|
|
13855
14360
|
const localVarOperationServerBasePath = operationServerMap['BookingsApi.getGuestBookingPrice']?.[localVarOperationServerIndex]?.url;
|
|
13856
14361
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13857
14362
|
},
|
|
14363
|
+
/**
|
|
14364
|
+
* Estimation complète du prix pour rejoindre une réservation ouverte Retourne tous les détails: prix de base, réductions, crédits disponibles, et prix final
|
|
14365
|
+
* @param {string} bookingId
|
|
14366
|
+
* @param {number} [creditToUseInCents]
|
|
14367
|
+
* @param {*} [options] Override http request option.
|
|
14368
|
+
* @throws {RequiredError}
|
|
14369
|
+
*/
|
|
14370
|
+
async getJoinPriceEstimate(bookingId: string, creditToUseInCents?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JoinPriceEstimateResponse>> {
|
|
14371
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getJoinPriceEstimate(bookingId, creditToUseInCents, options);
|
|
14372
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
14373
|
+
const localVarOperationServerBasePath = operationServerMap['BookingsApi.getJoinPriceEstimate']?.[localVarOperationServerIndex]?.url;
|
|
14374
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14375
|
+
},
|
|
13858
14376
|
/**
|
|
13859
14377
|
* Estimer simplement le prix à payer pour rejoindre une réservation ouverte
|
|
13860
14378
|
* @param {string} bookingId
|
|
@@ -13873,7 +14391,7 @@ export const BookingsApiFp = function(configuration?: Configuration) {
|
|
|
13873
14391
|
* @param {*} [options] Override http request option.
|
|
13874
14392
|
* @throws {RequiredError}
|
|
13875
14393
|
*/
|
|
13876
|
-
async getOpenBookings(clubId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
14394
|
+
async getOpenBookings(clubId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OpenBookingsResponse>> {
|
|
13877
14395
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getOpenBookings(clubId, options);
|
|
13878
14396
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
13879
14397
|
const localVarOperationServerBasePath = operationServerMap['BookingsApi.getOpenBookings']?.[localVarOperationServerIndex]?.url;
|
|
@@ -13981,6 +14499,15 @@ export const BookingsApiFactory = function (configuration?: Configuration, baseP
|
|
|
13981
14499
|
getGuestBookingPrice(requestParameters: BookingsApiGetGuestBookingPriceRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetGuestBookingPrice200Response> {
|
|
13982
14500
|
return localVarFp.getGuestBookingPrice(requestParameters.getGuestBookingPriceRequest, options).then((request) => request(axios, basePath));
|
|
13983
14501
|
},
|
|
14502
|
+
/**
|
|
14503
|
+
* Estimation complète du prix pour rejoindre une réservation ouverte Retourne tous les détails: prix de base, réductions, crédits disponibles, et prix final
|
|
14504
|
+
* @param {BookingsApiGetJoinPriceEstimateRequest} requestParameters Request parameters.
|
|
14505
|
+
* @param {*} [options] Override http request option.
|
|
14506
|
+
* @throws {RequiredError}
|
|
14507
|
+
*/
|
|
14508
|
+
getJoinPriceEstimate(requestParameters: BookingsApiGetJoinPriceEstimateRequest, options?: RawAxiosRequestConfig): AxiosPromise<JoinPriceEstimateResponse> {
|
|
14509
|
+
return localVarFp.getJoinPriceEstimate(requestParameters.bookingId, requestParameters.creditToUseInCents, options).then((request) => request(axios, basePath));
|
|
14510
|
+
},
|
|
13984
14511
|
/**
|
|
13985
14512
|
* Estimer simplement le prix à payer pour rejoindre une réservation ouverte
|
|
13986
14513
|
* @param {BookingsApiGetOpenBookingJoinPriceRequest} requestParameters Request parameters.
|
|
@@ -13996,7 +14523,7 @@ export const BookingsApiFactory = function (configuration?: Configuration, baseP
|
|
|
13996
14523
|
* @param {*} [options] Override http request option.
|
|
13997
14524
|
* @throws {RequiredError}
|
|
13998
14525
|
*/
|
|
13999
|
-
getOpenBookings(requestParameters: BookingsApiGetOpenBookingsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
14526
|
+
getOpenBookings(requestParameters: BookingsApiGetOpenBookingsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<OpenBookingsResponse> {
|
|
14000
14527
|
return localVarFp.getOpenBookings(requestParameters.clubId, options).then((request) => request(axios, basePath));
|
|
14001
14528
|
},
|
|
14002
14529
|
/**
|
|
@@ -14106,6 +14633,27 @@ export interface BookingsApiGetGuestBookingPriceRequest {
|
|
|
14106
14633
|
readonly getGuestBookingPriceRequest: GetGuestBookingPriceRequest
|
|
14107
14634
|
}
|
|
14108
14635
|
|
|
14636
|
+
/**
|
|
14637
|
+
* Request parameters for getJoinPriceEstimate operation in BookingsApi.
|
|
14638
|
+
* @export
|
|
14639
|
+
* @interface BookingsApiGetJoinPriceEstimateRequest
|
|
14640
|
+
*/
|
|
14641
|
+
export interface BookingsApiGetJoinPriceEstimateRequest {
|
|
14642
|
+
/**
|
|
14643
|
+
*
|
|
14644
|
+
* @type {string}
|
|
14645
|
+
* @memberof BookingsApiGetJoinPriceEstimate
|
|
14646
|
+
*/
|
|
14647
|
+
readonly bookingId: string
|
|
14648
|
+
|
|
14649
|
+
/**
|
|
14650
|
+
*
|
|
14651
|
+
* @type {number}
|
|
14652
|
+
* @memberof BookingsApiGetJoinPriceEstimate
|
|
14653
|
+
*/
|
|
14654
|
+
readonly creditToUseInCents?: number
|
|
14655
|
+
}
|
|
14656
|
+
|
|
14109
14657
|
/**
|
|
14110
14658
|
* Request parameters for getOpenBookingJoinPrice operation in BookingsApi.
|
|
14111
14659
|
* @export
|
|
@@ -14315,6 +14863,17 @@ export class BookingsApi extends BaseAPI {
|
|
|
14315
14863
|
return BookingsApiFp(this.configuration).getGuestBookingPrice(requestParameters.getGuestBookingPriceRequest, options).then((request) => request(this.axios, this.basePath));
|
|
14316
14864
|
}
|
|
14317
14865
|
|
|
14866
|
+
/**
|
|
14867
|
+
* Estimation complète du prix pour rejoindre une réservation ouverte Retourne tous les détails: prix de base, réductions, crédits disponibles, et prix final
|
|
14868
|
+
* @param {BookingsApiGetJoinPriceEstimateRequest} requestParameters Request parameters.
|
|
14869
|
+
* @param {*} [options] Override http request option.
|
|
14870
|
+
* @throws {RequiredError}
|
|
14871
|
+
* @memberof BookingsApi
|
|
14872
|
+
*/
|
|
14873
|
+
public getJoinPriceEstimate(requestParameters: BookingsApiGetJoinPriceEstimateRequest, options?: RawAxiosRequestConfig) {
|
|
14874
|
+
return BookingsApiFp(this.configuration).getJoinPriceEstimate(requestParameters.bookingId, requestParameters.creditToUseInCents, options).then((request) => request(this.axios, this.basePath));
|
|
14875
|
+
}
|
|
14876
|
+
|
|
14318
14877
|
/**
|
|
14319
14878
|
* Estimer simplement le prix à payer pour rejoindre une réservation ouverte
|
|
14320
14879
|
* @param {BookingsApiGetOpenBookingJoinPriceRequest} requestParameters Request parameters.
|
|
@@ -15480,6 +16039,88 @@ export const BookingsUserApiAxiosParamCreator = function (configuration?: Config
|
|
|
15480
16039
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
15481
16040
|
localVarRequestOptions.data = serializeDataIfNeeded(createOpenBookingRequest, localVarRequestOptions, configuration)
|
|
15482
16041
|
|
|
16042
|
+
return {
|
|
16043
|
+
url: toPathString(localVarUrlObj),
|
|
16044
|
+
options: localVarRequestOptions,
|
|
16045
|
+
};
|
|
16046
|
+
},
|
|
16047
|
+
/**
|
|
16048
|
+
* Calculer le prix d\'une réservation ouverte avec joueurs initiaux
|
|
16049
|
+
* @param {GetOpenBookingPriceRequest} getOpenBookingPriceRequest
|
|
16050
|
+
* @param {*} [options] Override http request option.
|
|
16051
|
+
* @throws {RequiredError}
|
|
16052
|
+
*/
|
|
16053
|
+
getOpenBookingPrice: async (getOpenBookingPriceRequest: GetOpenBookingPriceRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
16054
|
+
// verify required parameter 'getOpenBookingPriceRequest' is not null or undefined
|
|
16055
|
+
assertParamExists('getOpenBookingPrice', 'getOpenBookingPriceRequest', getOpenBookingPriceRequest)
|
|
16056
|
+
const localVarPath = `/api/bookings/open/booking-price`;
|
|
16057
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16058
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16059
|
+
let baseOptions;
|
|
16060
|
+
if (configuration) {
|
|
16061
|
+
baseOptions = configuration.baseOptions;
|
|
16062
|
+
}
|
|
16063
|
+
|
|
16064
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
16065
|
+
const localVarHeaderParameter = {} as any;
|
|
16066
|
+
const localVarQueryParameter = {} as any;
|
|
16067
|
+
|
|
16068
|
+
// authentication bearerAuth required
|
|
16069
|
+
// http bearer authentication required
|
|
16070
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
16071
|
+
|
|
16072
|
+
|
|
16073
|
+
|
|
16074
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
16075
|
+
|
|
16076
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16077
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16078
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
16079
|
+
localVarRequestOptions.data = serializeDataIfNeeded(getOpenBookingPriceRequest, localVarRequestOptions, configuration)
|
|
16080
|
+
|
|
16081
|
+
return {
|
|
16082
|
+
url: toPathString(localVarUrlObj),
|
|
16083
|
+
options: localVarRequestOptions,
|
|
16084
|
+
};
|
|
16085
|
+
},
|
|
16086
|
+
/**
|
|
16087
|
+
* Mettre à jour une réservation ouverte (description et niveau minimal)
|
|
16088
|
+
* @param {string} bookingId
|
|
16089
|
+
* @param {UpdateOpenBookingRequest} updateOpenBookingRequest
|
|
16090
|
+
* @param {*} [options] Override http request option.
|
|
16091
|
+
* @throws {RequiredError}
|
|
16092
|
+
*/
|
|
16093
|
+
updateOpenBooking: async (bookingId: string, updateOpenBookingRequest: UpdateOpenBookingRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
16094
|
+
// verify required parameter 'bookingId' is not null or undefined
|
|
16095
|
+
assertParamExists('updateOpenBooking', 'bookingId', bookingId)
|
|
16096
|
+
// verify required parameter 'updateOpenBookingRequest' is not null or undefined
|
|
16097
|
+
assertParamExists('updateOpenBooking', 'updateOpenBookingRequest', updateOpenBookingRequest)
|
|
16098
|
+
const localVarPath = `/api/bookings/{bookingId}/open`
|
|
16099
|
+
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
16100
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16101
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16102
|
+
let baseOptions;
|
|
16103
|
+
if (configuration) {
|
|
16104
|
+
baseOptions = configuration.baseOptions;
|
|
16105
|
+
}
|
|
16106
|
+
|
|
16107
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
16108
|
+
const localVarHeaderParameter = {} as any;
|
|
16109
|
+
const localVarQueryParameter = {} as any;
|
|
16110
|
+
|
|
16111
|
+
// authentication bearerAuth required
|
|
16112
|
+
// http bearer authentication required
|
|
16113
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
16114
|
+
|
|
16115
|
+
|
|
16116
|
+
|
|
16117
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
16118
|
+
|
|
16119
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16120
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16121
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
16122
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateOpenBookingRequest, localVarRequestOptions, configuration)
|
|
16123
|
+
|
|
15483
16124
|
return {
|
|
15484
16125
|
url: toPathString(localVarUrlObj),
|
|
15485
16126
|
options: localVarRequestOptions,
|
|
@@ -15531,6 +16172,31 @@ export const BookingsUserApiFp = function(configuration?: Configuration) {
|
|
|
15531
16172
|
const localVarOperationServerBasePath = operationServerMap['BookingsUserApi.createOpenBooking']?.[localVarOperationServerIndex]?.url;
|
|
15532
16173
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15533
16174
|
},
|
|
16175
|
+
/**
|
|
16176
|
+
* Calculer le prix d\'une réservation ouverte avec joueurs initiaux
|
|
16177
|
+
* @param {GetOpenBookingPriceRequest} getOpenBookingPriceRequest
|
|
16178
|
+
* @param {*} [options] Override http request option.
|
|
16179
|
+
* @throws {RequiredError}
|
|
16180
|
+
*/
|
|
16181
|
+
async getOpenBookingPrice(getOpenBookingPriceRequest: GetOpenBookingPriceRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetOpenBookingPrice200Response>> {
|
|
16182
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getOpenBookingPrice(getOpenBookingPriceRequest, options);
|
|
16183
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
16184
|
+
const localVarOperationServerBasePath = operationServerMap['BookingsUserApi.getOpenBookingPrice']?.[localVarOperationServerIndex]?.url;
|
|
16185
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16186
|
+
},
|
|
16187
|
+
/**
|
|
16188
|
+
* Mettre à jour une réservation ouverte (description et niveau minimal)
|
|
16189
|
+
* @param {string} bookingId
|
|
16190
|
+
* @param {UpdateOpenBookingRequest} updateOpenBookingRequest
|
|
16191
|
+
* @param {*} [options] Override http request option.
|
|
16192
|
+
* @throws {RequiredError}
|
|
16193
|
+
*/
|
|
16194
|
+
async updateOpenBooking(bookingId: string, updateOpenBookingRequest: UpdateOpenBookingRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateOpenBooking200Response>> {
|
|
16195
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateOpenBooking(bookingId, updateOpenBookingRequest, options);
|
|
16196
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
16197
|
+
const localVarOperationServerBasePath = operationServerMap['BookingsUserApi.updateOpenBooking']?.[localVarOperationServerIndex]?.url;
|
|
16198
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16199
|
+
},
|
|
15534
16200
|
}
|
|
15535
16201
|
};
|
|
15536
16202
|
|
|
@@ -15568,6 +16234,24 @@ export const BookingsUserApiFactory = function (configuration?: Configuration, b
|
|
|
15568
16234
|
createOpenBooking(requestParameters: BookingsUserApiCreateOpenBookingRequest, options?: RawAxiosRequestConfig): AxiosPromise<BookingResponse> {
|
|
15569
16235
|
return localVarFp.createOpenBooking(requestParameters.createOpenBookingRequest, options).then((request) => request(axios, basePath));
|
|
15570
16236
|
},
|
|
16237
|
+
/**
|
|
16238
|
+
* Calculer le prix d\'une réservation ouverte avec joueurs initiaux
|
|
16239
|
+
* @param {BookingsUserApiGetOpenBookingPriceRequest} requestParameters Request parameters.
|
|
16240
|
+
* @param {*} [options] Override http request option.
|
|
16241
|
+
* @throws {RequiredError}
|
|
16242
|
+
*/
|
|
16243
|
+
getOpenBookingPrice(requestParameters: BookingsUserApiGetOpenBookingPriceRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetOpenBookingPrice200Response> {
|
|
16244
|
+
return localVarFp.getOpenBookingPrice(requestParameters.getOpenBookingPriceRequest, options).then((request) => request(axios, basePath));
|
|
16245
|
+
},
|
|
16246
|
+
/**
|
|
16247
|
+
* Mettre à jour une réservation ouverte (description et niveau minimal)
|
|
16248
|
+
* @param {BookingsUserApiUpdateOpenBookingRequest} requestParameters Request parameters.
|
|
16249
|
+
* @param {*} [options] Override http request option.
|
|
16250
|
+
* @throws {RequiredError}
|
|
16251
|
+
*/
|
|
16252
|
+
updateOpenBooking(requestParameters: BookingsUserApiUpdateOpenBookingRequest, options?: RawAxiosRequestConfig): AxiosPromise<UpdateOpenBooking200Response> {
|
|
16253
|
+
return localVarFp.updateOpenBooking(requestParameters.bookingId, requestParameters.updateOpenBookingRequest, options).then((request) => request(axios, basePath));
|
|
16254
|
+
},
|
|
15571
16255
|
};
|
|
15572
16256
|
};
|
|
15573
16257
|
|
|
@@ -15613,6 +16297,41 @@ export interface BookingsUserApiCreateOpenBookingRequest {
|
|
|
15613
16297
|
readonly createOpenBookingRequest: CreateOpenBookingRequest
|
|
15614
16298
|
}
|
|
15615
16299
|
|
|
16300
|
+
/**
|
|
16301
|
+
* Request parameters for getOpenBookingPrice operation in BookingsUserApi.
|
|
16302
|
+
* @export
|
|
16303
|
+
* @interface BookingsUserApiGetOpenBookingPriceRequest
|
|
16304
|
+
*/
|
|
16305
|
+
export interface BookingsUserApiGetOpenBookingPriceRequest {
|
|
16306
|
+
/**
|
|
16307
|
+
*
|
|
16308
|
+
* @type {GetOpenBookingPriceRequest}
|
|
16309
|
+
* @memberof BookingsUserApiGetOpenBookingPrice
|
|
16310
|
+
*/
|
|
16311
|
+
readonly getOpenBookingPriceRequest: GetOpenBookingPriceRequest
|
|
16312
|
+
}
|
|
16313
|
+
|
|
16314
|
+
/**
|
|
16315
|
+
* Request parameters for updateOpenBooking operation in BookingsUserApi.
|
|
16316
|
+
* @export
|
|
16317
|
+
* @interface BookingsUserApiUpdateOpenBookingRequest
|
|
16318
|
+
*/
|
|
16319
|
+
export interface BookingsUserApiUpdateOpenBookingRequest {
|
|
16320
|
+
/**
|
|
16321
|
+
*
|
|
16322
|
+
* @type {string}
|
|
16323
|
+
* @memberof BookingsUserApiUpdateOpenBooking
|
|
16324
|
+
*/
|
|
16325
|
+
readonly bookingId: string
|
|
16326
|
+
|
|
16327
|
+
/**
|
|
16328
|
+
*
|
|
16329
|
+
* @type {UpdateOpenBookingRequest}
|
|
16330
|
+
* @memberof BookingsUserApiUpdateOpenBooking
|
|
16331
|
+
*/
|
|
16332
|
+
readonly updateOpenBookingRequest: UpdateOpenBookingRequest
|
|
16333
|
+
}
|
|
16334
|
+
|
|
15616
16335
|
/**
|
|
15617
16336
|
* BookingsUserApi - object-oriented interface
|
|
15618
16337
|
* @export
|
|
@@ -15652,6 +16371,28 @@ export class BookingsUserApi extends BaseAPI {
|
|
|
15652
16371
|
public createOpenBooking(requestParameters: BookingsUserApiCreateOpenBookingRequest, options?: RawAxiosRequestConfig) {
|
|
15653
16372
|
return BookingsUserApiFp(this.configuration).createOpenBooking(requestParameters.createOpenBookingRequest, options).then((request) => request(this.axios, this.basePath));
|
|
15654
16373
|
}
|
|
16374
|
+
|
|
16375
|
+
/**
|
|
16376
|
+
* Calculer le prix d\'une réservation ouverte avec joueurs initiaux
|
|
16377
|
+
* @param {BookingsUserApiGetOpenBookingPriceRequest} requestParameters Request parameters.
|
|
16378
|
+
* @param {*} [options] Override http request option.
|
|
16379
|
+
* @throws {RequiredError}
|
|
16380
|
+
* @memberof BookingsUserApi
|
|
16381
|
+
*/
|
|
16382
|
+
public getOpenBookingPrice(requestParameters: BookingsUserApiGetOpenBookingPriceRequest, options?: RawAxiosRequestConfig) {
|
|
16383
|
+
return BookingsUserApiFp(this.configuration).getOpenBookingPrice(requestParameters.getOpenBookingPriceRequest, options).then((request) => request(this.axios, this.basePath));
|
|
16384
|
+
}
|
|
16385
|
+
|
|
16386
|
+
/**
|
|
16387
|
+
* Mettre à jour une réservation ouverte (description et niveau minimal)
|
|
16388
|
+
* @param {BookingsUserApiUpdateOpenBookingRequest} requestParameters Request parameters.
|
|
16389
|
+
* @param {*} [options] Override http request option.
|
|
16390
|
+
* @throws {RequiredError}
|
|
16391
|
+
* @memberof BookingsUserApi
|
|
16392
|
+
*/
|
|
16393
|
+
public updateOpenBooking(requestParameters: BookingsUserApiUpdateOpenBookingRequest, options?: RawAxiosRequestConfig) {
|
|
16394
|
+
return BookingsUserApiFp(this.configuration).updateOpenBooking(requestParameters.bookingId, requestParameters.updateOpenBookingRequest, options).then((request) => request(this.axios, this.basePath));
|
|
16395
|
+
}
|
|
15655
16396
|
}
|
|
15656
16397
|
|
|
15657
16398
|
|
|
@@ -29727,6 +30468,43 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
29727
30468
|
|
|
29728
30469
|
|
|
29729
30470
|
|
|
30471
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
30472
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
30473
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
30474
|
+
|
|
30475
|
+
return {
|
|
30476
|
+
url: toPathString(localVarUrlObj),
|
|
30477
|
+
options: localVarRequestOptions,
|
|
30478
|
+
};
|
|
30479
|
+
},
|
|
30480
|
+
/**
|
|
30481
|
+
* Quitter une réservation
|
|
30482
|
+
* @param {string} bookingId
|
|
30483
|
+
* @param {*} [options] Override http request option.
|
|
30484
|
+
* @throws {RequiredError}
|
|
30485
|
+
*/
|
|
30486
|
+
leaveBooking: async (bookingId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
30487
|
+
// verify required parameter 'bookingId' is not null or undefined
|
|
30488
|
+
assertParamExists('leaveBooking', 'bookingId', bookingId)
|
|
30489
|
+
const localVarPath = `/api/users/me/bookings/{bookingId}/leave`
|
|
30490
|
+
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
30491
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
30492
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
30493
|
+
let baseOptions;
|
|
30494
|
+
if (configuration) {
|
|
30495
|
+
baseOptions = configuration.baseOptions;
|
|
30496
|
+
}
|
|
30497
|
+
|
|
30498
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
30499
|
+
const localVarHeaderParameter = {} as any;
|
|
30500
|
+
const localVarQueryParameter = {} as any;
|
|
30501
|
+
|
|
30502
|
+
// authentication bearerAuth required
|
|
30503
|
+
// http bearer authentication required
|
|
30504
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
30505
|
+
|
|
30506
|
+
|
|
30507
|
+
|
|
29730
30508
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
29731
30509
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
29732
30510
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -30735,6 +31513,18 @@ export const UsersApiFp = function(configuration?: Configuration) {
|
|
|
30735
31513
|
const localVarOperationServerBasePath = operationServerMap['UsersApi.getUserProfileById']?.[localVarOperationServerIndex]?.url;
|
|
30736
31514
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
30737
31515
|
},
|
|
31516
|
+
/**
|
|
31517
|
+
* Quitter une réservation
|
|
31518
|
+
* @param {string} bookingId
|
|
31519
|
+
* @param {*} [options] Override http request option.
|
|
31520
|
+
* @throws {RequiredError}
|
|
31521
|
+
*/
|
|
31522
|
+
async leaveBooking(bookingId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LeaveEventWaitList200Response>> {
|
|
31523
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.leaveBooking(bookingId, options);
|
|
31524
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
31525
|
+
const localVarOperationServerBasePath = operationServerMap['UsersApi.leaveBooking']?.[localVarOperationServerIndex]?.url;
|
|
31526
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
31527
|
+
},
|
|
30738
31528
|
/**
|
|
30739
31529
|
*
|
|
30740
31530
|
* @param {PlayerCategoryId} [category]
|
|
@@ -31162,6 +31952,15 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
|
|
|
31162
31952
|
getUserProfileById(requestParameters: UsersApiGetUserProfileByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<PublicUserProfileResponse> {
|
|
31163
31953
|
return localVarFp.getUserProfileById(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
31164
31954
|
},
|
|
31955
|
+
/**
|
|
31956
|
+
* Quitter une réservation
|
|
31957
|
+
* @param {UsersApiLeaveBookingRequest} requestParameters Request parameters.
|
|
31958
|
+
* @param {*} [options] Override http request option.
|
|
31959
|
+
* @throws {RequiredError}
|
|
31960
|
+
*/
|
|
31961
|
+
leaveBooking(requestParameters: UsersApiLeaveBookingRequest, options?: RawAxiosRequestConfig): AxiosPromise<LeaveEventWaitList200Response> {
|
|
31962
|
+
return localVarFp.leaveBooking(requestParameters.bookingId, options).then((request) => request(axios, basePath));
|
|
31963
|
+
},
|
|
31165
31964
|
/**
|
|
31166
31965
|
*
|
|
31167
31966
|
* @param {UsersApiListPlayersRequest} requestParameters Request parameters.
|
|
@@ -31587,6 +32386,20 @@ export interface UsersApiGetUserProfileByIdRequest {
|
|
|
31587
32386
|
readonly id: string
|
|
31588
32387
|
}
|
|
31589
32388
|
|
|
32389
|
+
/**
|
|
32390
|
+
* Request parameters for leaveBooking operation in UsersApi.
|
|
32391
|
+
* @export
|
|
32392
|
+
* @interface UsersApiLeaveBookingRequest
|
|
32393
|
+
*/
|
|
32394
|
+
export interface UsersApiLeaveBookingRequest {
|
|
32395
|
+
/**
|
|
32396
|
+
*
|
|
32397
|
+
* @type {string}
|
|
32398
|
+
* @memberof UsersApiLeaveBooking
|
|
32399
|
+
*/
|
|
32400
|
+
readonly bookingId: string
|
|
32401
|
+
}
|
|
32402
|
+
|
|
31590
32403
|
/**
|
|
31591
32404
|
* Request parameters for listPlayers operation in UsersApi.
|
|
31592
32405
|
* @export
|
|
@@ -32132,6 +32945,17 @@ export class UsersApi extends BaseAPI {
|
|
|
32132
32945
|
return UsersApiFp(this.configuration).getUserProfileById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
32133
32946
|
}
|
|
32134
32947
|
|
|
32948
|
+
/**
|
|
32949
|
+
* Quitter une réservation
|
|
32950
|
+
* @param {UsersApiLeaveBookingRequest} requestParameters Request parameters.
|
|
32951
|
+
* @param {*} [options] Override http request option.
|
|
32952
|
+
* @throws {RequiredError}
|
|
32953
|
+
* @memberof UsersApi
|
|
32954
|
+
*/
|
|
32955
|
+
public leaveBooking(requestParameters: UsersApiLeaveBookingRequest, options?: RawAxiosRequestConfig) {
|
|
32956
|
+
return UsersApiFp(this.configuration).leaveBooking(requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
|
|
32957
|
+
}
|
|
32958
|
+
|
|
32135
32959
|
/**
|
|
32136
32960
|
*
|
|
32137
32961
|
* @param {UsersApiListPlayersRequest} requestParameters Request parameters.
|