@tennac-booking/sdk 1.0.175 → 1.0.176
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 +404 -398
- package/README.md +11 -3
- package/api.ts +426 -16
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +337 -17
- 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 +337 -17
- 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/BookingsApi.md +2 -2
- package/docs/BookingsUserApi.md +56 -0
- package/docs/CreateOpenBookingRequest.md +4 -0
- package/docs/OpenBookingInfo.md +48 -0
- package/docs/OpenBookingPlayerInfo.md +26 -0
- package/docs/OpenBookingSlotInfo.md +24 -0
- package/docs/OpenBookingSportInfo.md +24 -0
- package/docs/{GetOpenBookings200Response.md → OpenBookingsResponse.md} +4 -4
- package/docs/UpdateOpenBooking200Response.md +22 -0
- package/docs/UpdateOpenBookingRequest.md +22 -0
- package/docs/UsersApi.md +55 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @tennac-booking/sdk@1.0.
|
|
1
|
+
## @tennac-booking/sdk@1.0.176
|
|
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.176 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -74,6 +74,7 @@ Class | Method | HTTP request | Description
|
|
|
74
74
|
*BookingsUserApi* | [**cancelBooking**](docs/BookingsUserApi.md#cancelbooking) | **DELETE** /api/bookings/{bookingId} |
|
|
75
75
|
*BookingsUserApi* | [**createBooking**](docs/BookingsUserApi.md#createbooking) | **POST** /api/bookings |
|
|
76
76
|
*BookingsUserApi* | [**createOpenBooking**](docs/BookingsUserApi.md#createopenbooking) | **POST** /api/bookings/open |
|
|
77
|
+
*BookingsUserApi* | [**updateOpenBooking**](docs/BookingsUserApi.md#updateopenbooking) | **PATCH** /api/bookings/{bookingId}/open |
|
|
77
78
|
*ClientApi* | [**clientRegister**](docs/ClientApi.md#clientregister) | **POST** /clients/register |
|
|
78
79
|
*ClientApi* | [**getClientSubscriptions**](docs/ClientApi.md#getclientsubscriptions) | **GET** /clients/subscriptions |
|
|
79
80
|
*ClientApi* | [**getManagedClubs**](docs/ClientApi.md#getmanagedclubs) | **GET** /clients/managed-clubs |
|
|
@@ -241,6 +242,7 @@ Class | Method | HTTP request | Description
|
|
|
241
242
|
*UsersApi* | [**getUserBookings**](docs/UsersApi.md#getuserbookings) | **GET** /api/users/me/bookings |
|
|
242
243
|
*UsersApi* | [**getUserEvents**](docs/UsersApi.md#getuserevents) | **GET** /api/users/me/events |
|
|
243
244
|
*UsersApi* | [**getUserProfileById**](docs/UsersApi.md#getuserprofilebyid) | **GET** /api/users/profile/{id} |
|
|
245
|
+
*UsersApi* | [**leaveBooking**](docs/UsersApi.md#leavebooking) | **DELETE** /api/users/me/bookings/{bookingId}/leave |
|
|
244
246
|
*UsersApi* | [**listPlayers**](docs/UsersApi.md#listplayers) | **GET** /api/users/players |
|
|
245
247
|
*UsersApi* | [**login**](docs/UsersApi.md#login) | **POST** /api/users/login |
|
|
246
248
|
*UsersApi* | [**loginClubMember**](docs/UsersApi.md#loginclubmember) | **POST** /api/users/club-members/login |
|
|
@@ -448,7 +450,6 @@ Class | Method | HTTP request | Description
|
|
|
448
450
|
- [GetGuestBookingPrice200Response](docs/GetGuestBookingPrice200Response.md)
|
|
449
451
|
- [GetGuestBookingPriceRequest](docs/GetGuestBookingPriceRequest.md)
|
|
450
452
|
- [GetInfillPercentagePerPeriod200Response](docs/GetInfillPercentagePerPeriod200Response.md)
|
|
451
|
-
- [GetOpenBookings200Response](docs/GetOpenBookings200Response.md)
|
|
452
453
|
- [GetOpenEventBookingJoinPrice200Response](docs/GetOpenEventBookingJoinPrice200Response.md)
|
|
453
454
|
- [GetOpenEventBookings200Response](docs/GetOpenEventBookings200Response.md)
|
|
454
455
|
- [GetPublishedActualities200Response](docs/GetPublishedActualities200Response.md)
|
|
@@ -498,6 +499,11 @@ Class | Method | HTTP request | Description
|
|
|
498
499
|
- [NoShowFeeResponse](docs/NoShowFeeResponse.md)
|
|
499
500
|
- [NoShowRateResponse](docs/NoShowRateResponse.md)
|
|
500
501
|
- [OffPeakRule](docs/OffPeakRule.md)
|
|
502
|
+
- [OpenBookingInfo](docs/OpenBookingInfo.md)
|
|
503
|
+
- [OpenBookingPlayerInfo](docs/OpenBookingPlayerInfo.md)
|
|
504
|
+
- [OpenBookingSlotInfo](docs/OpenBookingSlotInfo.md)
|
|
505
|
+
- [OpenBookingSportInfo](docs/OpenBookingSportInfo.md)
|
|
506
|
+
- [OpenBookingsResponse](docs/OpenBookingsResponse.md)
|
|
501
507
|
- [PaginationInfo](docs/PaginationInfo.md)
|
|
502
508
|
- [PartialClubActiveResponse](docs/PartialClubActiveResponse.md)
|
|
503
509
|
- [PartialClubActiveResponseLocation](docs/PartialClubActiveResponseLocation.md)
|
|
@@ -601,6 +607,8 @@ Class | Method | HTTP request | Description
|
|
|
601
607
|
- [UpdateCustomerResponse](docs/UpdateCustomerResponse.md)
|
|
602
608
|
- [UpdateEventRequest](docs/UpdateEventRequest.md)
|
|
603
609
|
- [UpdateLevelBySportsRequestBody](docs/UpdateLevelBySportsRequestBody.md)
|
|
610
|
+
- [UpdateOpenBooking200Response](docs/UpdateOpenBooking200Response.md)
|
|
611
|
+
- [UpdateOpenBookingRequest](docs/UpdateOpenBookingRequest.md)
|
|
604
612
|
- [UpdateRecurringDefinition200Response](docs/UpdateRecurringDefinition200Response.md)
|
|
605
613
|
- [UpdateRecurringDefinitionRequest](docs/UpdateRecurringDefinitionRequest.md)
|
|
606
614
|
- [UpdateSportRequest](docs/UpdateSportRequest.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.176
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4589,6 +4589,18 @@ export interface CreateOpenBookingRequest {
|
|
|
4589
4589
|
* @memberof CreateOpenBookingRequest
|
|
4590
4590
|
*/
|
|
4591
4591
|
'maxPlayers': number;
|
|
4592
|
+
/**
|
|
4593
|
+
* Description de la réservation ouverte
|
|
4594
|
+
* @type {string}
|
|
4595
|
+
* @memberof CreateOpenBookingRequest
|
|
4596
|
+
*/
|
|
4597
|
+
'description'?: string;
|
|
4598
|
+
/**
|
|
4599
|
+
* Niveau minimal souhaité pour rejoindre
|
|
4600
|
+
* @type {string}
|
|
4601
|
+
* @memberof CreateOpenBookingRequest
|
|
4602
|
+
*/
|
|
4603
|
+
'minLevel'?: string;
|
|
4592
4604
|
}
|
|
4593
4605
|
|
|
4594
4606
|
|
|
@@ -6269,19 +6281,6 @@ export interface GetInfillPercentagePerPeriod200Response {
|
|
|
6269
6281
|
*/
|
|
6270
6282
|
'infillPercentage': number;
|
|
6271
6283
|
}
|
|
6272
|
-
/**
|
|
6273
|
-
*
|
|
6274
|
-
* @export
|
|
6275
|
-
* @interface GetOpenBookings200Response
|
|
6276
|
-
*/
|
|
6277
|
-
export interface GetOpenBookings200Response {
|
|
6278
|
-
/**
|
|
6279
|
-
*
|
|
6280
|
-
* @type {Array<BookingInfo>}
|
|
6281
|
-
* @memberof GetOpenBookings200Response
|
|
6282
|
-
*/
|
|
6283
|
-
'bookings': Array<BookingInfo>;
|
|
6284
|
-
}
|
|
6285
6284
|
/**
|
|
6286
6285
|
*
|
|
6287
6286
|
* @export
|
|
@@ -7933,6 +7932,199 @@ export interface OffPeakRule {
|
|
|
7933
7932
|
*/
|
|
7934
7933
|
'dayOfWeek': number;
|
|
7935
7934
|
}
|
|
7935
|
+
/**
|
|
7936
|
+
*
|
|
7937
|
+
* @export
|
|
7938
|
+
* @interface OpenBookingInfo
|
|
7939
|
+
*/
|
|
7940
|
+
export interface OpenBookingInfo {
|
|
7941
|
+
/**
|
|
7942
|
+
* ID de la réservation
|
|
7943
|
+
* @type {string}
|
|
7944
|
+
* @memberof OpenBookingInfo
|
|
7945
|
+
*/
|
|
7946
|
+
'id': string;
|
|
7947
|
+
/**
|
|
7948
|
+
* ID du club
|
|
7949
|
+
* @type {string}
|
|
7950
|
+
* @memberof OpenBookingInfo
|
|
7951
|
+
*/
|
|
7952
|
+
'clubId': string;
|
|
7953
|
+
/**
|
|
7954
|
+
* ID de l\'utilisateur créateur
|
|
7955
|
+
* @type {string}
|
|
7956
|
+
* @memberof OpenBookingInfo
|
|
7957
|
+
*/
|
|
7958
|
+
'userId': string;
|
|
7959
|
+
/**
|
|
7960
|
+
* Liste des joueurs avec leurs infos
|
|
7961
|
+
* @type {Array<OpenBookingPlayerInfo>}
|
|
7962
|
+
* @memberof OpenBookingInfo
|
|
7963
|
+
*/
|
|
7964
|
+
'players': Array<OpenBookingPlayerInfo>;
|
|
7965
|
+
/**
|
|
7966
|
+
*
|
|
7967
|
+
* @type {BookingStatus}
|
|
7968
|
+
* @memberof OpenBookingInfo
|
|
7969
|
+
*/
|
|
7970
|
+
'status': BookingStatus;
|
|
7971
|
+
/**
|
|
7972
|
+
* Prix total en euros
|
|
7973
|
+
* @type {number}
|
|
7974
|
+
* @memberof OpenBookingInfo
|
|
7975
|
+
*/
|
|
7976
|
+
'totalPrice': number;
|
|
7977
|
+
/**
|
|
7978
|
+
* Informations des créneaux
|
|
7979
|
+
* @type {Array<OpenBookingSlotInfo>}
|
|
7980
|
+
* @memberof OpenBookingInfo
|
|
7981
|
+
*/
|
|
7982
|
+
'slots': Array<OpenBookingSlotInfo>;
|
|
7983
|
+
/**
|
|
7984
|
+
* Indique si le créateur paie pour tous
|
|
7985
|
+
* @type {boolean}
|
|
7986
|
+
* @memberof OpenBookingInfo
|
|
7987
|
+
*/
|
|
7988
|
+
'isCreatorPayingAll': boolean;
|
|
7989
|
+
/**
|
|
7990
|
+
* Date de création
|
|
7991
|
+
* @type {string}
|
|
7992
|
+
* @memberof OpenBookingInfo
|
|
7993
|
+
*/
|
|
7994
|
+
'createdAt': string;
|
|
7995
|
+
/**
|
|
7996
|
+
* Date de mise à jour
|
|
7997
|
+
* @type {string}
|
|
7998
|
+
* @memberof OpenBookingInfo
|
|
7999
|
+
*/
|
|
8000
|
+
'updatedAt': string;
|
|
8001
|
+
/**
|
|
8002
|
+
*
|
|
8003
|
+
* @type {OpenBookingSportInfo}
|
|
8004
|
+
* @memberof OpenBookingInfo
|
|
8005
|
+
*/
|
|
8006
|
+
'sport'?: OpenBookingSportInfo;
|
|
8007
|
+
/**
|
|
8008
|
+
* Niveau minimal souhaité
|
|
8009
|
+
* @type {string}
|
|
8010
|
+
* @memberof OpenBookingInfo
|
|
8011
|
+
*/
|
|
8012
|
+
'minLevel'?: string;
|
|
8013
|
+
/**
|
|
8014
|
+
* Description de la réservation
|
|
8015
|
+
* @type {string}
|
|
8016
|
+
* @memberof OpenBookingInfo
|
|
8017
|
+
*/
|
|
8018
|
+
'description'?: string;
|
|
8019
|
+
/**
|
|
8020
|
+
* Nombre maximal de joueurs
|
|
8021
|
+
* @type {number}
|
|
8022
|
+
* @memberof OpenBookingInfo
|
|
8023
|
+
*/
|
|
8024
|
+
'maxPlayers'?: number;
|
|
8025
|
+
/**
|
|
8026
|
+
* Nombre de joueurs actuels
|
|
8027
|
+
* @type {number}
|
|
8028
|
+
* @memberof OpenBookingInfo
|
|
8029
|
+
*/
|
|
8030
|
+
'currentPlayersCount': number;
|
|
8031
|
+
}
|
|
8032
|
+
|
|
8033
|
+
|
|
8034
|
+
/**
|
|
8035
|
+
*
|
|
8036
|
+
* @export
|
|
8037
|
+
* @interface OpenBookingPlayerInfo
|
|
8038
|
+
*/
|
|
8039
|
+
export interface OpenBookingPlayerInfo {
|
|
8040
|
+
/**
|
|
8041
|
+
* ID du joueur
|
|
8042
|
+
* @type {string}
|
|
8043
|
+
* @memberof OpenBookingPlayerInfo
|
|
8044
|
+
*/
|
|
8045
|
+
'id': string;
|
|
8046
|
+
/**
|
|
8047
|
+
* Prénom
|
|
8048
|
+
* @type {string}
|
|
8049
|
+
* @memberof OpenBookingPlayerInfo
|
|
8050
|
+
*/
|
|
8051
|
+
'firstName': string;
|
|
8052
|
+
/**
|
|
8053
|
+
* Nom
|
|
8054
|
+
* @type {string}
|
|
8055
|
+
* @memberof OpenBookingPlayerInfo
|
|
8056
|
+
*/
|
|
8057
|
+
'lastName': string;
|
|
8058
|
+
/**
|
|
8059
|
+
* Photo de profil
|
|
8060
|
+
* @type {string}
|
|
8061
|
+
* @memberof OpenBookingPlayerInfo
|
|
8062
|
+
*/
|
|
8063
|
+
'profilePicture'?: string;
|
|
8064
|
+
}
|
|
8065
|
+
/**
|
|
8066
|
+
*
|
|
8067
|
+
* @export
|
|
8068
|
+
* @interface OpenBookingSlotInfo
|
|
8069
|
+
*/
|
|
8070
|
+
export interface OpenBookingSlotInfo {
|
|
8071
|
+
/**
|
|
8072
|
+
* ID du slot
|
|
8073
|
+
* @type {string}
|
|
8074
|
+
* @memberof OpenBookingSlotInfo
|
|
8075
|
+
*/
|
|
8076
|
+
'id': string;
|
|
8077
|
+
/**
|
|
8078
|
+
* Date de début ISO
|
|
8079
|
+
* @type {string}
|
|
8080
|
+
* @memberof OpenBookingSlotInfo
|
|
8081
|
+
*/
|
|
8082
|
+
'startDate': string;
|
|
8083
|
+
/**
|
|
8084
|
+
* Date de fin ISO
|
|
8085
|
+
* @type {string}
|
|
8086
|
+
* @memberof OpenBookingSlotInfo
|
|
8087
|
+
*/
|
|
8088
|
+
'endDate': string;
|
|
8089
|
+
}
|
|
8090
|
+
/**
|
|
8091
|
+
*
|
|
8092
|
+
* @export
|
|
8093
|
+
* @interface OpenBookingSportInfo
|
|
8094
|
+
*/
|
|
8095
|
+
export interface OpenBookingSportInfo {
|
|
8096
|
+
/**
|
|
8097
|
+
* ID du sport
|
|
8098
|
+
* @type {string}
|
|
8099
|
+
* @memberof OpenBookingSportInfo
|
|
8100
|
+
*/
|
|
8101
|
+
'id': string;
|
|
8102
|
+
/**
|
|
8103
|
+
* Clé du sport
|
|
8104
|
+
* @type {string}
|
|
8105
|
+
* @memberof OpenBookingSportInfo
|
|
8106
|
+
*/
|
|
8107
|
+
'key': string;
|
|
8108
|
+
/**
|
|
8109
|
+
* Nom du sport
|
|
8110
|
+
* @type {string}
|
|
8111
|
+
* @memberof OpenBookingSportInfo
|
|
8112
|
+
*/
|
|
8113
|
+
'name': string;
|
|
8114
|
+
}
|
|
8115
|
+
/**
|
|
8116
|
+
*
|
|
8117
|
+
* @export
|
|
8118
|
+
* @interface OpenBookingsResponse
|
|
8119
|
+
*/
|
|
8120
|
+
export interface OpenBookingsResponse {
|
|
8121
|
+
/**
|
|
8122
|
+
* Liste des réservations ouvertes
|
|
8123
|
+
* @type {Array<OpenBookingInfo>}
|
|
8124
|
+
* @memberof OpenBookingsResponse
|
|
8125
|
+
*/
|
|
8126
|
+
'bookings': Array<OpenBookingInfo>;
|
|
8127
|
+
}
|
|
7936
8128
|
/**
|
|
7937
8129
|
*
|
|
7938
8130
|
* @export
|
|
@@ -11875,6 +12067,44 @@ export interface UpdateLevelBySportsRequestBody {
|
|
|
11875
12067
|
*/
|
|
11876
12068
|
'levelBySports': Array<LevelBySportEntry>;
|
|
11877
12069
|
}
|
|
12070
|
+
/**
|
|
12071
|
+
*
|
|
12072
|
+
* @export
|
|
12073
|
+
* @interface UpdateOpenBooking200Response
|
|
12074
|
+
*/
|
|
12075
|
+
export interface UpdateOpenBooking200Response {
|
|
12076
|
+
/**
|
|
12077
|
+
*
|
|
12078
|
+
* @type {BookingInfo}
|
|
12079
|
+
* @memberof UpdateOpenBooking200Response
|
|
12080
|
+
*/
|
|
12081
|
+
'booking': BookingInfo;
|
|
12082
|
+
/**
|
|
12083
|
+
*
|
|
12084
|
+
* @type {string}
|
|
12085
|
+
* @memberof UpdateOpenBooking200Response
|
|
12086
|
+
*/
|
|
12087
|
+
'message': string;
|
|
12088
|
+
}
|
|
12089
|
+
/**
|
|
12090
|
+
*
|
|
12091
|
+
* @export
|
|
12092
|
+
* @interface UpdateOpenBookingRequest
|
|
12093
|
+
*/
|
|
12094
|
+
export interface UpdateOpenBookingRequest {
|
|
12095
|
+
/**
|
|
12096
|
+
* Description de la réservation ouverte
|
|
12097
|
+
* @type {string}
|
|
12098
|
+
* @memberof UpdateOpenBookingRequest
|
|
12099
|
+
*/
|
|
12100
|
+
'description'?: string;
|
|
12101
|
+
/**
|
|
12102
|
+
* Niveau minimal souhaité pour rejoindre
|
|
12103
|
+
* @type {string}
|
|
12104
|
+
* @memberof UpdateOpenBookingRequest
|
|
12105
|
+
*/
|
|
12106
|
+
'minLevel'?: string;
|
|
12107
|
+
}
|
|
11878
12108
|
/**
|
|
11879
12109
|
*
|
|
11880
12110
|
* @export
|
|
@@ -13873,7 +14103,7 @@ export const BookingsApiFp = function(configuration?: Configuration) {
|
|
|
13873
14103
|
* @param {*} [options] Override http request option.
|
|
13874
14104
|
* @throws {RequiredError}
|
|
13875
14105
|
*/
|
|
13876
|
-
async getOpenBookings(clubId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
14106
|
+
async getOpenBookings(clubId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OpenBookingsResponse>> {
|
|
13877
14107
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getOpenBookings(clubId, options);
|
|
13878
14108
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
13879
14109
|
const localVarOperationServerBasePath = operationServerMap['BookingsApi.getOpenBookings']?.[localVarOperationServerIndex]?.url;
|
|
@@ -13996,7 +14226,7 @@ export const BookingsApiFactory = function (configuration?: Configuration, baseP
|
|
|
13996
14226
|
* @param {*} [options] Override http request option.
|
|
13997
14227
|
* @throws {RequiredError}
|
|
13998
14228
|
*/
|
|
13999
|
-
getOpenBookings(requestParameters: BookingsApiGetOpenBookingsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
14229
|
+
getOpenBookings(requestParameters: BookingsApiGetOpenBookingsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<OpenBookingsResponse> {
|
|
14000
14230
|
return localVarFp.getOpenBookings(requestParameters.clubId, options).then((request) => request(axios, basePath));
|
|
14001
14231
|
},
|
|
14002
14232
|
/**
|
|
@@ -15480,6 +15710,49 @@ export const BookingsUserApiAxiosParamCreator = function (configuration?: Config
|
|
|
15480
15710
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
15481
15711
|
localVarRequestOptions.data = serializeDataIfNeeded(createOpenBookingRequest, localVarRequestOptions, configuration)
|
|
15482
15712
|
|
|
15713
|
+
return {
|
|
15714
|
+
url: toPathString(localVarUrlObj),
|
|
15715
|
+
options: localVarRequestOptions,
|
|
15716
|
+
};
|
|
15717
|
+
},
|
|
15718
|
+
/**
|
|
15719
|
+
* Mettre à jour une réservation ouverte (description et niveau minimal)
|
|
15720
|
+
* @param {string} bookingId
|
|
15721
|
+
* @param {UpdateOpenBookingRequest} updateOpenBookingRequest
|
|
15722
|
+
* @param {*} [options] Override http request option.
|
|
15723
|
+
* @throws {RequiredError}
|
|
15724
|
+
*/
|
|
15725
|
+
updateOpenBooking: async (bookingId: string, updateOpenBookingRequest: UpdateOpenBookingRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
15726
|
+
// verify required parameter 'bookingId' is not null or undefined
|
|
15727
|
+
assertParamExists('updateOpenBooking', 'bookingId', bookingId)
|
|
15728
|
+
// verify required parameter 'updateOpenBookingRequest' is not null or undefined
|
|
15729
|
+
assertParamExists('updateOpenBooking', 'updateOpenBookingRequest', updateOpenBookingRequest)
|
|
15730
|
+
const localVarPath = `/api/bookings/{bookingId}/open`
|
|
15731
|
+
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
15732
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
15733
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
15734
|
+
let baseOptions;
|
|
15735
|
+
if (configuration) {
|
|
15736
|
+
baseOptions = configuration.baseOptions;
|
|
15737
|
+
}
|
|
15738
|
+
|
|
15739
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
15740
|
+
const localVarHeaderParameter = {} as any;
|
|
15741
|
+
const localVarQueryParameter = {} as any;
|
|
15742
|
+
|
|
15743
|
+
// authentication bearerAuth required
|
|
15744
|
+
// http bearer authentication required
|
|
15745
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
15746
|
+
|
|
15747
|
+
|
|
15748
|
+
|
|
15749
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
15750
|
+
|
|
15751
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
15752
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
15753
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
15754
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateOpenBookingRequest, localVarRequestOptions, configuration)
|
|
15755
|
+
|
|
15483
15756
|
return {
|
|
15484
15757
|
url: toPathString(localVarUrlObj),
|
|
15485
15758
|
options: localVarRequestOptions,
|
|
@@ -15531,6 +15804,19 @@ export const BookingsUserApiFp = function(configuration?: Configuration) {
|
|
|
15531
15804
|
const localVarOperationServerBasePath = operationServerMap['BookingsUserApi.createOpenBooking']?.[localVarOperationServerIndex]?.url;
|
|
15532
15805
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15533
15806
|
},
|
|
15807
|
+
/**
|
|
15808
|
+
* Mettre à jour une réservation ouverte (description et niveau minimal)
|
|
15809
|
+
* @param {string} bookingId
|
|
15810
|
+
* @param {UpdateOpenBookingRequest} updateOpenBookingRequest
|
|
15811
|
+
* @param {*} [options] Override http request option.
|
|
15812
|
+
* @throws {RequiredError}
|
|
15813
|
+
*/
|
|
15814
|
+
async updateOpenBooking(bookingId: string, updateOpenBookingRequest: UpdateOpenBookingRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateOpenBooking200Response>> {
|
|
15815
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateOpenBooking(bookingId, updateOpenBookingRequest, options);
|
|
15816
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
15817
|
+
const localVarOperationServerBasePath = operationServerMap['BookingsUserApi.updateOpenBooking']?.[localVarOperationServerIndex]?.url;
|
|
15818
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15819
|
+
},
|
|
15534
15820
|
}
|
|
15535
15821
|
};
|
|
15536
15822
|
|
|
@@ -15568,6 +15854,15 @@ export const BookingsUserApiFactory = function (configuration?: Configuration, b
|
|
|
15568
15854
|
createOpenBooking(requestParameters: BookingsUserApiCreateOpenBookingRequest, options?: RawAxiosRequestConfig): AxiosPromise<BookingResponse> {
|
|
15569
15855
|
return localVarFp.createOpenBooking(requestParameters.createOpenBookingRequest, options).then((request) => request(axios, basePath));
|
|
15570
15856
|
},
|
|
15857
|
+
/**
|
|
15858
|
+
* Mettre à jour une réservation ouverte (description et niveau minimal)
|
|
15859
|
+
* @param {BookingsUserApiUpdateOpenBookingRequest} requestParameters Request parameters.
|
|
15860
|
+
* @param {*} [options] Override http request option.
|
|
15861
|
+
* @throws {RequiredError}
|
|
15862
|
+
*/
|
|
15863
|
+
updateOpenBooking(requestParameters: BookingsUserApiUpdateOpenBookingRequest, options?: RawAxiosRequestConfig): AxiosPromise<UpdateOpenBooking200Response> {
|
|
15864
|
+
return localVarFp.updateOpenBooking(requestParameters.bookingId, requestParameters.updateOpenBookingRequest, options).then((request) => request(axios, basePath));
|
|
15865
|
+
},
|
|
15571
15866
|
};
|
|
15572
15867
|
};
|
|
15573
15868
|
|
|
@@ -15613,6 +15908,27 @@ export interface BookingsUserApiCreateOpenBookingRequest {
|
|
|
15613
15908
|
readonly createOpenBookingRequest: CreateOpenBookingRequest
|
|
15614
15909
|
}
|
|
15615
15910
|
|
|
15911
|
+
/**
|
|
15912
|
+
* Request parameters for updateOpenBooking operation in BookingsUserApi.
|
|
15913
|
+
* @export
|
|
15914
|
+
* @interface BookingsUserApiUpdateOpenBookingRequest
|
|
15915
|
+
*/
|
|
15916
|
+
export interface BookingsUserApiUpdateOpenBookingRequest {
|
|
15917
|
+
/**
|
|
15918
|
+
*
|
|
15919
|
+
* @type {string}
|
|
15920
|
+
* @memberof BookingsUserApiUpdateOpenBooking
|
|
15921
|
+
*/
|
|
15922
|
+
readonly bookingId: string
|
|
15923
|
+
|
|
15924
|
+
/**
|
|
15925
|
+
*
|
|
15926
|
+
* @type {UpdateOpenBookingRequest}
|
|
15927
|
+
* @memberof BookingsUserApiUpdateOpenBooking
|
|
15928
|
+
*/
|
|
15929
|
+
readonly updateOpenBookingRequest: UpdateOpenBookingRequest
|
|
15930
|
+
}
|
|
15931
|
+
|
|
15616
15932
|
/**
|
|
15617
15933
|
* BookingsUserApi - object-oriented interface
|
|
15618
15934
|
* @export
|
|
@@ -15652,6 +15968,17 @@ export class BookingsUserApi extends BaseAPI {
|
|
|
15652
15968
|
public createOpenBooking(requestParameters: BookingsUserApiCreateOpenBookingRequest, options?: RawAxiosRequestConfig) {
|
|
15653
15969
|
return BookingsUserApiFp(this.configuration).createOpenBooking(requestParameters.createOpenBookingRequest, options).then((request) => request(this.axios, this.basePath));
|
|
15654
15970
|
}
|
|
15971
|
+
|
|
15972
|
+
/**
|
|
15973
|
+
* Mettre à jour une réservation ouverte (description et niveau minimal)
|
|
15974
|
+
* @param {BookingsUserApiUpdateOpenBookingRequest} requestParameters Request parameters.
|
|
15975
|
+
* @param {*} [options] Override http request option.
|
|
15976
|
+
* @throws {RequiredError}
|
|
15977
|
+
* @memberof BookingsUserApi
|
|
15978
|
+
*/
|
|
15979
|
+
public updateOpenBooking(requestParameters: BookingsUserApiUpdateOpenBookingRequest, options?: RawAxiosRequestConfig) {
|
|
15980
|
+
return BookingsUserApiFp(this.configuration).updateOpenBooking(requestParameters.bookingId, requestParameters.updateOpenBookingRequest, options).then((request) => request(this.axios, this.basePath));
|
|
15981
|
+
}
|
|
15655
15982
|
}
|
|
15656
15983
|
|
|
15657
15984
|
|
|
@@ -29727,6 +30054,43 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
29727
30054
|
|
|
29728
30055
|
|
|
29729
30056
|
|
|
30057
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
30058
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
30059
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
30060
|
+
|
|
30061
|
+
return {
|
|
30062
|
+
url: toPathString(localVarUrlObj),
|
|
30063
|
+
options: localVarRequestOptions,
|
|
30064
|
+
};
|
|
30065
|
+
},
|
|
30066
|
+
/**
|
|
30067
|
+
* Quitter une réservation
|
|
30068
|
+
* @param {string} bookingId
|
|
30069
|
+
* @param {*} [options] Override http request option.
|
|
30070
|
+
* @throws {RequiredError}
|
|
30071
|
+
*/
|
|
30072
|
+
leaveBooking: async (bookingId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
30073
|
+
// verify required parameter 'bookingId' is not null or undefined
|
|
30074
|
+
assertParamExists('leaveBooking', 'bookingId', bookingId)
|
|
30075
|
+
const localVarPath = `/api/users/me/bookings/{bookingId}/leave`
|
|
30076
|
+
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
30077
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
30078
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
30079
|
+
let baseOptions;
|
|
30080
|
+
if (configuration) {
|
|
30081
|
+
baseOptions = configuration.baseOptions;
|
|
30082
|
+
}
|
|
30083
|
+
|
|
30084
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
30085
|
+
const localVarHeaderParameter = {} as any;
|
|
30086
|
+
const localVarQueryParameter = {} as any;
|
|
30087
|
+
|
|
30088
|
+
// authentication bearerAuth required
|
|
30089
|
+
// http bearer authentication required
|
|
30090
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
30091
|
+
|
|
30092
|
+
|
|
30093
|
+
|
|
29730
30094
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
29731
30095
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
29732
30096
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -30735,6 +31099,18 @@ export const UsersApiFp = function(configuration?: Configuration) {
|
|
|
30735
31099
|
const localVarOperationServerBasePath = operationServerMap['UsersApi.getUserProfileById']?.[localVarOperationServerIndex]?.url;
|
|
30736
31100
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
30737
31101
|
},
|
|
31102
|
+
/**
|
|
31103
|
+
* Quitter une réservation
|
|
31104
|
+
* @param {string} bookingId
|
|
31105
|
+
* @param {*} [options] Override http request option.
|
|
31106
|
+
* @throws {RequiredError}
|
|
31107
|
+
*/
|
|
31108
|
+
async leaveBooking(bookingId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LeaveEventWaitList200Response>> {
|
|
31109
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.leaveBooking(bookingId, options);
|
|
31110
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
31111
|
+
const localVarOperationServerBasePath = operationServerMap['UsersApi.leaveBooking']?.[localVarOperationServerIndex]?.url;
|
|
31112
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
31113
|
+
},
|
|
30738
31114
|
/**
|
|
30739
31115
|
*
|
|
30740
31116
|
* @param {PlayerCategoryId} [category]
|
|
@@ -31162,6 +31538,15 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
|
|
|
31162
31538
|
getUserProfileById(requestParameters: UsersApiGetUserProfileByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<PublicUserProfileResponse> {
|
|
31163
31539
|
return localVarFp.getUserProfileById(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
31164
31540
|
},
|
|
31541
|
+
/**
|
|
31542
|
+
* Quitter une réservation
|
|
31543
|
+
* @param {UsersApiLeaveBookingRequest} requestParameters Request parameters.
|
|
31544
|
+
* @param {*} [options] Override http request option.
|
|
31545
|
+
* @throws {RequiredError}
|
|
31546
|
+
*/
|
|
31547
|
+
leaveBooking(requestParameters: UsersApiLeaveBookingRequest, options?: RawAxiosRequestConfig): AxiosPromise<LeaveEventWaitList200Response> {
|
|
31548
|
+
return localVarFp.leaveBooking(requestParameters.bookingId, options).then((request) => request(axios, basePath));
|
|
31549
|
+
},
|
|
31165
31550
|
/**
|
|
31166
31551
|
*
|
|
31167
31552
|
* @param {UsersApiListPlayersRequest} requestParameters Request parameters.
|
|
@@ -31587,6 +31972,20 @@ export interface UsersApiGetUserProfileByIdRequest {
|
|
|
31587
31972
|
readonly id: string
|
|
31588
31973
|
}
|
|
31589
31974
|
|
|
31975
|
+
/**
|
|
31976
|
+
* Request parameters for leaveBooking operation in UsersApi.
|
|
31977
|
+
* @export
|
|
31978
|
+
* @interface UsersApiLeaveBookingRequest
|
|
31979
|
+
*/
|
|
31980
|
+
export interface UsersApiLeaveBookingRequest {
|
|
31981
|
+
/**
|
|
31982
|
+
*
|
|
31983
|
+
* @type {string}
|
|
31984
|
+
* @memberof UsersApiLeaveBooking
|
|
31985
|
+
*/
|
|
31986
|
+
readonly bookingId: string
|
|
31987
|
+
}
|
|
31988
|
+
|
|
31590
31989
|
/**
|
|
31591
31990
|
* Request parameters for listPlayers operation in UsersApi.
|
|
31592
31991
|
* @export
|
|
@@ -32132,6 +32531,17 @@ export class UsersApi extends BaseAPI {
|
|
|
32132
32531
|
return UsersApiFp(this.configuration).getUserProfileById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
32133
32532
|
}
|
|
32134
32533
|
|
|
32534
|
+
/**
|
|
32535
|
+
* Quitter une réservation
|
|
32536
|
+
* @param {UsersApiLeaveBookingRequest} requestParameters Request parameters.
|
|
32537
|
+
* @param {*} [options] Override http request option.
|
|
32538
|
+
* @throws {RequiredError}
|
|
32539
|
+
* @memberof UsersApi
|
|
32540
|
+
*/
|
|
32541
|
+
public leaveBooking(requestParameters: UsersApiLeaveBookingRequest, options?: RawAxiosRequestConfig) {
|
|
32542
|
+
return UsersApiFp(this.configuration).leaveBooking(requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
|
|
32543
|
+
}
|
|
32544
|
+
|
|
32135
32545
|
/**
|
|
32136
32546
|
*
|
|
32137
32547
|
* @param {UsersApiListPlayersRequest} requestParameters Request parameters.
|
package/base.ts
CHANGED
package/common.ts
CHANGED
package/configuration.ts
CHANGED