@tennac-booking/sdk 1.0.148 → 1.0.150
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 +368 -364
- package/README.md +11 -2
- package/api.ts +638 -1
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +419 -1
- package/dist/api.js +336 -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 +419 -1
- package/dist/esm/api.js +336 -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/BookingsApi.md +160 -0
- package/docs/CreateGuestBookingRequest.md +32 -0
- package/docs/EstimateOpenEventBookingJoinPrice200Response.md +28 -0
- package/docs/EstimateOpenEventBookingJoinPrice200ResponseSubscriptionInfo.md +24 -0
- package/docs/EventsApi.md +111 -0
- package/docs/Gender.md +4 -0
- package/docs/GetOpenEventBookingJoinPrice200Response.md +22 -0
- package/docs/IUserAttributes.md +4 -0
- package/docs/RegisterRequestBody.md +4 -0
- package/docs/StaffUserProfileResponse.md +4 -0
- package/docs/UpdateUserRequestBody.md +4 -0
- package/docs/UserProfileResponse.md +4 -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.150
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4172,6 +4172,57 @@ export const CreateEventRequestVisibilityTypeEnum = {
|
|
|
4172
4172
|
|
|
4173
4173
|
export type CreateEventRequestVisibilityTypeEnum = typeof CreateEventRequestVisibilityTypeEnum[keyof typeof CreateEventRequestVisibilityTypeEnum];
|
|
4174
4174
|
|
|
4175
|
+
/**
|
|
4176
|
+
*
|
|
4177
|
+
* @export
|
|
4178
|
+
* @interface CreateGuestBookingRequest
|
|
4179
|
+
*/
|
|
4180
|
+
export interface CreateGuestBookingRequest {
|
|
4181
|
+
/**
|
|
4182
|
+
* ID du créneau à réserver
|
|
4183
|
+
* @type {Array<string>}
|
|
4184
|
+
* @memberof CreateGuestBookingRequest
|
|
4185
|
+
*/
|
|
4186
|
+
'slotIds': Array<string>;
|
|
4187
|
+
/**
|
|
4188
|
+
* Prénom de l\'invité
|
|
4189
|
+
* @type {string}
|
|
4190
|
+
* @memberof CreateGuestBookingRequest
|
|
4191
|
+
*/
|
|
4192
|
+
'firstName': string;
|
|
4193
|
+
/**
|
|
4194
|
+
* Nom de famille de l\'invité
|
|
4195
|
+
* @type {string}
|
|
4196
|
+
* @memberof CreateGuestBookingRequest
|
|
4197
|
+
*/
|
|
4198
|
+
'lastName': string;
|
|
4199
|
+
/**
|
|
4200
|
+
* Email de l\'invité
|
|
4201
|
+
* @type {string}
|
|
4202
|
+
* @memberof CreateGuestBookingRequest
|
|
4203
|
+
*/
|
|
4204
|
+
'email': string;
|
|
4205
|
+
/**
|
|
4206
|
+
* Numéro de téléphone de l\'invité
|
|
4207
|
+
* @type {string}
|
|
4208
|
+
* @memberof CreateGuestBookingRequest
|
|
4209
|
+
*/
|
|
4210
|
+
'phoneNumber'?: string;
|
|
4211
|
+
/**
|
|
4212
|
+
*
|
|
4213
|
+
* @type {PaymentMethod}
|
|
4214
|
+
* @memberof CreateGuestBookingRequest
|
|
4215
|
+
*/
|
|
4216
|
+
'paymentMethod': PaymentMethod;
|
|
4217
|
+
/**
|
|
4218
|
+
* Indique si l\'utilisateur veut utiliser sa méthode de paiement par défaut
|
|
4219
|
+
* @type {boolean}
|
|
4220
|
+
* @memberof CreateGuestBookingRequest
|
|
4221
|
+
*/
|
|
4222
|
+
'useDefaultPaymentMethod'?: boolean;
|
|
4223
|
+
}
|
|
4224
|
+
|
|
4225
|
+
|
|
4175
4226
|
/**
|
|
4176
4227
|
*
|
|
4177
4228
|
* @export
|
|
@@ -4780,6 +4831,68 @@ export interface EstimateEventPriceRequestSharesInner {
|
|
|
4780
4831
|
*/
|
|
4781
4832
|
'playerId': string;
|
|
4782
4833
|
}
|
|
4834
|
+
/**
|
|
4835
|
+
*
|
|
4836
|
+
* @export
|
|
4837
|
+
* @interface EstimateOpenEventBookingJoinPrice200Response
|
|
4838
|
+
*/
|
|
4839
|
+
export interface EstimateOpenEventBookingJoinPrice200Response {
|
|
4840
|
+
/**
|
|
4841
|
+
*
|
|
4842
|
+
* @type {EstimateOpenEventBookingJoinPrice200ResponseSubscriptionInfo}
|
|
4843
|
+
* @memberof EstimateOpenEventBookingJoinPrice200Response
|
|
4844
|
+
*/
|
|
4845
|
+
'subscriptionInfo'?: EstimateOpenEventBookingJoinPrice200ResponseSubscriptionInfo;
|
|
4846
|
+
/**
|
|
4847
|
+
*
|
|
4848
|
+
* @type {number}
|
|
4849
|
+
* @memberof EstimateOpenEventBookingJoinPrice200Response
|
|
4850
|
+
*/
|
|
4851
|
+
'finalPrice': number;
|
|
4852
|
+
/**
|
|
4853
|
+
*
|
|
4854
|
+
* @type {number}
|
|
4855
|
+
* @memberof EstimateOpenEventBookingJoinPrice200Response
|
|
4856
|
+
*/
|
|
4857
|
+
'creditApplied': number;
|
|
4858
|
+
/**
|
|
4859
|
+
*
|
|
4860
|
+
* @type {number}
|
|
4861
|
+
* @memberof EstimateOpenEventBookingJoinPrice200Response
|
|
4862
|
+
*/
|
|
4863
|
+
'discountedPrice': number;
|
|
4864
|
+
/**
|
|
4865
|
+
*
|
|
4866
|
+
* @type {number}
|
|
4867
|
+
* @memberof EstimateOpenEventBookingJoinPrice200Response
|
|
4868
|
+
*/
|
|
4869
|
+
'basePrice': number;
|
|
4870
|
+
}
|
|
4871
|
+
/**
|
|
4872
|
+
*
|
|
4873
|
+
* @export
|
|
4874
|
+
* @interface EstimateOpenEventBookingJoinPrice200ResponseSubscriptionInfo
|
|
4875
|
+
*/
|
|
4876
|
+
export interface EstimateOpenEventBookingJoinPrice200ResponseSubscriptionInfo {
|
|
4877
|
+
/**
|
|
4878
|
+
*
|
|
4879
|
+
* @type {string}
|
|
4880
|
+
* @memberof EstimateOpenEventBookingJoinPrice200ResponseSubscriptionInfo
|
|
4881
|
+
*/
|
|
4882
|
+
'subscriptionName'?: string;
|
|
4883
|
+
/**
|
|
4884
|
+
*
|
|
4885
|
+
* @type {number}
|
|
4886
|
+
* @memberof EstimateOpenEventBookingJoinPrice200ResponseSubscriptionInfo
|
|
4887
|
+
*/
|
|
4888
|
+
'discountPercentage'?: number;
|
|
4889
|
+
/**
|
|
4890
|
+
*
|
|
4891
|
+
* @type {boolean}
|
|
4892
|
+
* @memberof EstimateOpenEventBookingJoinPrice200ResponseSubscriptionInfo
|
|
4893
|
+
*/
|
|
4894
|
+
'hasSubscription': boolean;
|
|
4895
|
+
}
|
|
4783
4896
|
/**
|
|
4784
4897
|
*
|
|
4785
4898
|
* @export
|
|
@@ -5526,6 +5639,8 @@ export interface FavoritePlayersResponse {
|
|
|
5526
5639
|
export const Gender = {
|
|
5527
5640
|
Male: 'male',
|
|
5528
5641
|
Female: 'female',
|
|
5642
|
+
NonBinary: 'non_binary',
|
|
5643
|
+
Transgender: 'transgender',
|
|
5529
5644
|
Other: 'other'
|
|
5530
5645
|
} as const;
|
|
5531
5646
|
|
|
@@ -5747,6 +5862,25 @@ export interface GetOpenBookings200Response {
|
|
|
5747
5862
|
*/
|
|
5748
5863
|
'bookings': Array<BookingInfo>;
|
|
5749
5864
|
}
|
|
5865
|
+
/**
|
|
5866
|
+
*
|
|
5867
|
+
* @export
|
|
5868
|
+
* @interface GetOpenEventBookingJoinPrice200Response
|
|
5869
|
+
*/
|
|
5870
|
+
export interface GetOpenEventBookingJoinPrice200Response {
|
|
5871
|
+
/**
|
|
5872
|
+
*
|
|
5873
|
+
* @type {number}
|
|
5874
|
+
* @memberof GetOpenEventBookingJoinPrice200Response
|
|
5875
|
+
*/
|
|
5876
|
+
'availableCreditsInCents': number;
|
|
5877
|
+
/**
|
|
5878
|
+
*
|
|
5879
|
+
* @type {number}
|
|
5880
|
+
* @memberof GetOpenEventBookingJoinPrice200Response
|
|
5881
|
+
*/
|
|
5882
|
+
'priceToPayInCents': number;
|
|
5883
|
+
}
|
|
5750
5884
|
/**
|
|
5751
5885
|
*
|
|
5752
5886
|
* @export
|
|
@@ -6094,6 +6228,12 @@ export interface IUserAttributes {
|
|
|
6094
6228
|
* @memberof IUserAttributes
|
|
6095
6229
|
*/
|
|
6096
6230
|
'phone'?: string;
|
|
6231
|
+
/**
|
|
6232
|
+
*
|
|
6233
|
+
* @type {string}
|
|
6234
|
+
* @memberof IUserAttributes
|
|
6235
|
+
*/
|
|
6236
|
+
'birthDate'?: string;
|
|
6097
6237
|
/**
|
|
6098
6238
|
*
|
|
6099
6239
|
* @type {string}
|
|
@@ -6136,6 +6276,12 @@ export interface IUserAttributes {
|
|
|
6136
6276
|
* @memberof IUserAttributes
|
|
6137
6277
|
*/
|
|
6138
6278
|
'organizations'?: Array<IUserAttributesOrganizationsInner>;
|
|
6279
|
+
/**
|
|
6280
|
+
*
|
|
6281
|
+
* @type {boolean}
|
|
6282
|
+
* @memberof IUserAttributes
|
|
6283
|
+
*/
|
|
6284
|
+
'isGuest'?: boolean;
|
|
6139
6285
|
/**
|
|
6140
6286
|
*
|
|
6141
6287
|
* @type {boolean}
|
|
@@ -8774,6 +8920,18 @@ export interface RegisterRequestBody {
|
|
|
8774
8920
|
* @memberof RegisterRequestBody
|
|
8775
8921
|
*/
|
|
8776
8922
|
'phone'?: string;
|
|
8923
|
+
/**
|
|
8924
|
+
*
|
|
8925
|
+
* @type {Gender}
|
|
8926
|
+
* @memberof RegisterRequestBody
|
|
8927
|
+
*/
|
|
8928
|
+
'gender'?: Gender;
|
|
8929
|
+
/**
|
|
8930
|
+
*
|
|
8931
|
+
* @type {string}
|
|
8932
|
+
* @memberof RegisterRequestBody
|
|
8933
|
+
*/
|
|
8934
|
+
'birthDate'?: string;
|
|
8777
8935
|
/**
|
|
8778
8936
|
*
|
|
8779
8937
|
* @type {string}
|
|
@@ -8799,6 +8957,8 @@ export interface RegisterRequestBody {
|
|
|
8799
8957
|
*/
|
|
8800
8958
|
'organizationEmail'?: string;
|
|
8801
8959
|
}
|
|
8960
|
+
|
|
8961
|
+
|
|
8802
8962
|
/**
|
|
8803
8963
|
*
|
|
8804
8964
|
* @export
|
|
@@ -9766,6 +9926,12 @@ export interface StaffUserProfileResponse {
|
|
|
9766
9926
|
* @memberof StaffUserProfileResponse
|
|
9767
9927
|
*/
|
|
9768
9928
|
'phone'?: string;
|
|
9929
|
+
/**
|
|
9930
|
+
*
|
|
9931
|
+
* @type {string}
|
|
9932
|
+
* @memberof StaffUserProfileResponse
|
|
9933
|
+
*/
|
|
9934
|
+
'birthDate'?: string;
|
|
9769
9935
|
/**
|
|
9770
9936
|
*
|
|
9771
9937
|
* @type {string}
|
|
@@ -9808,6 +9974,12 @@ export interface StaffUserProfileResponse {
|
|
|
9808
9974
|
* @memberof StaffUserProfileResponse
|
|
9809
9975
|
*/
|
|
9810
9976
|
'organizations'?: Array<IUserAttributesOrganizationsInner>;
|
|
9977
|
+
/**
|
|
9978
|
+
*
|
|
9979
|
+
* @type {boolean}
|
|
9980
|
+
* @memberof StaffUserProfileResponse
|
|
9981
|
+
*/
|
|
9982
|
+
'isGuest'?: boolean;
|
|
9811
9983
|
/**
|
|
9812
9984
|
*
|
|
9813
9985
|
* @type {boolean}
|
|
@@ -11177,6 +11349,18 @@ export interface UpdateUserRequestBody {
|
|
|
11177
11349
|
* @memberof UpdateUserRequestBody
|
|
11178
11350
|
*/
|
|
11179
11351
|
'phone'?: string;
|
|
11352
|
+
/**
|
|
11353
|
+
*
|
|
11354
|
+
* @type {Gender}
|
|
11355
|
+
* @memberof UpdateUserRequestBody
|
|
11356
|
+
*/
|
|
11357
|
+
'gender'?: Gender;
|
|
11358
|
+
/**
|
|
11359
|
+
*
|
|
11360
|
+
* @type {string}
|
|
11361
|
+
* @memberof UpdateUserRequestBody
|
|
11362
|
+
*/
|
|
11363
|
+
'birthDate'?: string;
|
|
11180
11364
|
/**
|
|
11181
11365
|
*
|
|
11182
11366
|
* @type {string}
|
|
@@ -11214,6 +11398,8 @@ export interface UpdateUserRequestBody {
|
|
|
11214
11398
|
*/
|
|
11215
11399
|
'location'?: RegisterRequestBodyLocation;
|
|
11216
11400
|
}
|
|
11401
|
+
|
|
11402
|
+
|
|
11217
11403
|
/**
|
|
11218
11404
|
*
|
|
11219
11405
|
* @export
|
|
@@ -11812,6 +11998,12 @@ export interface UserProfileResponse {
|
|
|
11812
11998
|
* @memberof UserProfileResponse
|
|
11813
11999
|
*/
|
|
11814
12000
|
'phone'?: string;
|
|
12001
|
+
/**
|
|
12002
|
+
*
|
|
12003
|
+
* @type {string}
|
|
12004
|
+
* @memberof UserProfileResponse
|
|
12005
|
+
*/
|
|
12006
|
+
'birthDate'?: string;
|
|
11815
12007
|
/**
|
|
11816
12008
|
*
|
|
11817
12009
|
* @type {string}
|
|
@@ -11854,6 +12046,12 @@ export interface UserProfileResponse {
|
|
|
11854
12046
|
* @memberof UserProfileResponse
|
|
11855
12047
|
*/
|
|
11856
12048
|
'organizations'?: Array<IUserAttributesOrganizationsInner>;
|
|
12049
|
+
/**
|
|
12050
|
+
*
|
|
12051
|
+
* @type {boolean}
|
|
12052
|
+
* @memberof UserProfileResponse
|
|
12053
|
+
*/
|
|
12054
|
+
'isGuest'?: boolean;
|
|
11857
12055
|
/**
|
|
11858
12056
|
*
|
|
11859
12057
|
* @type {boolean}
|
|
@@ -12119,6 +12317,83 @@ export interface YearlyTurnoverResponse {
|
|
|
12119
12317
|
*/
|
|
12120
12318
|
export const BookingsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
12121
12319
|
return {
|
|
12320
|
+
/**
|
|
12321
|
+
* Créer une réservation en tant qu\'invité (guest)
|
|
12322
|
+
* @param {CreateGuestBookingRequest} createGuestBookingRequest
|
|
12323
|
+
* @param {*} [options] Override http request option.
|
|
12324
|
+
* @throws {RequiredError}
|
|
12325
|
+
*/
|
|
12326
|
+
createGuestBooking: async (createGuestBookingRequest: CreateGuestBookingRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
12327
|
+
// verify required parameter 'createGuestBookingRequest' is not null or undefined
|
|
12328
|
+
assertParamExists('createGuestBooking', 'createGuestBookingRequest', createGuestBookingRequest)
|
|
12329
|
+
const localVarPath = `/api/bookings/guest`;
|
|
12330
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12331
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12332
|
+
let baseOptions;
|
|
12333
|
+
if (configuration) {
|
|
12334
|
+
baseOptions = configuration.baseOptions;
|
|
12335
|
+
}
|
|
12336
|
+
|
|
12337
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
12338
|
+
const localVarHeaderParameter = {} as any;
|
|
12339
|
+
const localVarQueryParameter = {} as any;
|
|
12340
|
+
|
|
12341
|
+
|
|
12342
|
+
|
|
12343
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
12344
|
+
|
|
12345
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12346
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12347
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
12348
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createGuestBookingRequest, localVarRequestOptions, configuration)
|
|
12349
|
+
|
|
12350
|
+
return {
|
|
12351
|
+
url: toPathString(localVarUrlObj),
|
|
12352
|
+
options: localVarRequestOptions,
|
|
12353
|
+
};
|
|
12354
|
+
},
|
|
12355
|
+
/**
|
|
12356
|
+
* Estimer le prix pour rejoindre une réservation ouverte
|
|
12357
|
+
* @param {string} bookingId
|
|
12358
|
+
* @param {number} [creditToUseInCents]
|
|
12359
|
+
* @param {*} [options] Override http request option.
|
|
12360
|
+
* @throws {RequiredError}
|
|
12361
|
+
*/
|
|
12362
|
+
estimateOpenBookingJoinPrice: async (bookingId: string, creditToUseInCents?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
12363
|
+
// verify required parameter 'bookingId' is not null or undefined
|
|
12364
|
+
assertParamExists('estimateOpenBookingJoinPrice', 'bookingId', bookingId)
|
|
12365
|
+
const localVarPath = `/api/bookings/{bookingId}/open/estimate`
|
|
12366
|
+
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
12367
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12368
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12369
|
+
let baseOptions;
|
|
12370
|
+
if (configuration) {
|
|
12371
|
+
baseOptions = configuration.baseOptions;
|
|
12372
|
+
}
|
|
12373
|
+
|
|
12374
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
12375
|
+
const localVarHeaderParameter = {} as any;
|
|
12376
|
+
const localVarQueryParameter = {} as any;
|
|
12377
|
+
|
|
12378
|
+
// authentication bearerAuth required
|
|
12379
|
+
// http bearer authentication required
|
|
12380
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
12381
|
+
|
|
12382
|
+
if (creditToUseInCents !== undefined) {
|
|
12383
|
+
localVarQueryParameter['creditToUseInCents'] = creditToUseInCents;
|
|
12384
|
+
}
|
|
12385
|
+
|
|
12386
|
+
|
|
12387
|
+
|
|
12388
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12389
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12390
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
12391
|
+
|
|
12392
|
+
return {
|
|
12393
|
+
url: toPathString(localVarUrlObj),
|
|
12394
|
+
options: localVarRequestOptions,
|
|
12395
|
+
};
|
|
12396
|
+
},
|
|
12122
12397
|
/**
|
|
12123
12398
|
* Obtenir l\'historique d\'une réservation par ID
|
|
12124
12399
|
* @param {string} bookingId
|
|
@@ -12195,6 +12470,43 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
12195
12470
|
options: localVarRequestOptions,
|
|
12196
12471
|
};
|
|
12197
12472
|
},
|
|
12473
|
+
/**
|
|
12474
|
+
* Estimer simplement le prix à payer pour rejoindre une réservation ouverte
|
|
12475
|
+
* @param {string} bookingId
|
|
12476
|
+
* @param {*} [options] Override http request option.
|
|
12477
|
+
* @throws {RequiredError}
|
|
12478
|
+
*/
|
|
12479
|
+
getOpenBookingJoinPrice: async (bookingId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
12480
|
+
// verify required parameter 'bookingId' is not null or undefined
|
|
12481
|
+
assertParamExists('getOpenBookingJoinPrice', 'bookingId', bookingId)
|
|
12482
|
+
const localVarPath = `/api/bookings/{bookingId}/open/join-price`
|
|
12483
|
+
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
12484
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12485
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12486
|
+
let baseOptions;
|
|
12487
|
+
if (configuration) {
|
|
12488
|
+
baseOptions = configuration.baseOptions;
|
|
12489
|
+
}
|
|
12490
|
+
|
|
12491
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
12492
|
+
const localVarHeaderParameter = {} as any;
|
|
12493
|
+
const localVarQueryParameter = {} as any;
|
|
12494
|
+
|
|
12495
|
+
// authentication bearerAuth required
|
|
12496
|
+
// http bearer authentication required
|
|
12497
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
12498
|
+
|
|
12499
|
+
|
|
12500
|
+
|
|
12501
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12502
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12503
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
12504
|
+
|
|
12505
|
+
return {
|
|
12506
|
+
url: toPathString(localVarUrlObj),
|
|
12507
|
+
options: localVarRequestOptions,
|
|
12508
|
+
};
|
|
12509
|
+
},
|
|
12198
12510
|
/**
|
|
12199
12511
|
*
|
|
12200
12512
|
* @param {string} [clubId]
|
|
@@ -12407,6 +12719,31 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
12407
12719
|
export const BookingsApiFp = function(configuration?: Configuration) {
|
|
12408
12720
|
const localVarAxiosParamCreator = BookingsApiAxiosParamCreator(configuration)
|
|
12409
12721
|
return {
|
|
12722
|
+
/**
|
|
12723
|
+
* Créer une réservation en tant qu\'invité (guest)
|
|
12724
|
+
* @param {CreateGuestBookingRequest} createGuestBookingRequest
|
|
12725
|
+
* @param {*} [options] Override http request option.
|
|
12726
|
+
* @throws {RequiredError}
|
|
12727
|
+
*/
|
|
12728
|
+
async createGuestBooking(createGuestBookingRequest: CreateGuestBookingRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BookingResponse>> {
|
|
12729
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createGuestBooking(createGuestBookingRequest, options);
|
|
12730
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
12731
|
+
const localVarOperationServerBasePath = operationServerMap['BookingsApi.createGuestBooking']?.[localVarOperationServerIndex]?.url;
|
|
12732
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12733
|
+
},
|
|
12734
|
+
/**
|
|
12735
|
+
* Estimer le prix pour rejoindre une réservation ouverte
|
|
12736
|
+
* @param {string} bookingId
|
|
12737
|
+
* @param {number} [creditToUseInCents]
|
|
12738
|
+
* @param {*} [options] Override http request option.
|
|
12739
|
+
* @throws {RequiredError}
|
|
12740
|
+
*/
|
|
12741
|
+
async estimateOpenBookingJoinPrice(bookingId: string, creditToUseInCents?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EstimateOpenEventBookingJoinPrice200Response>> {
|
|
12742
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.estimateOpenBookingJoinPrice(bookingId, creditToUseInCents, options);
|
|
12743
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
12744
|
+
const localVarOperationServerBasePath = operationServerMap['BookingsApi.estimateOpenBookingJoinPrice']?.[localVarOperationServerIndex]?.url;
|
|
12745
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12746
|
+
},
|
|
12410
12747
|
/**
|
|
12411
12748
|
* Obtenir l\'historique d\'une réservation par ID
|
|
12412
12749
|
* @param {string} bookingId
|
|
@@ -12431,6 +12768,18 @@ export const BookingsApiFp = function(configuration?: Configuration) {
|
|
|
12431
12768
|
const localVarOperationServerBasePath = operationServerMap['BookingsApi.getBookingPrice']?.[localVarOperationServerIndex]?.url;
|
|
12432
12769
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12433
12770
|
},
|
|
12771
|
+
/**
|
|
12772
|
+
* Estimer simplement le prix à payer pour rejoindre une réservation ouverte
|
|
12773
|
+
* @param {string} bookingId
|
|
12774
|
+
* @param {*} [options] Override http request option.
|
|
12775
|
+
* @throws {RequiredError}
|
|
12776
|
+
*/
|
|
12777
|
+
async getOpenBookingJoinPrice(bookingId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetOpenEventBookingJoinPrice200Response>> {
|
|
12778
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getOpenBookingJoinPrice(bookingId, options);
|
|
12779
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
12780
|
+
const localVarOperationServerBasePath = operationServerMap['BookingsApi.getOpenBookingJoinPrice']?.[localVarOperationServerIndex]?.url;
|
|
12781
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12782
|
+
},
|
|
12434
12783
|
/**
|
|
12435
12784
|
*
|
|
12436
12785
|
* @param {string} [clubId]
|
|
@@ -12500,6 +12849,24 @@ export const BookingsApiFp = function(configuration?: Configuration) {
|
|
|
12500
12849
|
export const BookingsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
12501
12850
|
const localVarFp = BookingsApiFp(configuration)
|
|
12502
12851
|
return {
|
|
12852
|
+
/**
|
|
12853
|
+
* Créer une réservation en tant qu\'invité (guest)
|
|
12854
|
+
* @param {BookingsApiCreateGuestBookingRequest} requestParameters Request parameters.
|
|
12855
|
+
* @param {*} [options] Override http request option.
|
|
12856
|
+
* @throws {RequiredError}
|
|
12857
|
+
*/
|
|
12858
|
+
createGuestBooking(requestParameters: BookingsApiCreateGuestBookingRequest, options?: RawAxiosRequestConfig): AxiosPromise<BookingResponse> {
|
|
12859
|
+
return localVarFp.createGuestBooking(requestParameters.createGuestBookingRequest, options).then((request) => request(axios, basePath));
|
|
12860
|
+
},
|
|
12861
|
+
/**
|
|
12862
|
+
* Estimer le prix pour rejoindre une réservation ouverte
|
|
12863
|
+
* @param {BookingsApiEstimateOpenBookingJoinPriceRequest} requestParameters Request parameters.
|
|
12864
|
+
* @param {*} [options] Override http request option.
|
|
12865
|
+
* @throws {RequiredError}
|
|
12866
|
+
*/
|
|
12867
|
+
estimateOpenBookingJoinPrice(requestParameters: BookingsApiEstimateOpenBookingJoinPriceRequest, options?: RawAxiosRequestConfig): AxiosPromise<EstimateOpenEventBookingJoinPrice200Response> {
|
|
12868
|
+
return localVarFp.estimateOpenBookingJoinPrice(requestParameters.bookingId, requestParameters.creditToUseInCents, options).then((request) => request(axios, basePath));
|
|
12869
|
+
},
|
|
12503
12870
|
/**
|
|
12504
12871
|
* Obtenir l\'historique d\'une réservation par ID
|
|
12505
12872
|
* @param {BookingsApiGetBookingHistoryRequest} requestParameters Request parameters.
|
|
@@ -12518,6 +12885,15 @@ export const BookingsApiFactory = function (configuration?: Configuration, baseP
|
|
|
12518
12885
|
getBookingPrice(requestParameters: BookingsApiGetBookingPriceRequest, options?: RawAxiosRequestConfig): AxiosPromise<BookingPriceResponse> {
|
|
12519
12886
|
return localVarFp.getBookingPrice(requestParameters.bookingPriceBody, options).then((request) => request(axios, basePath));
|
|
12520
12887
|
},
|
|
12888
|
+
/**
|
|
12889
|
+
* Estimer simplement le prix à payer pour rejoindre une réservation ouverte
|
|
12890
|
+
* @param {BookingsApiGetOpenBookingJoinPriceRequest} requestParameters Request parameters.
|
|
12891
|
+
* @param {*} [options] Override http request option.
|
|
12892
|
+
* @throws {RequiredError}
|
|
12893
|
+
*/
|
|
12894
|
+
getOpenBookingJoinPrice(requestParameters: BookingsApiGetOpenBookingJoinPriceRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetOpenEventBookingJoinPrice200Response> {
|
|
12895
|
+
return localVarFp.getOpenBookingJoinPrice(requestParameters.bookingId, options).then((request) => request(axios, basePath));
|
|
12896
|
+
},
|
|
12521
12897
|
/**
|
|
12522
12898
|
*
|
|
12523
12899
|
* @param {BookingsApiGetOpenBookingsRequest} requestParameters Request parameters.
|
|
@@ -12557,6 +12933,41 @@ export const BookingsApiFactory = function (configuration?: Configuration, baseP
|
|
|
12557
12933
|
};
|
|
12558
12934
|
};
|
|
12559
12935
|
|
|
12936
|
+
/**
|
|
12937
|
+
* Request parameters for createGuestBooking operation in BookingsApi.
|
|
12938
|
+
* @export
|
|
12939
|
+
* @interface BookingsApiCreateGuestBookingRequest
|
|
12940
|
+
*/
|
|
12941
|
+
export interface BookingsApiCreateGuestBookingRequest {
|
|
12942
|
+
/**
|
|
12943
|
+
*
|
|
12944
|
+
* @type {CreateGuestBookingRequest}
|
|
12945
|
+
* @memberof BookingsApiCreateGuestBooking
|
|
12946
|
+
*/
|
|
12947
|
+
readonly createGuestBookingRequest: CreateGuestBookingRequest
|
|
12948
|
+
}
|
|
12949
|
+
|
|
12950
|
+
/**
|
|
12951
|
+
* Request parameters for estimateOpenBookingJoinPrice operation in BookingsApi.
|
|
12952
|
+
* @export
|
|
12953
|
+
* @interface BookingsApiEstimateOpenBookingJoinPriceRequest
|
|
12954
|
+
*/
|
|
12955
|
+
export interface BookingsApiEstimateOpenBookingJoinPriceRequest {
|
|
12956
|
+
/**
|
|
12957
|
+
*
|
|
12958
|
+
* @type {string}
|
|
12959
|
+
* @memberof BookingsApiEstimateOpenBookingJoinPrice
|
|
12960
|
+
*/
|
|
12961
|
+
readonly bookingId: string
|
|
12962
|
+
|
|
12963
|
+
/**
|
|
12964
|
+
*
|
|
12965
|
+
* @type {number}
|
|
12966
|
+
* @memberof BookingsApiEstimateOpenBookingJoinPrice
|
|
12967
|
+
*/
|
|
12968
|
+
readonly creditToUseInCents?: number
|
|
12969
|
+
}
|
|
12970
|
+
|
|
12560
12971
|
/**
|
|
12561
12972
|
* Request parameters for getBookingHistory operation in BookingsApi.
|
|
12562
12973
|
* @export
|
|
@@ -12585,6 +12996,20 @@ export interface BookingsApiGetBookingPriceRequest {
|
|
|
12585
12996
|
readonly bookingPriceBody: BookingPriceBody
|
|
12586
12997
|
}
|
|
12587
12998
|
|
|
12999
|
+
/**
|
|
13000
|
+
* Request parameters for getOpenBookingJoinPrice operation in BookingsApi.
|
|
13001
|
+
* @export
|
|
13002
|
+
* @interface BookingsApiGetOpenBookingJoinPriceRequest
|
|
13003
|
+
*/
|
|
13004
|
+
export interface BookingsApiGetOpenBookingJoinPriceRequest {
|
|
13005
|
+
/**
|
|
13006
|
+
*
|
|
13007
|
+
* @type {string}
|
|
13008
|
+
* @memberof BookingsApiGetOpenBookingJoinPrice
|
|
13009
|
+
*/
|
|
13010
|
+
readonly bookingId: string
|
|
13011
|
+
}
|
|
13012
|
+
|
|
12588
13013
|
/**
|
|
12589
13014
|
* Request parameters for getOpenBookings operation in BookingsApi.
|
|
12590
13015
|
* @export
|
|
@@ -12725,6 +13150,28 @@ export interface BookingsApiLeaveOpenBookingRequest {
|
|
|
12725
13150
|
* @extends {BaseAPI}
|
|
12726
13151
|
*/
|
|
12727
13152
|
export class BookingsApi extends BaseAPI {
|
|
13153
|
+
/**
|
|
13154
|
+
* Créer une réservation en tant qu\'invité (guest)
|
|
13155
|
+
* @param {BookingsApiCreateGuestBookingRequest} requestParameters Request parameters.
|
|
13156
|
+
* @param {*} [options] Override http request option.
|
|
13157
|
+
* @throws {RequiredError}
|
|
13158
|
+
* @memberof BookingsApi
|
|
13159
|
+
*/
|
|
13160
|
+
public createGuestBooking(requestParameters: BookingsApiCreateGuestBookingRequest, options?: RawAxiosRequestConfig) {
|
|
13161
|
+
return BookingsApiFp(this.configuration).createGuestBooking(requestParameters.createGuestBookingRequest, options).then((request) => request(this.axios, this.basePath));
|
|
13162
|
+
}
|
|
13163
|
+
|
|
13164
|
+
/**
|
|
13165
|
+
* Estimer le prix pour rejoindre une réservation ouverte
|
|
13166
|
+
* @param {BookingsApiEstimateOpenBookingJoinPriceRequest} requestParameters Request parameters.
|
|
13167
|
+
* @param {*} [options] Override http request option.
|
|
13168
|
+
* @throws {RequiredError}
|
|
13169
|
+
* @memberof BookingsApi
|
|
13170
|
+
*/
|
|
13171
|
+
public estimateOpenBookingJoinPrice(requestParameters: BookingsApiEstimateOpenBookingJoinPriceRequest, options?: RawAxiosRequestConfig) {
|
|
13172
|
+
return BookingsApiFp(this.configuration).estimateOpenBookingJoinPrice(requestParameters.bookingId, requestParameters.creditToUseInCents, options).then((request) => request(this.axios, this.basePath));
|
|
13173
|
+
}
|
|
13174
|
+
|
|
12728
13175
|
/**
|
|
12729
13176
|
* Obtenir l\'historique d\'une réservation par ID
|
|
12730
13177
|
* @param {BookingsApiGetBookingHistoryRequest} requestParameters Request parameters.
|
|
@@ -12747,6 +13194,17 @@ export class BookingsApi extends BaseAPI {
|
|
|
12747
13194
|
return BookingsApiFp(this.configuration).getBookingPrice(requestParameters.bookingPriceBody, options).then((request) => request(this.axios, this.basePath));
|
|
12748
13195
|
}
|
|
12749
13196
|
|
|
13197
|
+
/**
|
|
13198
|
+
* Estimer simplement le prix à payer pour rejoindre une réservation ouverte
|
|
13199
|
+
* @param {BookingsApiGetOpenBookingJoinPriceRequest} requestParameters Request parameters.
|
|
13200
|
+
* @param {*} [options] Override http request option.
|
|
13201
|
+
* @throws {RequiredError}
|
|
13202
|
+
* @memberof BookingsApi
|
|
13203
|
+
*/
|
|
13204
|
+
public getOpenBookingJoinPrice(requestParameters: BookingsApiGetOpenBookingJoinPriceRequest, options?: RawAxiosRequestConfig) {
|
|
13205
|
+
return BookingsApiFp(this.configuration).getOpenBookingJoinPrice(requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
|
|
13206
|
+
}
|
|
13207
|
+
|
|
12750
13208
|
/**
|
|
12751
13209
|
*
|
|
12752
13210
|
* @param {BookingsApiGetOpenBookingsRequest} requestParameters Request parameters.
|
|
@@ -22562,6 +23020,48 @@ export const EventsApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
22562
23020
|
options: localVarRequestOptions,
|
|
22563
23021
|
};
|
|
22564
23022
|
},
|
|
23023
|
+
/**
|
|
23024
|
+
* Estimer le prix pour rejoindre un événement ouvert
|
|
23025
|
+
* @param {string} eventBookingId
|
|
23026
|
+
* @param {number} [creditToUseInCents]
|
|
23027
|
+
* @param {*} [options] Override http request option.
|
|
23028
|
+
* @throws {RequiredError}
|
|
23029
|
+
*/
|
|
23030
|
+
estimateOpenEventBookingJoinPrice: async (eventBookingId: string, creditToUseInCents?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
23031
|
+
// verify required parameter 'eventBookingId' is not null or undefined
|
|
23032
|
+
assertParamExists('estimateOpenEventBookingJoinPrice', 'eventBookingId', eventBookingId)
|
|
23033
|
+
const localVarPath = `/api/events/{eventBookingId}/open/estimate`
|
|
23034
|
+
.replace(`{${"eventBookingId"}}`, encodeURIComponent(String(eventBookingId)));
|
|
23035
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
23036
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
23037
|
+
let baseOptions;
|
|
23038
|
+
if (configuration) {
|
|
23039
|
+
baseOptions = configuration.baseOptions;
|
|
23040
|
+
}
|
|
23041
|
+
|
|
23042
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
23043
|
+
const localVarHeaderParameter = {} as any;
|
|
23044
|
+
const localVarQueryParameter = {} as any;
|
|
23045
|
+
|
|
23046
|
+
// authentication bearerAuth required
|
|
23047
|
+
// http bearer authentication required
|
|
23048
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
23049
|
+
|
|
23050
|
+
if (creditToUseInCents !== undefined) {
|
|
23051
|
+
localVarQueryParameter['creditToUseInCents'] = creditToUseInCents;
|
|
23052
|
+
}
|
|
23053
|
+
|
|
23054
|
+
|
|
23055
|
+
|
|
23056
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
23057
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
23058
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
23059
|
+
|
|
23060
|
+
return {
|
|
23061
|
+
url: toPathString(localVarUrlObj),
|
|
23062
|
+
options: localVarRequestOptions,
|
|
23063
|
+
};
|
|
23064
|
+
},
|
|
22565
23065
|
/**
|
|
22566
23066
|
* Get a specific event by ID
|
|
22567
23067
|
* @param {string} eventId
|
|
@@ -22591,6 +23091,43 @@ export const EventsApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
22591
23091
|
|
|
22592
23092
|
|
|
22593
23093
|
|
|
23094
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
23095
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
23096
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
23097
|
+
|
|
23098
|
+
return {
|
|
23099
|
+
url: toPathString(localVarUrlObj),
|
|
23100
|
+
options: localVarRequestOptions,
|
|
23101
|
+
};
|
|
23102
|
+
},
|
|
23103
|
+
/**
|
|
23104
|
+
* Estimer simplement le prix à payer pour rejoindre un événement ouvert
|
|
23105
|
+
* @param {string} eventBookingId
|
|
23106
|
+
* @param {*} [options] Override http request option.
|
|
23107
|
+
* @throws {RequiredError}
|
|
23108
|
+
*/
|
|
23109
|
+
getOpenEventBookingJoinPrice: async (eventBookingId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
23110
|
+
// verify required parameter 'eventBookingId' is not null or undefined
|
|
23111
|
+
assertParamExists('getOpenEventBookingJoinPrice', 'eventBookingId', eventBookingId)
|
|
23112
|
+
const localVarPath = `/api/events/{eventBookingId}/open/join-price`
|
|
23113
|
+
.replace(`{${"eventBookingId"}}`, encodeURIComponent(String(eventBookingId)));
|
|
23114
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
23115
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
23116
|
+
let baseOptions;
|
|
23117
|
+
if (configuration) {
|
|
23118
|
+
baseOptions = configuration.baseOptions;
|
|
23119
|
+
}
|
|
23120
|
+
|
|
23121
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
23122
|
+
const localVarHeaderParameter = {} as any;
|
|
23123
|
+
const localVarQueryParameter = {} as any;
|
|
23124
|
+
|
|
23125
|
+
// authentication bearerAuth required
|
|
23126
|
+
// http bearer authentication required
|
|
23127
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
23128
|
+
|
|
23129
|
+
|
|
23130
|
+
|
|
22594
23131
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
22595
23132
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
22596
23133
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -22884,6 +23421,19 @@ export const EventsApiFp = function(configuration?: Configuration) {
|
|
|
22884
23421
|
const localVarOperationServerBasePath = operationServerMap['EventsApi.estimateEventPrice']?.[localVarOperationServerIndex]?.url;
|
|
22885
23422
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
22886
23423
|
},
|
|
23424
|
+
/**
|
|
23425
|
+
* Estimer le prix pour rejoindre un événement ouvert
|
|
23426
|
+
* @param {string} eventBookingId
|
|
23427
|
+
* @param {number} [creditToUseInCents]
|
|
23428
|
+
* @param {*} [options] Override http request option.
|
|
23429
|
+
* @throws {RequiredError}
|
|
23430
|
+
*/
|
|
23431
|
+
async estimateOpenEventBookingJoinPrice(eventBookingId: string, creditToUseInCents?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EstimateOpenEventBookingJoinPrice200Response>> {
|
|
23432
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.estimateOpenEventBookingJoinPrice(eventBookingId, creditToUseInCents, options);
|
|
23433
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
23434
|
+
const localVarOperationServerBasePath = operationServerMap['EventsApi.estimateOpenEventBookingJoinPrice']?.[localVarOperationServerIndex]?.url;
|
|
23435
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
23436
|
+
},
|
|
22887
23437
|
/**
|
|
22888
23438
|
* Get a specific event by ID
|
|
22889
23439
|
* @param {string} eventId
|
|
@@ -22897,6 +23447,18 @@ export const EventsApiFp = function(configuration?: Configuration) {
|
|
|
22897
23447
|
const localVarOperationServerBasePath = operationServerMap['EventsApi.getEventById']?.[localVarOperationServerIndex]?.url;
|
|
22898
23448
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
22899
23449
|
},
|
|
23450
|
+
/**
|
|
23451
|
+
* Estimer simplement le prix à payer pour rejoindre un événement ouvert
|
|
23452
|
+
* @param {string} eventBookingId
|
|
23453
|
+
* @param {*} [options] Override http request option.
|
|
23454
|
+
* @throws {RequiredError}
|
|
23455
|
+
*/
|
|
23456
|
+
async getOpenEventBookingJoinPrice(eventBookingId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetOpenEventBookingJoinPrice200Response>> {
|
|
23457
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getOpenEventBookingJoinPrice(eventBookingId, options);
|
|
23458
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
23459
|
+
const localVarOperationServerBasePath = operationServerMap['EventsApi.getOpenEventBookingJoinPrice']?.[localVarOperationServerIndex]?.url;
|
|
23460
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
23461
|
+
},
|
|
22900
23462
|
/**
|
|
22901
23463
|
*
|
|
22902
23464
|
* @param {string} [clubId]
|
|
@@ -23003,6 +23565,15 @@ export const EventsApiFactory = function (configuration?: Configuration, basePat
|
|
|
23003
23565
|
estimateEventPrice(requestParameters: EventsApiEstimateEventPriceRequest, options?: RawAxiosRequestConfig): AxiosPromise<EstimateEventPrice200Response> {
|
|
23004
23566
|
return localVarFp.estimateEventPrice(requestParameters.eventId, requestParameters.estimateEventPriceRequest, options).then((request) => request(axios, basePath));
|
|
23005
23567
|
},
|
|
23568
|
+
/**
|
|
23569
|
+
* Estimer le prix pour rejoindre un événement ouvert
|
|
23570
|
+
* @param {EventsApiEstimateOpenEventBookingJoinPriceRequest} requestParameters Request parameters.
|
|
23571
|
+
* @param {*} [options] Override http request option.
|
|
23572
|
+
* @throws {RequiredError}
|
|
23573
|
+
*/
|
|
23574
|
+
estimateOpenEventBookingJoinPrice(requestParameters: EventsApiEstimateOpenEventBookingJoinPriceRequest, options?: RawAxiosRequestConfig): AxiosPromise<EstimateOpenEventBookingJoinPrice200Response> {
|
|
23575
|
+
return localVarFp.estimateOpenEventBookingJoinPrice(requestParameters.eventBookingId, requestParameters.creditToUseInCents, options).then((request) => request(axios, basePath));
|
|
23576
|
+
},
|
|
23006
23577
|
/**
|
|
23007
23578
|
* Get a specific event by ID
|
|
23008
23579
|
* @param {EventsApiGetEventByIdRequest} requestParameters Request parameters.
|
|
@@ -23012,6 +23583,15 @@ export const EventsApiFactory = function (configuration?: Configuration, basePat
|
|
|
23012
23583
|
getEventById(requestParameters: EventsApiGetEventByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<PublishEventResponse> {
|
|
23013
23584
|
return localVarFp.getEventById(requestParameters.eventId, requestParameters.userId, options).then((request) => request(axios, basePath));
|
|
23014
23585
|
},
|
|
23586
|
+
/**
|
|
23587
|
+
* Estimer simplement le prix à payer pour rejoindre un événement ouvert
|
|
23588
|
+
* @param {EventsApiGetOpenEventBookingJoinPriceRequest} requestParameters Request parameters.
|
|
23589
|
+
* @param {*} [options] Override http request option.
|
|
23590
|
+
* @throws {RequiredError}
|
|
23591
|
+
*/
|
|
23592
|
+
getOpenEventBookingJoinPrice(requestParameters: EventsApiGetOpenEventBookingJoinPriceRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetOpenEventBookingJoinPrice200Response> {
|
|
23593
|
+
return localVarFp.getOpenEventBookingJoinPrice(requestParameters.eventBookingId, options).then((request) => request(axios, basePath));
|
|
23594
|
+
},
|
|
23015
23595
|
/**
|
|
23016
23596
|
*
|
|
23017
23597
|
* @param {EventsApiGetOpenEventBookingsRequest} requestParameters Request parameters.
|
|
@@ -23111,6 +23691,27 @@ export interface EventsApiEstimateEventPriceRequest {
|
|
|
23111
23691
|
readonly estimateEventPriceRequest: EstimateEventPriceRequest
|
|
23112
23692
|
}
|
|
23113
23693
|
|
|
23694
|
+
/**
|
|
23695
|
+
* Request parameters for estimateOpenEventBookingJoinPrice operation in EventsApi.
|
|
23696
|
+
* @export
|
|
23697
|
+
* @interface EventsApiEstimateOpenEventBookingJoinPriceRequest
|
|
23698
|
+
*/
|
|
23699
|
+
export interface EventsApiEstimateOpenEventBookingJoinPriceRequest {
|
|
23700
|
+
/**
|
|
23701
|
+
*
|
|
23702
|
+
* @type {string}
|
|
23703
|
+
* @memberof EventsApiEstimateOpenEventBookingJoinPrice
|
|
23704
|
+
*/
|
|
23705
|
+
readonly eventBookingId: string
|
|
23706
|
+
|
|
23707
|
+
/**
|
|
23708
|
+
*
|
|
23709
|
+
* @type {number}
|
|
23710
|
+
* @memberof EventsApiEstimateOpenEventBookingJoinPrice
|
|
23711
|
+
*/
|
|
23712
|
+
readonly creditToUseInCents?: number
|
|
23713
|
+
}
|
|
23714
|
+
|
|
23114
23715
|
/**
|
|
23115
23716
|
* Request parameters for getEventById operation in EventsApi.
|
|
23116
23717
|
* @export
|
|
@@ -23132,6 +23733,20 @@ export interface EventsApiGetEventByIdRequest {
|
|
|
23132
23733
|
readonly userId?: string
|
|
23133
23734
|
}
|
|
23134
23735
|
|
|
23736
|
+
/**
|
|
23737
|
+
* Request parameters for getOpenEventBookingJoinPrice operation in EventsApi.
|
|
23738
|
+
* @export
|
|
23739
|
+
* @interface EventsApiGetOpenEventBookingJoinPriceRequest
|
|
23740
|
+
*/
|
|
23741
|
+
export interface EventsApiGetOpenEventBookingJoinPriceRequest {
|
|
23742
|
+
/**
|
|
23743
|
+
*
|
|
23744
|
+
* @type {string}
|
|
23745
|
+
* @memberof EventsApiGetOpenEventBookingJoinPrice
|
|
23746
|
+
*/
|
|
23747
|
+
readonly eventBookingId: string
|
|
23748
|
+
}
|
|
23749
|
+
|
|
23135
23750
|
/**
|
|
23136
23751
|
* Request parameters for getOpenEventBookings operation in EventsApi.
|
|
23137
23752
|
* @export
|
|
@@ -23287,6 +23902,17 @@ export class EventsApi extends BaseAPI {
|
|
|
23287
23902
|
return EventsApiFp(this.configuration).estimateEventPrice(requestParameters.eventId, requestParameters.estimateEventPriceRequest, options).then((request) => request(this.axios, this.basePath));
|
|
23288
23903
|
}
|
|
23289
23904
|
|
|
23905
|
+
/**
|
|
23906
|
+
* Estimer le prix pour rejoindre un événement ouvert
|
|
23907
|
+
* @param {EventsApiEstimateOpenEventBookingJoinPriceRequest} requestParameters Request parameters.
|
|
23908
|
+
* @param {*} [options] Override http request option.
|
|
23909
|
+
* @throws {RequiredError}
|
|
23910
|
+
* @memberof EventsApi
|
|
23911
|
+
*/
|
|
23912
|
+
public estimateOpenEventBookingJoinPrice(requestParameters: EventsApiEstimateOpenEventBookingJoinPriceRequest, options?: RawAxiosRequestConfig) {
|
|
23913
|
+
return EventsApiFp(this.configuration).estimateOpenEventBookingJoinPrice(requestParameters.eventBookingId, requestParameters.creditToUseInCents, options).then((request) => request(this.axios, this.basePath));
|
|
23914
|
+
}
|
|
23915
|
+
|
|
23290
23916
|
/**
|
|
23291
23917
|
* Get a specific event by ID
|
|
23292
23918
|
* @param {EventsApiGetEventByIdRequest} requestParameters Request parameters.
|
|
@@ -23298,6 +23924,17 @@ export class EventsApi extends BaseAPI {
|
|
|
23298
23924
|
return EventsApiFp(this.configuration).getEventById(requestParameters.eventId, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
|
|
23299
23925
|
}
|
|
23300
23926
|
|
|
23927
|
+
/**
|
|
23928
|
+
* Estimer simplement le prix à payer pour rejoindre un événement ouvert
|
|
23929
|
+
* @param {EventsApiGetOpenEventBookingJoinPriceRequest} requestParameters Request parameters.
|
|
23930
|
+
* @param {*} [options] Override http request option.
|
|
23931
|
+
* @throws {RequiredError}
|
|
23932
|
+
* @memberof EventsApi
|
|
23933
|
+
*/
|
|
23934
|
+
public getOpenEventBookingJoinPrice(requestParameters: EventsApiGetOpenEventBookingJoinPriceRequest, options?: RawAxiosRequestConfig) {
|
|
23935
|
+
return EventsApiFp(this.configuration).getOpenEventBookingJoinPrice(requestParameters.eventBookingId, options).then((request) => request(this.axios, this.basePath));
|
|
23936
|
+
}
|
|
23937
|
+
|
|
23301
23938
|
/**
|
|
23302
23939
|
*
|
|
23303
23940
|
* @param {EventsApiGetOpenEventBookingsRequest} requestParameters Request parameters.
|