@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/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/api.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* openapi.json
|
|
6
6
|
* Pandook API Documentation
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.
|
|
8
|
+
* The version of the OpenAPI document: 1.0.177
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -592,6 +592,41 @@ const BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
592
592
|
options: localVarRequestOptions,
|
|
593
593
|
};
|
|
594
594
|
}),
|
|
595
|
+
/**
|
|
596
|
+
* 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
|
|
597
|
+
* @param {string} bookingId
|
|
598
|
+
* @param {number} [creditToUseInCents]
|
|
599
|
+
* @param {*} [options] Override http request option.
|
|
600
|
+
* @throws {RequiredError}
|
|
601
|
+
*/
|
|
602
|
+
getJoinPriceEstimate: (bookingId_1, creditToUseInCents_1, ...args_1) => __awaiter(this, [bookingId_1, creditToUseInCents_1, ...args_1], void 0, function* (bookingId, creditToUseInCents, options = {}) {
|
|
603
|
+
// verify required parameter 'bookingId' is not null or undefined
|
|
604
|
+
(0, common_1.assertParamExists)('getJoinPriceEstimate', 'bookingId', bookingId);
|
|
605
|
+
const localVarPath = `/api/bookings/{bookingId}/join-price-estimate`
|
|
606
|
+
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
607
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
608
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
609
|
+
let baseOptions;
|
|
610
|
+
if (configuration) {
|
|
611
|
+
baseOptions = configuration.baseOptions;
|
|
612
|
+
}
|
|
613
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
614
|
+
const localVarHeaderParameter = {};
|
|
615
|
+
const localVarQueryParameter = {};
|
|
616
|
+
// authentication bearerAuth required
|
|
617
|
+
// http bearer authentication required
|
|
618
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
619
|
+
if (creditToUseInCents !== undefined) {
|
|
620
|
+
localVarQueryParameter['creditToUseInCents'] = creditToUseInCents;
|
|
621
|
+
}
|
|
622
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
623
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
624
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
625
|
+
return {
|
|
626
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
627
|
+
options: localVarRequestOptions,
|
|
628
|
+
};
|
|
629
|
+
}),
|
|
595
630
|
/**
|
|
596
631
|
* Estimer simplement le prix à payer pour rejoindre une réservation ouverte
|
|
597
632
|
* @param {string} bookingId
|
|
@@ -875,6 +910,22 @@ const BookingsApiFp = function (configuration) {
|
|
|
875
910
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
876
911
|
});
|
|
877
912
|
},
|
|
913
|
+
/**
|
|
914
|
+
* 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
|
|
915
|
+
* @param {string} bookingId
|
|
916
|
+
* @param {number} [creditToUseInCents]
|
|
917
|
+
* @param {*} [options] Override http request option.
|
|
918
|
+
* @throws {RequiredError}
|
|
919
|
+
*/
|
|
920
|
+
getJoinPriceEstimate(bookingId, creditToUseInCents, options) {
|
|
921
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
922
|
+
var _a, _b, _c;
|
|
923
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getJoinPriceEstimate(bookingId, creditToUseInCents, options);
|
|
924
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
925
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsApi.getJoinPriceEstimate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
926
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
927
|
+
});
|
|
928
|
+
},
|
|
878
929
|
/**
|
|
879
930
|
* Estimer simplement le prix à payer pour rejoindre une réservation ouverte
|
|
880
931
|
* @param {string} bookingId
|
|
@@ -1016,6 +1067,15 @@ const BookingsApiFactory = function (configuration, basePath, axios) {
|
|
|
1016
1067
|
getGuestBookingPrice(requestParameters, options) {
|
|
1017
1068
|
return localVarFp.getGuestBookingPrice(requestParameters.getGuestBookingPriceRequest, options).then((request) => request(axios, basePath));
|
|
1018
1069
|
},
|
|
1070
|
+
/**
|
|
1071
|
+
* 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
|
|
1072
|
+
* @param {BookingsApiGetJoinPriceEstimateRequest} requestParameters Request parameters.
|
|
1073
|
+
* @param {*} [options] Override http request option.
|
|
1074
|
+
* @throws {RequiredError}
|
|
1075
|
+
*/
|
|
1076
|
+
getJoinPriceEstimate(requestParameters, options) {
|
|
1077
|
+
return localVarFp.getJoinPriceEstimate(requestParameters.bookingId, requestParameters.creditToUseInCents, options).then((request) => request(axios, basePath));
|
|
1078
|
+
},
|
|
1019
1079
|
/**
|
|
1020
1080
|
* Estimer simplement le prix à payer pour rejoindre une réservation ouverte
|
|
1021
1081
|
* @param {BookingsApiGetOpenBookingJoinPriceRequest} requestParameters Request parameters.
|
|
@@ -1121,6 +1181,16 @@ class BookingsApi extends base_1.BaseAPI {
|
|
|
1121
1181
|
getGuestBookingPrice(requestParameters, options) {
|
|
1122
1182
|
return (0, exports.BookingsApiFp)(this.configuration).getGuestBookingPrice(requestParameters.getGuestBookingPriceRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1123
1183
|
}
|
|
1184
|
+
/**
|
|
1185
|
+
* 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
|
|
1186
|
+
* @param {BookingsApiGetJoinPriceEstimateRequest} requestParameters Request parameters.
|
|
1187
|
+
* @param {*} [options] Override http request option.
|
|
1188
|
+
* @throws {RequiredError}
|
|
1189
|
+
* @memberof BookingsApi
|
|
1190
|
+
*/
|
|
1191
|
+
getJoinPriceEstimate(requestParameters, options) {
|
|
1192
|
+
return (0, exports.BookingsApiFp)(this.configuration).getJoinPriceEstimate(requestParameters.bookingId, requestParameters.creditToUseInCents, options).then((request) => request(this.axios, this.basePath));
|
|
1193
|
+
}
|
|
1124
1194
|
/**
|
|
1125
1195
|
* Estimer simplement le prix à payer pour rejoindre une réservation ouverte
|
|
1126
1196
|
* @param {BookingsApiGetOpenBookingJoinPriceRequest} requestParameters Request parameters.
|
|
@@ -2033,6 +2103,38 @@ const BookingsUserApiAxiosParamCreator = function (configuration) {
|
|
|
2033
2103
|
options: localVarRequestOptions,
|
|
2034
2104
|
};
|
|
2035
2105
|
}),
|
|
2106
|
+
/**
|
|
2107
|
+
* Calculer le prix d\'une réservation ouverte avec joueurs initiaux
|
|
2108
|
+
* @param {GetOpenBookingPriceRequest} getOpenBookingPriceRequest
|
|
2109
|
+
* @param {*} [options] Override http request option.
|
|
2110
|
+
* @throws {RequiredError}
|
|
2111
|
+
*/
|
|
2112
|
+
getOpenBookingPrice: (getOpenBookingPriceRequest_1, ...args_1) => __awaiter(this, [getOpenBookingPriceRequest_1, ...args_1], void 0, function* (getOpenBookingPriceRequest, options = {}) {
|
|
2113
|
+
// verify required parameter 'getOpenBookingPriceRequest' is not null or undefined
|
|
2114
|
+
(0, common_1.assertParamExists)('getOpenBookingPrice', 'getOpenBookingPriceRequest', getOpenBookingPriceRequest);
|
|
2115
|
+
const localVarPath = `/api/bookings/open/booking-price`;
|
|
2116
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2117
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2118
|
+
let baseOptions;
|
|
2119
|
+
if (configuration) {
|
|
2120
|
+
baseOptions = configuration.baseOptions;
|
|
2121
|
+
}
|
|
2122
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
2123
|
+
const localVarHeaderParameter = {};
|
|
2124
|
+
const localVarQueryParameter = {};
|
|
2125
|
+
// authentication bearerAuth required
|
|
2126
|
+
// http bearer authentication required
|
|
2127
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2128
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2129
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2130
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2131
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2132
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(getOpenBookingPriceRequest, localVarRequestOptions, configuration);
|
|
2133
|
+
return {
|
|
2134
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2135
|
+
options: localVarRequestOptions,
|
|
2136
|
+
};
|
|
2137
|
+
}),
|
|
2036
2138
|
/**
|
|
2037
2139
|
* Mettre à jour une réservation ouverte (description et niveau minimal)
|
|
2038
2140
|
* @param {string} bookingId
|
|
@@ -2124,6 +2226,21 @@ const BookingsUserApiFp = function (configuration) {
|
|
|
2124
2226
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2125
2227
|
});
|
|
2126
2228
|
},
|
|
2229
|
+
/**
|
|
2230
|
+
* Calculer le prix d\'une réservation ouverte avec joueurs initiaux
|
|
2231
|
+
* @param {GetOpenBookingPriceRequest} getOpenBookingPriceRequest
|
|
2232
|
+
* @param {*} [options] Override http request option.
|
|
2233
|
+
* @throws {RequiredError}
|
|
2234
|
+
*/
|
|
2235
|
+
getOpenBookingPrice(getOpenBookingPriceRequest, options) {
|
|
2236
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2237
|
+
var _a, _b, _c;
|
|
2238
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getOpenBookingPrice(getOpenBookingPriceRequest, options);
|
|
2239
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2240
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsUserApi.getOpenBookingPrice']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2241
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2242
|
+
});
|
|
2243
|
+
},
|
|
2127
2244
|
/**
|
|
2128
2245
|
* Mettre à jour une réservation ouverte (description et niveau minimal)
|
|
2129
2246
|
* @param {string} bookingId
|
|
@@ -2177,6 +2294,15 @@ const BookingsUserApiFactory = function (configuration, basePath, axios) {
|
|
|
2177
2294
|
createOpenBooking(requestParameters, options) {
|
|
2178
2295
|
return localVarFp.createOpenBooking(requestParameters.createOpenBookingRequest, options).then((request) => request(axios, basePath));
|
|
2179
2296
|
},
|
|
2297
|
+
/**
|
|
2298
|
+
* Calculer le prix d\'une réservation ouverte avec joueurs initiaux
|
|
2299
|
+
* @param {BookingsUserApiGetOpenBookingPriceRequest} requestParameters Request parameters.
|
|
2300
|
+
* @param {*} [options] Override http request option.
|
|
2301
|
+
* @throws {RequiredError}
|
|
2302
|
+
*/
|
|
2303
|
+
getOpenBookingPrice(requestParameters, options) {
|
|
2304
|
+
return localVarFp.getOpenBookingPrice(requestParameters.getOpenBookingPriceRequest, options).then((request) => request(axios, basePath));
|
|
2305
|
+
},
|
|
2180
2306
|
/**
|
|
2181
2307
|
* Mettre à jour une réservation ouverte (description et niveau minimal)
|
|
2182
2308
|
* @param {BookingsUserApiUpdateOpenBookingRequest} requestParameters Request parameters.
|
|
@@ -2226,6 +2352,16 @@ class BookingsUserApi extends base_1.BaseAPI {
|
|
|
2226
2352
|
createOpenBooking(requestParameters, options) {
|
|
2227
2353
|
return (0, exports.BookingsUserApiFp)(this.configuration).createOpenBooking(requestParameters.createOpenBookingRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2228
2354
|
}
|
|
2355
|
+
/**
|
|
2356
|
+
* Calculer le prix d\'une réservation ouverte avec joueurs initiaux
|
|
2357
|
+
* @param {BookingsUserApiGetOpenBookingPriceRequest} requestParameters Request parameters.
|
|
2358
|
+
* @param {*} [options] Override http request option.
|
|
2359
|
+
* @throws {RequiredError}
|
|
2360
|
+
* @memberof BookingsUserApi
|
|
2361
|
+
*/
|
|
2362
|
+
getOpenBookingPrice(requestParameters, options) {
|
|
2363
|
+
return (0, exports.BookingsUserApiFp)(this.configuration).getOpenBookingPrice(requestParameters.getOpenBookingPriceRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2364
|
+
}
|
|
2229
2365
|
/**
|
|
2230
2366
|
* Mettre à jour une réservation ouverte (description et niveau minimal)
|
|
2231
2367
|
* @param {BookingsUserApiUpdateOpenBookingRequest} requestParameters Request parameters.
|
package/dist/base.d.ts
CHANGED
package/dist/base.js
CHANGED
package/dist/common.d.ts
CHANGED
package/dist/common.js
CHANGED