@tennac-booking/sdk 1.0.149 → 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 +2 -0
- package/README.md +7 -2
- package/api.ts +350 -1
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +225 -1
- package/dist/api.js +194 -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 +225 -1
- package/dist/esm/api.js +194 -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 +105 -0
- package/docs/CreateGuestBookingRequest.md +32 -0
- package/docs/EventsApi.md +54 -0
- package/docs/GetOpenEventBookingJoinPrice200Response.md +22 -0
- package/docs/IUserAttributes.md +2 -0
- package/docs/StaffUserProfileResponse.md +2 -0
- package/docs/UpdateUserRequestBody.md +4 -0
- package/docs/UserProfileResponse.md +2 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -124,6 +124,7 @@ docs/CreateClubRoleRequest.md
|
|
|
124
124
|
docs/CreateCourtForClub201Response.md
|
|
125
125
|
docs/CreateCourtRequest.md
|
|
126
126
|
docs/CreateEventRequest.md
|
|
127
|
+
docs/CreateGuestBookingRequest.md
|
|
127
128
|
docs/CreateOnsiteInvoiceRequest.md
|
|
128
129
|
docs/CreateOnsiteInvoiceResponse.md
|
|
129
130
|
docs/CreateOnsiteInvoiceResponseInvoice.md
|
|
@@ -184,6 +185,7 @@ docs/GetClubsWithVerificationDomains200ResponseInner.md
|
|
|
184
185
|
docs/GetCourtsByClubAndSportById200Response.md
|
|
185
186
|
docs/GetInfillPercentagePerPeriod200Response.md
|
|
186
187
|
docs/GetOpenBookings200Response.md
|
|
188
|
+
docs/GetOpenEventBookingJoinPrice200Response.md
|
|
187
189
|
docs/GetOpenEventBookings200Response.md
|
|
188
190
|
docs/GetSlotsByClubById200Response.md
|
|
189
191
|
docs/GoogleAuthRequestBody.md
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @tennac-booking/sdk@1.0.
|
|
1
|
+
## @tennac-booking/sdk@1.0.150
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @tennac-booking/sdk@1.0.
|
|
39
|
+
npm install @tennac-booking/sdk@1.0.150 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -51,9 +51,11 @@ All URIs are relative to *http://localhost*
|
|
|
51
51
|
|
|
52
52
|
Class | Method | HTTP request | Description
|
|
53
53
|
------------ | ------------- | ------------- | -------------
|
|
54
|
+
*BookingsApi* | [**createGuestBooking**](docs/BookingsApi.md#createguestbooking) | **POST** /api/bookings/guest |
|
|
54
55
|
*BookingsApi* | [**estimateOpenBookingJoinPrice**](docs/BookingsApi.md#estimateopenbookingjoinprice) | **GET** /api/bookings/{bookingId}/open/estimate |
|
|
55
56
|
*BookingsApi* | [**getBookingHistory**](docs/BookingsApi.md#getbookinghistory) | **GET** /api/bookings/history/{bookingId} |
|
|
56
57
|
*BookingsApi* | [**getBookingPrice**](docs/BookingsApi.md#getbookingprice) | **POST** /api/bookings/booking-price |
|
|
58
|
+
*BookingsApi* | [**getOpenBookingJoinPrice**](docs/BookingsApi.md#getopenbookingjoinprice) | **GET** /api/bookings/{bookingId}/open/join-price |
|
|
57
59
|
*BookingsApi* | [**getOpenBookings**](docs/BookingsApi.md#getopenbookings) | **GET** /api/bookings/open |
|
|
58
60
|
*BookingsApi* | [**getQuickReservationSlots**](docs/BookingsApi.md#getquickreservationslots) | **GET** /api/bookings/quick-reservations |
|
|
59
61
|
*BookingsApi* | [**joinOpenBooking**](docs/BookingsApi.md#joinopenbooking) | **POST** /api/bookings/{bookingId}/open/join |
|
|
@@ -173,6 +175,7 @@ Class | Method | HTTP request | Description
|
|
|
173
175
|
*EventsApi* | [**estimateEventPrice**](docs/EventsApi.md#estimateeventprice) | **POST** /api/events/{eventId}/estimate-price |
|
|
174
176
|
*EventsApi* | [**estimateOpenEventBookingJoinPrice**](docs/EventsApi.md#estimateopeneventbookingjoinprice) | **GET** /api/events/{eventBookingId}/open/estimate |
|
|
175
177
|
*EventsApi* | [**getEventById**](docs/EventsApi.md#geteventbyid) | **GET** /api/events/{eventId} |
|
|
178
|
+
*EventsApi* | [**getOpenEventBookingJoinPrice**](docs/EventsApi.md#getopeneventbookingjoinprice) | **GET** /api/events/{eventBookingId}/open/join-price |
|
|
176
179
|
*EventsApi* | [**getOpenEventBookings**](docs/EventsApi.md#getopeneventbookings) | **GET** /api/events/open |
|
|
177
180
|
*EventsApi* | [**getPublishedEventsByClubId**](docs/EventsApi.md#getpublishedeventsbyclubid) | **GET** /api/events |
|
|
178
181
|
*EventsApi* | [**joinEvent**](docs/EventsApi.md#joinevent) | **POST** /api/events/{eventId}/join |
|
|
@@ -353,6 +356,7 @@ Class | Method | HTTP request | Description
|
|
|
353
356
|
- [CreateCourtForClub201Response](docs/CreateCourtForClub201Response.md)
|
|
354
357
|
- [CreateCourtRequest](docs/CreateCourtRequest.md)
|
|
355
358
|
- [CreateEventRequest](docs/CreateEventRequest.md)
|
|
359
|
+
- [CreateGuestBookingRequest](docs/CreateGuestBookingRequest.md)
|
|
356
360
|
- [CreateOnsiteInvoiceRequest](docs/CreateOnsiteInvoiceRequest.md)
|
|
357
361
|
- [CreateOnsiteInvoiceResponse](docs/CreateOnsiteInvoiceResponse.md)
|
|
358
362
|
- [CreateOnsiteInvoiceResponseInvoice](docs/CreateOnsiteInvoiceResponseInvoice.md)
|
|
@@ -409,6 +413,7 @@ Class | Method | HTTP request | Description
|
|
|
409
413
|
- [GetCourtsByClubAndSportById200Response](docs/GetCourtsByClubAndSportById200Response.md)
|
|
410
414
|
- [GetInfillPercentagePerPeriod200Response](docs/GetInfillPercentagePerPeriod200Response.md)
|
|
411
415
|
- [GetOpenBookings200Response](docs/GetOpenBookings200Response.md)
|
|
416
|
+
- [GetOpenEventBookingJoinPrice200Response](docs/GetOpenEventBookingJoinPrice200Response.md)
|
|
412
417
|
- [GetOpenEventBookings200Response](docs/GetOpenEventBookings200Response.md)
|
|
413
418
|
- [GetSlotsByClubById200Response](docs/GetSlotsByClubById200Response.md)
|
|
414
419
|
- [GoogleAuthRequestBody](docs/GoogleAuthRequestBody.md)
|
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
|
|
@@ -5811,6 +5862,25 @@ export interface GetOpenBookings200Response {
|
|
|
5811
5862
|
*/
|
|
5812
5863
|
'bookings': Array<BookingInfo>;
|
|
5813
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
|
+
}
|
|
5814
5884
|
/**
|
|
5815
5885
|
*
|
|
5816
5886
|
* @export
|
|
@@ -6206,6 +6276,12 @@ export interface IUserAttributes {
|
|
|
6206
6276
|
* @memberof IUserAttributes
|
|
6207
6277
|
*/
|
|
6208
6278
|
'organizations'?: Array<IUserAttributesOrganizationsInner>;
|
|
6279
|
+
/**
|
|
6280
|
+
*
|
|
6281
|
+
* @type {boolean}
|
|
6282
|
+
* @memberof IUserAttributes
|
|
6283
|
+
*/
|
|
6284
|
+
'isGuest'?: boolean;
|
|
6209
6285
|
/**
|
|
6210
6286
|
*
|
|
6211
6287
|
* @type {boolean}
|
|
@@ -9898,6 +9974,12 @@ export interface StaffUserProfileResponse {
|
|
|
9898
9974
|
* @memberof StaffUserProfileResponse
|
|
9899
9975
|
*/
|
|
9900
9976
|
'organizations'?: Array<IUserAttributesOrganizationsInner>;
|
|
9977
|
+
/**
|
|
9978
|
+
*
|
|
9979
|
+
* @type {boolean}
|
|
9980
|
+
* @memberof StaffUserProfileResponse
|
|
9981
|
+
*/
|
|
9982
|
+
'isGuest'?: boolean;
|
|
9901
9983
|
/**
|
|
9902
9984
|
*
|
|
9903
9985
|
* @type {boolean}
|
|
@@ -11267,6 +11349,18 @@ export interface UpdateUserRequestBody {
|
|
|
11267
11349
|
* @memberof UpdateUserRequestBody
|
|
11268
11350
|
*/
|
|
11269
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;
|
|
11270
11364
|
/**
|
|
11271
11365
|
*
|
|
11272
11366
|
* @type {string}
|
|
@@ -11304,6 +11398,8 @@ export interface UpdateUserRequestBody {
|
|
|
11304
11398
|
*/
|
|
11305
11399
|
'location'?: RegisterRequestBodyLocation;
|
|
11306
11400
|
}
|
|
11401
|
+
|
|
11402
|
+
|
|
11307
11403
|
/**
|
|
11308
11404
|
*
|
|
11309
11405
|
* @export
|
|
@@ -11950,6 +12046,12 @@ export interface UserProfileResponse {
|
|
|
11950
12046
|
* @memberof UserProfileResponse
|
|
11951
12047
|
*/
|
|
11952
12048
|
'organizations'?: Array<IUserAttributesOrganizationsInner>;
|
|
12049
|
+
/**
|
|
12050
|
+
*
|
|
12051
|
+
* @type {boolean}
|
|
12052
|
+
* @memberof UserProfileResponse
|
|
12053
|
+
*/
|
|
12054
|
+
'isGuest'?: boolean;
|
|
11953
12055
|
/**
|
|
11954
12056
|
*
|
|
11955
12057
|
* @type {boolean}
|
|
@@ -12215,6 +12317,41 @@ export interface YearlyTurnoverResponse {
|
|
|
12215
12317
|
*/
|
|
12216
12318
|
export const BookingsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
12217
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
|
+
},
|
|
12218
12355
|
/**
|
|
12219
12356
|
* Estimer le prix pour rejoindre une réservation ouverte
|
|
12220
12357
|
* @param {string} bookingId
|
|
@@ -12333,6 +12470,43 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
12333
12470
|
options: localVarRequestOptions,
|
|
12334
12471
|
};
|
|
12335
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
|
+
},
|
|
12336
12510
|
/**
|
|
12337
12511
|
*
|
|
12338
12512
|
* @param {string} [clubId]
|
|
@@ -12545,6 +12719,18 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
12545
12719
|
export const BookingsApiFp = function(configuration?: Configuration) {
|
|
12546
12720
|
const localVarAxiosParamCreator = BookingsApiAxiosParamCreator(configuration)
|
|
12547
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
|
+
},
|
|
12548
12734
|
/**
|
|
12549
12735
|
* Estimer le prix pour rejoindre une réservation ouverte
|
|
12550
12736
|
* @param {string} bookingId
|
|
@@ -12582,6 +12768,18 @@ export const BookingsApiFp = function(configuration?: Configuration) {
|
|
|
12582
12768
|
const localVarOperationServerBasePath = operationServerMap['BookingsApi.getBookingPrice']?.[localVarOperationServerIndex]?.url;
|
|
12583
12769
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12584
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
|
+
},
|
|
12585
12783
|
/**
|
|
12586
12784
|
*
|
|
12587
12785
|
* @param {string} [clubId]
|
|
@@ -12651,6 +12849,15 @@ export const BookingsApiFp = function(configuration?: Configuration) {
|
|
|
12651
12849
|
export const BookingsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
12652
12850
|
const localVarFp = BookingsApiFp(configuration)
|
|
12653
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
|
+
},
|
|
12654
12861
|
/**
|
|
12655
12862
|
* Estimer le prix pour rejoindre une réservation ouverte
|
|
12656
12863
|
* @param {BookingsApiEstimateOpenBookingJoinPriceRequest} requestParameters Request parameters.
|
|
@@ -12678,6 +12885,15 @@ export const BookingsApiFactory = function (configuration?: Configuration, baseP
|
|
|
12678
12885
|
getBookingPrice(requestParameters: BookingsApiGetBookingPriceRequest, options?: RawAxiosRequestConfig): AxiosPromise<BookingPriceResponse> {
|
|
12679
12886
|
return localVarFp.getBookingPrice(requestParameters.bookingPriceBody, options).then((request) => request(axios, basePath));
|
|
12680
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
|
+
},
|
|
12681
12897
|
/**
|
|
12682
12898
|
*
|
|
12683
12899
|
* @param {BookingsApiGetOpenBookingsRequest} requestParameters Request parameters.
|
|
@@ -12717,6 +12933,20 @@ export const BookingsApiFactory = function (configuration?: Configuration, baseP
|
|
|
12717
12933
|
};
|
|
12718
12934
|
};
|
|
12719
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
|
+
|
|
12720
12950
|
/**
|
|
12721
12951
|
* Request parameters for estimateOpenBookingJoinPrice operation in BookingsApi.
|
|
12722
12952
|
* @export
|
|
@@ -12766,6 +12996,20 @@ export interface BookingsApiGetBookingPriceRequest {
|
|
|
12766
12996
|
readonly bookingPriceBody: BookingPriceBody
|
|
12767
12997
|
}
|
|
12768
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
|
+
|
|
12769
13013
|
/**
|
|
12770
13014
|
* Request parameters for getOpenBookings operation in BookingsApi.
|
|
12771
13015
|
* @export
|
|
@@ -12906,6 +13150,17 @@ export interface BookingsApiLeaveOpenBookingRequest {
|
|
|
12906
13150
|
* @extends {BaseAPI}
|
|
12907
13151
|
*/
|
|
12908
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
|
+
|
|
12909
13164
|
/**
|
|
12910
13165
|
* Estimer le prix pour rejoindre une réservation ouverte
|
|
12911
13166
|
* @param {BookingsApiEstimateOpenBookingJoinPriceRequest} requestParameters Request parameters.
|
|
@@ -12939,6 +13194,17 @@ export class BookingsApi extends BaseAPI {
|
|
|
12939
13194
|
return BookingsApiFp(this.configuration).getBookingPrice(requestParameters.bookingPriceBody, options).then((request) => request(this.axios, this.basePath));
|
|
12940
13195
|
}
|
|
12941
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
|
+
|
|
12942
13208
|
/**
|
|
12943
13209
|
*
|
|
12944
13210
|
* @param {BookingsApiGetOpenBookingsRequest} requestParameters Request parameters.
|
|
@@ -22825,6 +23091,43 @@ export const EventsApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
22825
23091
|
|
|
22826
23092
|
|
|
22827
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
|
+
|
|
22828
23131
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
22829
23132
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
22830
23133
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -23144,6 +23447,18 @@ export const EventsApiFp = function(configuration?: Configuration) {
|
|
|
23144
23447
|
const localVarOperationServerBasePath = operationServerMap['EventsApi.getEventById']?.[localVarOperationServerIndex]?.url;
|
|
23145
23448
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
23146
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
|
+
},
|
|
23147
23462
|
/**
|
|
23148
23463
|
*
|
|
23149
23464
|
* @param {string} [clubId]
|
|
@@ -23268,6 +23583,15 @@ export const EventsApiFactory = function (configuration?: Configuration, basePat
|
|
|
23268
23583
|
getEventById(requestParameters: EventsApiGetEventByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<PublishEventResponse> {
|
|
23269
23584
|
return localVarFp.getEventById(requestParameters.eventId, requestParameters.userId, options).then((request) => request(axios, basePath));
|
|
23270
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
|
+
},
|
|
23271
23595
|
/**
|
|
23272
23596
|
*
|
|
23273
23597
|
* @param {EventsApiGetOpenEventBookingsRequest} requestParameters Request parameters.
|
|
@@ -23409,6 +23733,20 @@ export interface EventsApiGetEventByIdRequest {
|
|
|
23409
23733
|
readonly userId?: string
|
|
23410
23734
|
}
|
|
23411
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
|
+
|
|
23412
23750
|
/**
|
|
23413
23751
|
* Request parameters for getOpenEventBookings operation in EventsApi.
|
|
23414
23752
|
* @export
|
|
@@ -23586,6 +23924,17 @@ export class EventsApi extends BaseAPI {
|
|
|
23586
23924
|
return EventsApiFp(this.configuration).getEventById(requestParameters.eventId, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
|
|
23587
23925
|
}
|
|
23588
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
|
+
|
|
23589
23938
|
/**
|
|
23590
23939
|
*
|
|
23591
23940
|
* @param {EventsApiGetOpenEventBookingsRequest} requestParameters Request parameters.
|
package/base.ts
CHANGED
package/common.ts
CHANGED
package/configuration.ts
CHANGED