@tennac-booking/sdk 1.0.176 → 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 +5 -0
- package/README.md +9 -2
- package/api.ts +415 -1
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +328 -1
- package/dist/api.js +137 -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 +328 -1
- package/dist/esm/api.js +137 -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 +55 -0
- package/docs/BookingsUserApi.md +53 -0
- package/docs/CreateOpenBookingRequest.md +2 -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 +2 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/configuration.d.ts
CHANGED
package/dist/configuration.js
CHANGED
package/dist/esm/api.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* openapi.json
|
|
3
3
|
* Pandook API Documentation
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.
|
|
5
|
+
* The version of the OpenAPI document: 1.0.177
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -648,6 +648,37 @@ export interface BookingPaymentStatusResponseSummary {
|
|
|
648
648
|
*/
|
|
649
649
|
'totalPlayers': number;
|
|
650
650
|
}
|
|
651
|
+
/**
|
|
652
|
+
*
|
|
653
|
+
* @export
|
|
654
|
+
* @interface BookingPlayerInfo
|
|
655
|
+
*/
|
|
656
|
+
export interface BookingPlayerInfo {
|
|
657
|
+
/**
|
|
658
|
+
*
|
|
659
|
+
* @type {string}
|
|
660
|
+
* @memberof BookingPlayerInfo
|
|
661
|
+
*/
|
|
662
|
+
'id': string;
|
|
663
|
+
/**
|
|
664
|
+
*
|
|
665
|
+
* @type {string}
|
|
666
|
+
* @memberof BookingPlayerInfo
|
|
667
|
+
*/
|
|
668
|
+
'firstName'?: string | null;
|
|
669
|
+
/**
|
|
670
|
+
*
|
|
671
|
+
* @type {string}
|
|
672
|
+
* @memberof BookingPlayerInfo
|
|
673
|
+
*/
|
|
674
|
+
'lastName'?: string | null;
|
|
675
|
+
/**
|
|
676
|
+
*
|
|
677
|
+
* @type {string}
|
|
678
|
+
* @memberof BookingPlayerInfo
|
|
679
|
+
*/
|
|
680
|
+
'profilePicture'?: string | null;
|
|
681
|
+
}
|
|
651
682
|
/**
|
|
652
683
|
*
|
|
653
684
|
* @export
|
|
@@ -739,6 +770,12 @@ export interface BookingPopulated {
|
|
|
739
770
|
* @memberof BookingPopulated
|
|
740
771
|
*/
|
|
741
772
|
'players': Array<UserInfo>;
|
|
773
|
+
/**
|
|
774
|
+
* Joueurs inclus à la création de la réservation (pour les créneaux ouverts)
|
|
775
|
+
* @type {Array<UserInfo>}
|
|
776
|
+
* @memberof BookingPopulated
|
|
777
|
+
*/
|
|
778
|
+
'initialPlayers'?: Array<UserInfo>;
|
|
742
779
|
/**
|
|
743
780
|
* Statut des paiements par joueur
|
|
744
781
|
* @type {Array<PaymentByPlayerInfo>}
|
|
@@ -1057,6 +1094,42 @@ export interface BookingSummary {
|
|
|
1057
1094
|
* @memberof BookingSummary
|
|
1058
1095
|
*/
|
|
1059
1096
|
'isPublic': boolean;
|
|
1097
|
+
/**
|
|
1098
|
+
*
|
|
1099
|
+
* @type {boolean}
|
|
1100
|
+
* @memberof BookingSummary
|
|
1101
|
+
*/
|
|
1102
|
+
'isOpen': boolean;
|
|
1103
|
+
/**
|
|
1104
|
+
*
|
|
1105
|
+
* @type {number}
|
|
1106
|
+
* @memberof BookingSummary
|
|
1107
|
+
*/
|
|
1108
|
+
'maxPlayers'?: number | null;
|
|
1109
|
+
/**
|
|
1110
|
+
*
|
|
1111
|
+
* @type {number}
|
|
1112
|
+
* @memberof BookingSummary
|
|
1113
|
+
*/
|
|
1114
|
+
'maxPlayersDesired'?: number | null;
|
|
1115
|
+
/**
|
|
1116
|
+
*
|
|
1117
|
+
* @type {string}
|
|
1118
|
+
* @memberof BookingSummary
|
|
1119
|
+
*/
|
|
1120
|
+
'description'?: string | null;
|
|
1121
|
+
/**
|
|
1122
|
+
*
|
|
1123
|
+
* @type {string}
|
|
1124
|
+
* @memberof BookingSummary
|
|
1125
|
+
*/
|
|
1126
|
+
'minLevel'?: string | null;
|
|
1127
|
+
/**
|
|
1128
|
+
*
|
|
1129
|
+
* @type {Array<BookingPlayerInfo>}
|
|
1130
|
+
* @memberof BookingSummary
|
|
1131
|
+
*/
|
|
1132
|
+
'initialPlayers'?: Array<BookingPlayerInfo>;
|
|
1060
1133
|
/**
|
|
1061
1134
|
*
|
|
1062
1135
|
* @type {string}
|
|
@@ -4520,6 +4593,12 @@ export interface CreateOpenBookingRequest {
|
|
|
4520
4593
|
* @memberof CreateOpenBookingRequest
|
|
4521
4594
|
*/
|
|
4522
4595
|
'minLevel'?: string;
|
|
4596
|
+
/**
|
|
4597
|
+
* IDs des joueurs inclus de base dans la réservation (en plus du créateur)
|
|
4598
|
+
* @type {Array<string>}
|
|
4599
|
+
* @memberof CreateOpenBookingRequest
|
|
4600
|
+
*/
|
|
4601
|
+
'initialPlayerIds'?: Array<string>;
|
|
4523
4602
|
}
|
|
4524
4603
|
/**
|
|
4525
4604
|
*
|
|
@@ -6170,6 +6249,64 @@ export interface GetInfillPercentagePerPeriod200Response {
|
|
|
6170
6249
|
*/
|
|
6171
6250
|
'infillPercentage': number;
|
|
6172
6251
|
}
|
|
6252
|
+
/**
|
|
6253
|
+
*
|
|
6254
|
+
* @export
|
|
6255
|
+
* @interface GetOpenBookingPrice200Response
|
|
6256
|
+
*/
|
|
6257
|
+
export interface GetOpenBookingPrice200Response {
|
|
6258
|
+
/**
|
|
6259
|
+
*
|
|
6260
|
+
* @type {number}
|
|
6261
|
+
* @memberof GetOpenBookingPrice200Response
|
|
6262
|
+
*/
|
|
6263
|
+
'totalBasePrice': number;
|
|
6264
|
+
/**
|
|
6265
|
+
*
|
|
6266
|
+
* @type {Array<PlayerPrice>}
|
|
6267
|
+
* @memberof GetOpenBookingPrice200Response
|
|
6268
|
+
*/
|
|
6269
|
+
'playersPrices': Array<PlayerPrice>;
|
|
6270
|
+
/**
|
|
6271
|
+
*
|
|
6272
|
+
* @type {number}
|
|
6273
|
+
* @memberof GetOpenBookingPrice200Response
|
|
6274
|
+
*/
|
|
6275
|
+
'basePricePerPlayer': number;
|
|
6276
|
+
}
|
|
6277
|
+
/**
|
|
6278
|
+
*
|
|
6279
|
+
* @export
|
|
6280
|
+
* @interface GetOpenBookingPriceRequest
|
|
6281
|
+
*/
|
|
6282
|
+
export interface GetOpenBookingPriceRequest {
|
|
6283
|
+
/**
|
|
6284
|
+
* Construct a type with a set of properties K of type T
|
|
6285
|
+
* @type {{ [key: string]: number; }}
|
|
6286
|
+
* @memberof GetOpenBookingPriceRequest
|
|
6287
|
+
*/
|
|
6288
|
+
'creditsByPlayer'?: {
|
|
6289
|
+
[key: string]: number;
|
|
6290
|
+
};
|
|
6291
|
+
/**
|
|
6292
|
+
*
|
|
6293
|
+
* @type {Array<string>}
|
|
6294
|
+
* @memberof GetOpenBookingPriceRequest
|
|
6295
|
+
*/
|
|
6296
|
+
'initialPlayerIds'?: Array<string>;
|
|
6297
|
+
/**
|
|
6298
|
+
*
|
|
6299
|
+
* @type {number}
|
|
6300
|
+
* @memberof GetOpenBookingPriceRequest
|
|
6301
|
+
*/
|
|
6302
|
+
'maxPlayers': number;
|
|
6303
|
+
/**
|
|
6304
|
+
*
|
|
6305
|
+
* @type {Array<string>}
|
|
6306
|
+
* @memberof GetOpenBookingPriceRequest
|
|
6307
|
+
*/
|
|
6308
|
+
'slotIds': Array<string>;
|
|
6309
|
+
}
|
|
6173
6310
|
/**
|
|
6174
6311
|
*
|
|
6175
6312
|
* @export
|
|
@@ -7314,6 +7451,98 @@ export interface JoinOpenEventResponse {
|
|
|
7314
7451
|
*/
|
|
7315
7452
|
'invoices'?: Array<CheckInEventParticipants200ResponseInvoicesInner>;
|
|
7316
7453
|
}
|
|
7454
|
+
/**
|
|
7455
|
+
*
|
|
7456
|
+
* @export
|
|
7457
|
+
* @interface JoinPriceEstimateResponse
|
|
7458
|
+
*/
|
|
7459
|
+
export interface JoinPriceEstimateResponse {
|
|
7460
|
+
/**
|
|
7461
|
+
* ID de la réservation
|
|
7462
|
+
* @type {string}
|
|
7463
|
+
* @memberof JoinPriceEstimateResponse
|
|
7464
|
+
*/
|
|
7465
|
+
'bookingId': string;
|
|
7466
|
+
/**
|
|
7467
|
+
* Prix de base sans réductions (en centimes)
|
|
7468
|
+
* @type {number}
|
|
7469
|
+
* @memberof JoinPriceEstimateResponse
|
|
7470
|
+
*/
|
|
7471
|
+
'basePrice': number;
|
|
7472
|
+
/**
|
|
7473
|
+
* Prix après application de l\'abonnement (en centimes)
|
|
7474
|
+
* @type {number}
|
|
7475
|
+
* @memberof JoinPriceEstimateResponse
|
|
7476
|
+
*/
|
|
7477
|
+
'priceAfterSubscription': number;
|
|
7478
|
+
/**
|
|
7479
|
+
* Montant de la réduction d\'abonnement (en centimes)
|
|
7480
|
+
* @type {number}
|
|
7481
|
+
* @memberof JoinPriceEstimateResponse
|
|
7482
|
+
*/
|
|
7483
|
+
'subscriptionDiscount': number;
|
|
7484
|
+
/**
|
|
7485
|
+
*
|
|
7486
|
+
* @type {JoinPriceEstimateResponseSubscriptionInfo}
|
|
7487
|
+
* @memberof JoinPriceEstimateResponse
|
|
7488
|
+
*/
|
|
7489
|
+
'subscriptionInfo'?: JoinPriceEstimateResponseSubscriptionInfo;
|
|
7490
|
+
/**
|
|
7491
|
+
* Crédits disponibles pour le joueur dans ce club (en centimes)
|
|
7492
|
+
* @type {number}
|
|
7493
|
+
* @memberof JoinPriceEstimateResponse
|
|
7494
|
+
*/
|
|
7495
|
+
'availableCreditsInCents': number;
|
|
7496
|
+
/**
|
|
7497
|
+
* Crédits qui seront utilisés (en centimes)
|
|
7498
|
+
* @type {number}
|
|
7499
|
+
* @memberof JoinPriceEstimateResponse
|
|
7500
|
+
*/
|
|
7501
|
+
'creditToUseInCents': number;
|
|
7502
|
+
/**
|
|
7503
|
+
* Prix final après toutes les réductions et crédits (en centimes)
|
|
7504
|
+
* @type {number}
|
|
7505
|
+
* @memberof JoinPriceEstimateResponse
|
|
7506
|
+
*/
|
|
7507
|
+
'finalPriceInCents': number;
|
|
7508
|
+
/**
|
|
7509
|
+
* Indique si le joueur peut rejoindre la réservation
|
|
7510
|
+
* @type {boolean}
|
|
7511
|
+
* @memberof JoinPriceEstimateResponse
|
|
7512
|
+
*/
|
|
7513
|
+
'canJoin': boolean;
|
|
7514
|
+
/**
|
|
7515
|
+
* Raison si le joueur ne peut pas rejoindre
|
|
7516
|
+
* @type {string}
|
|
7517
|
+
* @memberof JoinPriceEstimateResponse
|
|
7518
|
+
*/
|
|
7519
|
+
'reason'?: string;
|
|
7520
|
+
}
|
|
7521
|
+
/**
|
|
7522
|
+
* Informations sur l\'abonnement du joueur
|
|
7523
|
+
* @export
|
|
7524
|
+
* @interface JoinPriceEstimateResponseSubscriptionInfo
|
|
7525
|
+
*/
|
|
7526
|
+
export interface JoinPriceEstimateResponseSubscriptionInfo {
|
|
7527
|
+
/**
|
|
7528
|
+
*
|
|
7529
|
+
* @type {string}
|
|
7530
|
+
* @memberof JoinPriceEstimateResponseSubscriptionInfo
|
|
7531
|
+
*/
|
|
7532
|
+
'subscriptionName'?: string;
|
|
7533
|
+
/**
|
|
7534
|
+
*
|
|
7535
|
+
* @type {number}
|
|
7536
|
+
* @memberof JoinPriceEstimateResponseSubscriptionInfo
|
|
7537
|
+
*/
|
|
7538
|
+
'discountPercentage'?: number;
|
|
7539
|
+
/**
|
|
7540
|
+
*
|
|
7541
|
+
* @type {boolean}
|
|
7542
|
+
* @memberof JoinPriceEstimateResponseSubscriptionInfo
|
|
7543
|
+
*/
|
|
7544
|
+
'hasSubscription': boolean;
|
|
7545
|
+
}
|
|
7317
7546
|
/**
|
|
7318
7547
|
*
|
|
7319
7548
|
* @export
|
|
@@ -7895,6 +8124,12 @@ export interface OpenBookingInfo {
|
|
|
7895
8124
|
* @memberof OpenBookingInfo
|
|
7896
8125
|
*/
|
|
7897
8126
|
'currentPlayersCount': number;
|
|
8127
|
+
/**
|
|
8128
|
+
* Prix de base pour rejoindre la réservation (en centimes)
|
|
8129
|
+
* @type {number}
|
|
8130
|
+
* @memberof OpenBookingInfo
|
|
8131
|
+
*/
|
|
8132
|
+
'basePriceToJoin'?: number;
|
|
7898
8133
|
}
|
|
7899
8134
|
/**
|
|
7900
8135
|
*
|
|
@@ -13382,6 +13617,14 @@ export declare const BookingsApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
13382
13617
|
* @throws {RequiredError}
|
|
13383
13618
|
*/
|
|
13384
13619
|
getGuestBookingPrice: (getGuestBookingPriceRequest: GetGuestBookingPriceRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
13620
|
+
/**
|
|
13621
|
+
* 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
|
|
13622
|
+
* @param {string} bookingId
|
|
13623
|
+
* @param {number} [creditToUseInCents]
|
|
13624
|
+
* @param {*} [options] Override http request option.
|
|
13625
|
+
* @throws {RequiredError}
|
|
13626
|
+
*/
|
|
13627
|
+
getJoinPriceEstimate: (bookingId: string, creditToUseInCents?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
13385
13628
|
/**
|
|
13386
13629
|
* Estimer simplement le prix à payer pour rejoindre une réservation ouverte
|
|
13387
13630
|
* @param {string} bookingId
|
|
@@ -13470,6 +13713,14 @@ export declare const BookingsApiFp: (configuration?: Configuration) => {
|
|
|
13470
13713
|
* @throws {RequiredError}
|
|
13471
13714
|
*/
|
|
13472
13715
|
getGuestBookingPrice(getGuestBookingPriceRequest: GetGuestBookingPriceRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetGuestBookingPrice200Response>>;
|
|
13716
|
+
/**
|
|
13717
|
+
* 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
|
|
13718
|
+
* @param {string} bookingId
|
|
13719
|
+
* @param {number} [creditToUseInCents]
|
|
13720
|
+
* @param {*} [options] Override http request option.
|
|
13721
|
+
* @throws {RequiredError}
|
|
13722
|
+
*/
|
|
13723
|
+
getJoinPriceEstimate(bookingId: string, creditToUseInCents?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JoinPriceEstimateResponse>>;
|
|
13473
13724
|
/**
|
|
13474
13725
|
* Estimer simplement le prix à payer pour rejoindre une réservation ouverte
|
|
13475
13726
|
* @param {string} bookingId
|
|
@@ -13557,6 +13808,13 @@ export declare const BookingsApiFactory: (configuration?: Configuration, basePat
|
|
|
13557
13808
|
* @throws {RequiredError}
|
|
13558
13809
|
*/
|
|
13559
13810
|
getGuestBookingPrice(requestParameters: BookingsApiGetGuestBookingPriceRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetGuestBookingPrice200Response>;
|
|
13811
|
+
/**
|
|
13812
|
+
* 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
|
|
13813
|
+
* @param {BookingsApiGetJoinPriceEstimateRequest} requestParameters Request parameters.
|
|
13814
|
+
* @param {*} [options] Override http request option.
|
|
13815
|
+
* @throws {RequiredError}
|
|
13816
|
+
*/
|
|
13817
|
+
getJoinPriceEstimate(requestParameters: BookingsApiGetJoinPriceEstimateRequest, options?: RawAxiosRequestConfig): AxiosPromise<JoinPriceEstimateResponse>;
|
|
13560
13818
|
/**
|
|
13561
13819
|
* Estimer simplement le prix à payer pour rejoindre une réservation ouverte
|
|
13562
13820
|
* @param {BookingsApiGetOpenBookingJoinPriceRequest} requestParameters Request parameters.
|
|
@@ -13664,6 +13922,25 @@ export interface BookingsApiGetGuestBookingPriceRequest {
|
|
|
13664
13922
|
*/
|
|
13665
13923
|
readonly getGuestBookingPriceRequest: GetGuestBookingPriceRequest;
|
|
13666
13924
|
}
|
|
13925
|
+
/**
|
|
13926
|
+
* Request parameters for getJoinPriceEstimate operation in BookingsApi.
|
|
13927
|
+
* @export
|
|
13928
|
+
* @interface BookingsApiGetJoinPriceEstimateRequest
|
|
13929
|
+
*/
|
|
13930
|
+
export interface BookingsApiGetJoinPriceEstimateRequest {
|
|
13931
|
+
/**
|
|
13932
|
+
*
|
|
13933
|
+
* @type {string}
|
|
13934
|
+
* @memberof BookingsApiGetJoinPriceEstimate
|
|
13935
|
+
*/
|
|
13936
|
+
readonly bookingId: string;
|
|
13937
|
+
/**
|
|
13938
|
+
*
|
|
13939
|
+
* @type {number}
|
|
13940
|
+
* @memberof BookingsApiGetJoinPriceEstimate
|
|
13941
|
+
*/
|
|
13942
|
+
readonly creditToUseInCents?: number;
|
|
13943
|
+
}
|
|
13667
13944
|
/**
|
|
13668
13945
|
* Request parameters for getOpenBookingJoinPrice operation in BookingsApi.
|
|
13669
13946
|
* @export
|
|
@@ -13842,6 +14119,14 @@ export declare class BookingsApi extends BaseAPI {
|
|
|
13842
14119
|
* @memberof BookingsApi
|
|
13843
14120
|
*/
|
|
13844
14121
|
getGuestBookingPrice(requestParameters: BookingsApiGetGuestBookingPriceRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetGuestBookingPrice200Response, any, {}>>;
|
|
14122
|
+
/**
|
|
14123
|
+
* 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
|
|
14124
|
+
* @param {BookingsApiGetJoinPriceEstimateRequest} requestParameters Request parameters.
|
|
14125
|
+
* @param {*} [options] Override http request option.
|
|
14126
|
+
* @throws {RequiredError}
|
|
14127
|
+
* @memberof BookingsApi
|
|
14128
|
+
*/
|
|
14129
|
+
getJoinPriceEstimate(requestParameters: BookingsApiGetJoinPriceEstimateRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<JoinPriceEstimateResponse, any, {}>>;
|
|
13845
14130
|
/**
|
|
13846
14131
|
* Estimer simplement le prix à payer pour rejoindre une réservation ouverte
|
|
13847
14132
|
* @param {BookingsApiGetOpenBookingJoinPriceRequest} requestParameters Request parameters.
|
|
@@ -14429,6 +14714,13 @@ export declare const BookingsUserApiAxiosParamCreator: (configuration?: Configur
|
|
|
14429
14714
|
* @throws {RequiredError}
|
|
14430
14715
|
*/
|
|
14431
14716
|
createOpenBooking: (createOpenBookingRequest: CreateOpenBookingRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
14717
|
+
/**
|
|
14718
|
+
* Calculer le prix d\'une réservation ouverte avec joueurs initiaux
|
|
14719
|
+
* @param {GetOpenBookingPriceRequest} getOpenBookingPriceRequest
|
|
14720
|
+
* @param {*} [options] Override http request option.
|
|
14721
|
+
* @throws {RequiredError}
|
|
14722
|
+
*/
|
|
14723
|
+
getOpenBookingPrice: (getOpenBookingPriceRequest: GetOpenBookingPriceRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
14432
14724
|
/**
|
|
14433
14725
|
* Mettre à jour une réservation ouverte (description et niveau minimal)
|
|
14434
14726
|
* @param {string} bookingId
|
|
@@ -14464,6 +14756,13 @@ export declare const BookingsUserApiFp: (configuration?: Configuration) => {
|
|
|
14464
14756
|
* @throws {RequiredError}
|
|
14465
14757
|
*/
|
|
14466
14758
|
createOpenBooking(createOpenBookingRequest: CreateOpenBookingRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BookingResponse>>;
|
|
14759
|
+
/**
|
|
14760
|
+
* Calculer le prix d\'une réservation ouverte avec joueurs initiaux
|
|
14761
|
+
* @param {GetOpenBookingPriceRequest} getOpenBookingPriceRequest
|
|
14762
|
+
* @param {*} [options] Override http request option.
|
|
14763
|
+
* @throws {RequiredError}
|
|
14764
|
+
*/
|
|
14765
|
+
getOpenBookingPrice(getOpenBookingPriceRequest: GetOpenBookingPriceRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetOpenBookingPrice200Response>>;
|
|
14467
14766
|
/**
|
|
14468
14767
|
* Mettre à jour une réservation ouverte (description et niveau minimal)
|
|
14469
14768
|
* @param {string} bookingId
|
|
@@ -14499,6 +14798,13 @@ export declare const BookingsUserApiFactory: (configuration?: Configuration, bas
|
|
|
14499
14798
|
* @throws {RequiredError}
|
|
14500
14799
|
*/
|
|
14501
14800
|
createOpenBooking(requestParameters: BookingsUserApiCreateOpenBookingRequest, options?: RawAxiosRequestConfig): AxiosPromise<BookingResponse>;
|
|
14801
|
+
/**
|
|
14802
|
+
* Calculer le prix d\'une réservation ouverte avec joueurs initiaux
|
|
14803
|
+
* @param {BookingsUserApiGetOpenBookingPriceRequest} requestParameters Request parameters.
|
|
14804
|
+
* @param {*} [options] Override http request option.
|
|
14805
|
+
* @throws {RequiredError}
|
|
14806
|
+
*/
|
|
14807
|
+
getOpenBookingPrice(requestParameters: BookingsUserApiGetOpenBookingPriceRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetOpenBookingPrice200Response>;
|
|
14502
14808
|
/**
|
|
14503
14809
|
* Mettre à jour une réservation ouverte (description et niveau minimal)
|
|
14504
14810
|
* @param {BookingsUserApiUpdateOpenBookingRequest} requestParameters Request parameters.
|
|
@@ -14546,6 +14852,19 @@ export interface BookingsUserApiCreateOpenBookingRequest {
|
|
|
14546
14852
|
*/
|
|
14547
14853
|
readonly createOpenBookingRequest: CreateOpenBookingRequest;
|
|
14548
14854
|
}
|
|
14855
|
+
/**
|
|
14856
|
+
* Request parameters for getOpenBookingPrice operation in BookingsUserApi.
|
|
14857
|
+
* @export
|
|
14858
|
+
* @interface BookingsUserApiGetOpenBookingPriceRequest
|
|
14859
|
+
*/
|
|
14860
|
+
export interface BookingsUserApiGetOpenBookingPriceRequest {
|
|
14861
|
+
/**
|
|
14862
|
+
*
|
|
14863
|
+
* @type {GetOpenBookingPriceRequest}
|
|
14864
|
+
* @memberof BookingsUserApiGetOpenBookingPrice
|
|
14865
|
+
*/
|
|
14866
|
+
readonly getOpenBookingPriceRequest: GetOpenBookingPriceRequest;
|
|
14867
|
+
}
|
|
14549
14868
|
/**
|
|
14550
14869
|
* Request parameters for updateOpenBooking operation in BookingsUserApi.
|
|
14551
14870
|
* @export
|
|
@@ -14596,6 +14915,14 @@ export declare class BookingsUserApi extends BaseAPI {
|
|
|
14596
14915
|
* @memberof BookingsUserApi
|
|
14597
14916
|
*/
|
|
14598
14917
|
createOpenBooking(requestParameters: BookingsUserApiCreateOpenBookingRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<BookingResponse, any, {}>>;
|
|
14918
|
+
/**
|
|
14919
|
+
* Calculer le prix d\'une réservation ouverte avec joueurs initiaux
|
|
14920
|
+
* @param {BookingsUserApiGetOpenBookingPriceRequest} requestParameters Request parameters.
|
|
14921
|
+
* @param {*} [options] Override http request option.
|
|
14922
|
+
* @throws {RequiredError}
|
|
14923
|
+
* @memberof BookingsUserApi
|
|
14924
|
+
*/
|
|
14925
|
+
getOpenBookingPrice(requestParameters: BookingsUserApiGetOpenBookingPriceRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetOpenBookingPrice200Response, any, {}>>;
|
|
14599
14926
|
/**
|
|
14600
14927
|
* Mettre à jour une réservation ouverte (description et niveau minimal)
|
|
14601
14928
|
* @param {BookingsUserApiUpdateOpenBookingRequest} requestParameters Request parameters.
|
package/dist/esm/api.js
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).
|
|
@@ -586,6 +586,41 @@ export const BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
586
586
|
options: localVarRequestOptions,
|
|
587
587
|
};
|
|
588
588
|
}),
|
|
589
|
+
/**
|
|
590
|
+
* 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
|
|
591
|
+
* @param {string} bookingId
|
|
592
|
+
* @param {number} [creditToUseInCents]
|
|
593
|
+
* @param {*} [options] Override http request option.
|
|
594
|
+
* @throws {RequiredError}
|
|
595
|
+
*/
|
|
596
|
+
getJoinPriceEstimate: (bookingId_1, creditToUseInCents_1, ...args_1) => __awaiter(this, [bookingId_1, creditToUseInCents_1, ...args_1], void 0, function* (bookingId, creditToUseInCents, options = {}) {
|
|
597
|
+
// verify required parameter 'bookingId' is not null or undefined
|
|
598
|
+
assertParamExists('getJoinPriceEstimate', 'bookingId', bookingId);
|
|
599
|
+
const localVarPath = `/api/bookings/{bookingId}/join-price-estimate`
|
|
600
|
+
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
601
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
602
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
603
|
+
let baseOptions;
|
|
604
|
+
if (configuration) {
|
|
605
|
+
baseOptions = configuration.baseOptions;
|
|
606
|
+
}
|
|
607
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
608
|
+
const localVarHeaderParameter = {};
|
|
609
|
+
const localVarQueryParameter = {};
|
|
610
|
+
// authentication bearerAuth required
|
|
611
|
+
// http bearer authentication required
|
|
612
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
613
|
+
if (creditToUseInCents !== undefined) {
|
|
614
|
+
localVarQueryParameter['creditToUseInCents'] = creditToUseInCents;
|
|
615
|
+
}
|
|
616
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
617
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
618
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
619
|
+
return {
|
|
620
|
+
url: toPathString(localVarUrlObj),
|
|
621
|
+
options: localVarRequestOptions,
|
|
622
|
+
};
|
|
623
|
+
}),
|
|
589
624
|
/**
|
|
590
625
|
* Estimer simplement le prix à payer pour rejoindre une réservation ouverte
|
|
591
626
|
* @param {string} bookingId
|
|
@@ -868,6 +903,22 @@ export const BookingsApiFp = function (configuration) {
|
|
|
868
903
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
869
904
|
});
|
|
870
905
|
},
|
|
906
|
+
/**
|
|
907
|
+
* 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
|
|
908
|
+
* @param {string} bookingId
|
|
909
|
+
* @param {number} [creditToUseInCents]
|
|
910
|
+
* @param {*} [options] Override http request option.
|
|
911
|
+
* @throws {RequiredError}
|
|
912
|
+
*/
|
|
913
|
+
getJoinPriceEstimate(bookingId, creditToUseInCents, options) {
|
|
914
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
915
|
+
var _a, _b, _c;
|
|
916
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getJoinPriceEstimate(bookingId, creditToUseInCents, options);
|
|
917
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
918
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsApi.getJoinPriceEstimate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
919
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
920
|
+
});
|
|
921
|
+
},
|
|
871
922
|
/**
|
|
872
923
|
* Estimer simplement le prix à payer pour rejoindre une réservation ouverte
|
|
873
924
|
* @param {string} bookingId
|
|
@@ -1008,6 +1059,15 @@ export const BookingsApiFactory = function (configuration, basePath, axios) {
|
|
|
1008
1059
|
getGuestBookingPrice(requestParameters, options) {
|
|
1009
1060
|
return localVarFp.getGuestBookingPrice(requestParameters.getGuestBookingPriceRequest, options).then((request) => request(axios, basePath));
|
|
1010
1061
|
},
|
|
1062
|
+
/**
|
|
1063
|
+
* 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
|
|
1064
|
+
* @param {BookingsApiGetJoinPriceEstimateRequest} requestParameters Request parameters.
|
|
1065
|
+
* @param {*} [options] Override http request option.
|
|
1066
|
+
* @throws {RequiredError}
|
|
1067
|
+
*/
|
|
1068
|
+
getJoinPriceEstimate(requestParameters, options) {
|
|
1069
|
+
return localVarFp.getJoinPriceEstimate(requestParameters.bookingId, requestParameters.creditToUseInCents, options).then((request) => request(axios, basePath));
|
|
1070
|
+
},
|
|
1011
1071
|
/**
|
|
1012
1072
|
* Estimer simplement le prix à payer pour rejoindre une réservation ouverte
|
|
1013
1073
|
* @param {BookingsApiGetOpenBookingJoinPriceRequest} requestParameters Request parameters.
|
|
@@ -1112,6 +1172,16 @@ export class BookingsApi extends BaseAPI {
|
|
|
1112
1172
|
getGuestBookingPrice(requestParameters, options) {
|
|
1113
1173
|
return BookingsApiFp(this.configuration).getGuestBookingPrice(requestParameters.getGuestBookingPriceRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1114
1174
|
}
|
|
1175
|
+
/**
|
|
1176
|
+
* 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
|
|
1177
|
+
* @param {BookingsApiGetJoinPriceEstimateRequest} requestParameters Request parameters.
|
|
1178
|
+
* @param {*} [options] Override http request option.
|
|
1179
|
+
* @throws {RequiredError}
|
|
1180
|
+
* @memberof BookingsApi
|
|
1181
|
+
*/
|
|
1182
|
+
getJoinPriceEstimate(requestParameters, options) {
|
|
1183
|
+
return BookingsApiFp(this.configuration).getJoinPriceEstimate(requestParameters.bookingId, requestParameters.creditToUseInCents, options).then((request) => request(this.axios, this.basePath));
|
|
1184
|
+
}
|
|
1115
1185
|
/**
|
|
1116
1186
|
* Estimer simplement le prix à payer pour rejoindre une réservation ouverte
|
|
1117
1187
|
* @param {BookingsApiGetOpenBookingJoinPriceRequest} requestParameters Request parameters.
|
|
@@ -2015,6 +2085,38 @@ export const BookingsUserApiAxiosParamCreator = function (configuration) {
|
|
|
2015
2085
|
options: localVarRequestOptions,
|
|
2016
2086
|
};
|
|
2017
2087
|
}),
|
|
2088
|
+
/**
|
|
2089
|
+
* Calculer le prix d\'une réservation ouverte avec joueurs initiaux
|
|
2090
|
+
* @param {GetOpenBookingPriceRequest} getOpenBookingPriceRequest
|
|
2091
|
+
* @param {*} [options] Override http request option.
|
|
2092
|
+
* @throws {RequiredError}
|
|
2093
|
+
*/
|
|
2094
|
+
getOpenBookingPrice: (getOpenBookingPriceRequest_1, ...args_1) => __awaiter(this, [getOpenBookingPriceRequest_1, ...args_1], void 0, function* (getOpenBookingPriceRequest, options = {}) {
|
|
2095
|
+
// verify required parameter 'getOpenBookingPriceRequest' is not null or undefined
|
|
2096
|
+
assertParamExists('getOpenBookingPrice', 'getOpenBookingPriceRequest', getOpenBookingPriceRequest);
|
|
2097
|
+
const localVarPath = `/api/bookings/open/booking-price`;
|
|
2098
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2099
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2100
|
+
let baseOptions;
|
|
2101
|
+
if (configuration) {
|
|
2102
|
+
baseOptions = configuration.baseOptions;
|
|
2103
|
+
}
|
|
2104
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
2105
|
+
const localVarHeaderParameter = {};
|
|
2106
|
+
const localVarQueryParameter = {};
|
|
2107
|
+
// authentication bearerAuth required
|
|
2108
|
+
// http bearer authentication required
|
|
2109
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2110
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2111
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2112
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2113
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2114
|
+
localVarRequestOptions.data = serializeDataIfNeeded(getOpenBookingPriceRequest, localVarRequestOptions, configuration);
|
|
2115
|
+
return {
|
|
2116
|
+
url: toPathString(localVarUrlObj),
|
|
2117
|
+
options: localVarRequestOptions,
|
|
2118
|
+
};
|
|
2119
|
+
}),
|
|
2018
2120
|
/**
|
|
2019
2121
|
* Mettre à jour une réservation ouverte (description et niveau minimal)
|
|
2020
2122
|
* @param {string} bookingId
|
|
@@ -2105,6 +2207,21 @@ export const BookingsUserApiFp = function (configuration) {
|
|
|
2105
2207
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2106
2208
|
});
|
|
2107
2209
|
},
|
|
2210
|
+
/**
|
|
2211
|
+
* Calculer le prix d\'une réservation ouverte avec joueurs initiaux
|
|
2212
|
+
* @param {GetOpenBookingPriceRequest} getOpenBookingPriceRequest
|
|
2213
|
+
* @param {*} [options] Override http request option.
|
|
2214
|
+
* @throws {RequiredError}
|
|
2215
|
+
*/
|
|
2216
|
+
getOpenBookingPrice(getOpenBookingPriceRequest, options) {
|
|
2217
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2218
|
+
var _a, _b, _c;
|
|
2219
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getOpenBookingPrice(getOpenBookingPriceRequest, options);
|
|
2220
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2221
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsUserApi.getOpenBookingPrice']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2222
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2223
|
+
});
|
|
2224
|
+
},
|
|
2108
2225
|
/**
|
|
2109
2226
|
* Mettre à jour une réservation ouverte (description et niveau minimal)
|
|
2110
2227
|
* @param {string} bookingId
|
|
@@ -2157,6 +2274,15 @@ export const BookingsUserApiFactory = function (configuration, basePath, axios)
|
|
|
2157
2274
|
createOpenBooking(requestParameters, options) {
|
|
2158
2275
|
return localVarFp.createOpenBooking(requestParameters.createOpenBookingRequest, options).then((request) => request(axios, basePath));
|
|
2159
2276
|
},
|
|
2277
|
+
/**
|
|
2278
|
+
* Calculer le prix d\'une réservation ouverte avec joueurs initiaux
|
|
2279
|
+
* @param {BookingsUserApiGetOpenBookingPriceRequest} requestParameters Request parameters.
|
|
2280
|
+
* @param {*} [options] Override http request option.
|
|
2281
|
+
* @throws {RequiredError}
|
|
2282
|
+
*/
|
|
2283
|
+
getOpenBookingPrice(requestParameters, options) {
|
|
2284
|
+
return localVarFp.getOpenBookingPrice(requestParameters.getOpenBookingPriceRequest, options).then((request) => request(axios, basePath));
|
|
2285
|
+
},
|
|
2160
2286
|
/**
|
|
2161
2287
|
* Mettre à jour une réservation ouverte (description et niveau minimal)
|
|
2162
2288
|
* @param {BookingsUserApiUpdateOpenBookingRequest} requestParameters Request parameters.
|
|
@@ -2205,6 +2331,16 @@ export class BookingsUserApi extends BaseAPI {
|
|
|
2205
2331
|
createOpenBooking(requestParameters, options) {
|
|
2206
2332
|
return BookingsUserApiFp(this.configuration).createOpenBooking(requestParameters.createOpenBookingRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2207
2333
|
}
|
|
2334
|
+
/**
|
|
2335
|
+
* Calculer le prix d\'une réservation ouverte avec joueurs initiaux
|
|
2336
|
+
* @param {BookingsUserApiGetOpenBookingPriceRequest} requestParameters Request parameters.
|
|
2337
|
+
* @param {*} [options] Override http request option.
|
|
2338
|
+
* @throws {RequiredError}
|
|
2339
|
+
* @memberof BookingsUserApi
|
|
2340
|
+
*/
|
|
2341
|
+
getOpenBookingPrice(requestParameters, options) {
|
|
2342
|
+
return BookingsUserApiFp(this.configuration).getOpenBookingPrice(requestParameters.getOpenBookingPriceRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2343
|
+
}
|
|
2208
2344
|
/**
|
|
2209
2345
|
* Mettre à jour une réservation ouverte (description et niveau minimal)
|
|
2210
2346
|
* @param {BookingsUserApiUpdateOpenBookingRequest} requestParameters Request parameters.
|
package/dist/esm/base.d.ts
CHANGED
package/dist/esm/base.js
CHANGED