@tennac-booking/sdk 1.0.151 → 1.0.153
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 -369
- package/README.md +3 -6
- package/api.ts +23 -130
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +22 -90
- package/dist/api.js +2 -65
- 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 +22 -90
- package/dist/esm/api.js +2 -65
- 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 +0 -53
- package/docs/ClubsApi.md +1 -1
- package/docs/CreateEventRequest.md +2 -2
- package/docs/EventResponse.md +2 -2
- package/docs/IUserAttributes.md +5 -5
- package/docs/StaffUserProfileResponse.md +5 -5
- package/docs/UpdateEventRequest.md +2 -2
- package/docs/UserProfileResponse.md +5 -5
- package/index.ts +1 -1
- package/package.json +1 -1
- package/docs/GetGuestBookingPrice200Response.md +0 -20
- package/docs/GetGuestBookingPriceRequest.md +0 -20
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):_
|
|
@@ -55,7 +55,6 @@ Class | Method | HTTP request | Description
|
|
|
55
55
|
*BookingsApi* | [**estimateOpenBookingJoinPrice**](docs/BookingsApi.md#estimateopenbookingjoinprice) | **GET** /api/bookings/{bookingId}/open/estimate |
|
|
56
56
|
*BookingsApi* | [**getBookingHistory**](docs/BookingsApi.md#getbookinghistory) | **GET** /api/bookings/history/{bookingId} |
|
|
57
57
|
*BookingsApi* | [**getBookingPrice**](docs/BookingsApi.md#getbookingprice) | **POST** /api/bookings/booking-price |
|
|
58
|
-
*BookingsApi* | [**getGuestBookingPrice**](docs/BookingsApi.md#getguestbookingprice) | **POST** /api/bookings/guest/booking-price |
|
|
59
58
|
*BookingsApi* | [**getOpenBookingJoinPrice**](docs/BookingsApi.md#getopenbookingjoinprice) | **GET** /api/bookings/{bookingId}/open/join-price |
|
|
60
59
|
*BookingsApi* | [**getOpenBookings**](docs/BookingsApi.md#getopenbookings) | **GET** /api/bookings/open |
|
|
61
60
|
*BookingsApi* | [**getQuickReservationSlots**](docs/BookingsApi.md#getquickreservationslots) | **GET** /api/bookings/quick-reservations |
|
|
@@ -135,7 +134,7 @@ Class | Method | HTTP request | Description
|
|
|
135
134
|
*ClubsApi* | [**getClubUsersById**](docs/ClubsApi.md#getclubusersbyid) | **GET** /api/clubs/{id}/users |
|
|
136
135
|
*ClubsApi* | [**getClubsWithVerificationDomains**](docs/ClubsApi.md#getclubswithverificationdomains) | **GET** /api/clubs/verification-domains |
|
|
137
136
|
*ClubsApi* | [**getCourtsByClubAndSportById**](docs/ClubsApi.md#getcourtsbyclubandsportbyid) | **GET** /api/clubs/{id}/sports/{sportId}/courts |
|
|
138
|
-
*ClubsApi* | [**getPublicClubInfo**](docs/ClubsApi.md#getpublicclubinfo) | **GET** /api/clubs/{clubId} |
|
|
137
|
+
*ClubsApi* | [**getPublicClubInfo**](docs/ClubsApi.md#getpublicclubinfo) | **GET** /api/clubs/clubInfo/{clubId} |
|
|
139
138
|
*ClubsApi* | [**getPublishedActualities**](docs/ClubsApi.md#getpublishedactualities) | **GET** /api/clubs/{id}/actualities |
|
|
140
139
|
*ClubsApi* | [**getSlotsByClubById**](docs/ClubsApi.md#getslotsbyclubbyid) | **GET** /api/clubs/{id}/slots |
|
|
141
140
|
*ClubsApi* | [**getSportsByClubById**](docs/ClubsApi.md#getsportsbyclubbyid) | **GET** /api/clubs/{id}/sports |
|
|
@@ -412,8 +411,6 @@ Class | Method | HTTP request | Description
|
|
|
412
411
|
- [GetClubUsersById200Response](docs/GetClubUsersById200Response.md)
|
|
413
412
|
- [GetClubsWithVerificationDomains200ResponseInner](docs/GetClubsWithVerificationDomains200ResponseInner.md)
|
|
414
413
|
- [GetCourtsByClubAndSportById200Response](docs/GetCourtsByClubAndSportById200Response.md)
|
|
415
|
-
- [GetGuestBookingPrice200Response](docs/GetGuestBookingPrice200Response.md)
|
|
416
|
-
- [GetGuestBookingPriceRequest](docs/GetGuestBookingPriceRequest.md)
|
|
417
414
|
- [GetInfillPercentagePerPeriod200Response](docs/GetInfillPercentagePerPeriod200Response.md)
|
|
418
415
|
- [GetOpenBookings200Response](docs/GetOpenBookings200Response.md)
|
|
419
416
|
- [GetOpenEventBookingJoinPrice200Response](docs/GetOpenEventBookingJoinPrice200Response.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).
|
|
@@ -4132,10 +4132,10 @@ export interface CreateEventRequest {
|
|
|
4132
4132
|
'sponsors'?: Array<EventSponsor>;
|
|
4133
4133
|
/**
|
|
4134
4134
|
*
|
|
4135
|
-
* @type {
|
|
4135
|
+
* @type {number}
|
|
4136
4136
|
* @memberof CreateEventRequest
|
|
4137
4137
|
*/
|
|
4138
|
-
'
|
|
4138
|
+
'registrationOpenDaysBefore'?: number;
|
|
4139
4139
|
/**
|
|
4140
4140
|
*
|
|
4141
4141
|
* @type {string}
|
|
@@ -5407,10 +5407,10 @@ export interface EventResponse {
|
|
|
5407
5407
|
'sponsors'?: Array<EventSponsor>;
|
|
5408
5408
|
/**
|
|
5409
5409
|
*
|
|
5410
|
-
* @type {
|
|
5410
|
+
* @type {number}
|
|
5411
5411
|
* @memberof EventResponse
|
|
5412
5412
|
*/
|
|
5413
|
-
'
|
|
5413
|
+
'registrationOpenDaysBefore': number;
|
|
5414
5414
|
/**
|
|
5415
5415
|
*
|
|
5416
5416
|
* @type {string}
|
|
@@ -5824,32 +5824,6 @@ export interface GetCourtsByClubAndSportById200Response {
|
|
|
5824
5824
|
*/
|
|
5825
5825
|
'courts': Array<ICourtData>;
|
|
5826
5826
|
}
|
|
5827
|
-
/**
|
|
5828
|
-
*
|
|
5829
|
-
* @export
|
|
5830
|
-
* @interface GetGuestBookingPrice200Response
|
|
5831
|
-
*/
|
|
5832
|
-
export interface GetGuestBookingPrice200Response {
|
|
5833
|
-
/**
|
|
5834
|
-
*
|
|
5835
|
-
* @type {number}
|
|
5836
|
-
* @memberof GetGuestBookingPrice200Response
|
|
5837
|
-
*/
|
|
5838
|
-
'totalPrice': number;
|
|
5839
|
-
}
|
|
5840
|
-
/**
|
|
5841
|
-
*
|
|
5842
|
-
* @export
|
|
5843
|
-
* @interface GetGuestBookingPriceRequest
|
|
5844
|
-
*/
|
|
5845
|
-
export interface GetGuestBookingPriceRequest {
|
|
5846
|
-
/**
|
|
5847
|
-
*
|
|
5848
|
-
* @type {Array<string>}
|
|
5849
|
-
* @memberof GetGuestBookingPriceRequest
|
|
5850
|
-
*/
|
|
5851
|
-
'slotIds': Array<string>;
|
|
5852
|
-
}
|
|
5853
5827
|
/**
|
|
5854
5828
|
*
|
|
5855
5829
|
* @export
|
|
@@ -6235,7 +6209,7 @@ export interface IUserAttributes {
|
|
|
6235
6209
|
* @type {boolean}
|
|
6236
6210
|
* @memberof IUserAttributes
|
|
6237
6211
|
*/
|
|
6238
|
-
'isAccountVerified'
|
|
6212
|
+
'isAccountVerified': boolean;
|
|
6239
6213
|
/**
|
|
6240
6214
|
*
|
|
6241
6215
|
* @type {Array<ILevelBySports>}
|
|
@@ -6313,7 +6287,7 @@ export interface IUserAttributes {
|
|
|
6313
6287
|
* @type {boolean}
|
|
6314
6288
|
* @memberof IUserAttributes
|
|
6315
6289
|
*/
|
|
6316
|
-
'isAdmin'
|
|
6290
|
+
'isAdmin': boolean;
|
|
6317
6291
|
/**
|
|
6318
6292
|
*
|
|
6319
6293
|
* @type {boolean}
|
|
@@ -6325,13 +6299,13 @@ export interface IUserAttributes {
|
|
|
6325
6299
|
* @type {string}
|
|
6326
6300
|
* @memberof IUserAttributes
|
|
6327
6301
|
*/
|
|
6328
|
-
'createdAt'
|
|
6302
|
+
'createdAt': string;
|
|
6329
6303
|
/**
|
|
6330
6304
|
*
|
|
6331
6305
|
* @type {string}
|
|
6332
6306
|
* @memberof IUserAttributes
|
|
6333
6307
|
*/
|
|
6334
|
-
'updatedAt'
|
|
6308
|
+
'updatedAt': string;
|
|
6335
6309
|
/**
|
|
6336
6310
|
*
|
|
6337
6311
|
* @type {boolean}
|
|
@@ -6355,7 +6329,7 @@ export interface IUserAttributes {
|
|
|
6355
6329
|
* @type {boolean}
|
|
6356
6330
|
* @memberof IUserAttributes
|
|
6357
6331
|
*/
|
|
6358
|
-
'isProfileVisible'
|
|
6332
|
+
'isProfileVisible': boolean;
|
|
6359
6333
|
/**
|
|
6360
6334
|
*
|
|
6361
6335
|
* @type {Array<string>}
|
|
@@ -9933,7 +9907,7 @@ export interface StaffUserProfileResponse {
|
|
|
9933
9907
|
* @type {boolean}
|
|
9934
9908
|
* @memberof StaffUserProfileResponse
|
|
9935
9909
|
*/
|
|
9936
|
-
'isAccountVerified'
|
|
9910
|
+
'isAccountVerified': boolean;
|
|
9937
9911
|
/**
|
|
9938
9912
|
*
|
|
9939
9913
|
* @type {Array<ILevelBySports>}
|
|
@@ -10011,7 +9985,7 @@ export interface StaffUserProfileResponse {
|
|
|
10011
9985
|
* @type {boolean}
|
|
10012
9986
|
* @memberof StaffUserProfileResponse
|
|
10013
9987
|
*/
|
|
10014
|
-
'isAdmin'
|
|
9988
|
+
'isAdmin': boolean;
|
|
10015
9989
|
/**
|
|
10016
9990
|
*
|
|
10017
9991
|
* @type {boolean}
|
|
@@ -10023,13 +9997,13 @@ export interface StaffUserProfileResponse {
|
|
|
10023
9997
|
* @type {string}
|
|
10024
9998
|
* @memberof StaffUserProfileResponse
|
|
10025
9999
|
*/
|
|
10026
|
-
'createdAt'
|
|
10000
|
+
'createdAt': string;
|
|
10027
10001
|
/**
|
|
10028
10002
|
*
|
|
10029
10003
|
* @type {string}
|
|
10030
10004
|
* @memberof StaffUserProfileResponse
|
|
10031
10005
|
*/
|
|
10032
|
-
'updatedAt'
|
|
10006
|
+
'updatedAt': string;
|
|
10033
10007
|
/**
|
|
10034
10008
|
*
|
|
10035
10009
|
* @type {boolean}
|
|
@@ -10053,7 +10027,7 @@ export interface StaffUserProfileResponse {
|
|
|
10053
10027
|
* @type {boolean}
|
|
10054
10028
|
* @memberof StaffUserProfileResponse
|
|
10055
10029
|
*/
|
|
10056
|
-
'isProfileVisible'
|
|
10030
|
+
'isProfileVisible': boolean;
|
|
10057
10031
|
/**
|
|
10058
10032
|
*
|
|
10059
10033
|
* @type {Array<string>}
|
|
@@ -11001,10 +10975,10 @@ export interface UpdateEventRequest {
|
|
|
11001
10975
|
'levels'?: Array<string | null>;
|
|
11002
10976
|
/**
|
|
11003
10977
|
*
|
|
11004
|
-
* @type {
|
|
10978
|
+
* @type {number}
|
|
11005
10979
|
* @memberof UpdateEventRequest
|
|
11006
10980
|
*/
|
|
11007
|
-
'
|
|
10981
|
+
'registrationOpenDaysBefore'?: number;
|
|
11008
10982
|
/**
|
|
11009
10983
|
*
|
|
11010
10984
|
* @type {Array<EventSponsor>}
|
|
@@ -12005,7 +11979,7 @@ export interface UserProfileResponse {
|
|
|
12005
11979
|
* @type {boolean}
|
|
12006
11980
|
* @memberof UserProfileResponse
|
|
12007
11981
|
*/
|
|
12008
|
-
'isAccountVerified'
|
|
11982
|
+
'isAccountVerified': boolean;
|
|
12009
11983
|
/**
|
|
12010
11984
|
*
|
|
12011
11985
|
* @type {Array<ILevelBySports>}
|
|
@@ -12083,7 +12057,7 @@ export interface UserProfileResponse {
|
|
|
12083
12057
|
* @type {boolean}
|
|
12084
12058
|
* @memberof UserProfileResponse
|
|
12085
12059
|
*/
|
|
12086
|
-
'isAdmin'
|
|
12060
|
+
'isAdmin': boolean;
|
|
12087
12061
|
/**
|
|
12088
12062
|
*
|
|
12089
12063
|
* @type {boolean}
|
|
@@ -12095,13 +12069,13 @@ export interface UserProfileResponse {
|
|
|
12095
12069
|
* @type {string}
|
|
12096
12070
|
* @memberof UserProfileResponse
|
|
12097
12071
|
*/
|
|
12098
|
-
'createdAt'
|
|
12072
|
+
'createdAt': string;
|
|
12099
12073
|
/**
|
|
12100
12074
|
*
|
|
12101
12075
|
* @type {string}
|
|
12102
12076
|
* @memberof UserProfileResponse
|
|
12103
12077
|
*/
|
|
12104
|
-
'updatedAt'
|
|
12078
|
+
'updatedAt': string;
|
|
12105
12079
|
/**
|
|
12106
12080
|
*
|
|
12107
12081
|
* @type {boolean}
|
|
@@ -12125,7 +12099,7 @@ export interface UserProfileResponse {
|
|
|
12125
12099
|
* @type {boolean}
|
|
12126
12100
|
* @memberof UserProfileResponse
|
|
12127
12101
|
*/
|
|
12128
|
-
'isProfileVisible'
|
|
12102
|
+
'isProfileVisible': boolean;
|
|
12129
12103
|
/**
|
|
12130
12104
|
*
|
|
12131
12105
|
* @type {Array<string>}
|
|
@@ -12496,41 +12470,6 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
12496
12470
|
options: localVarRequestOptions,
|
|
12497
12471
|
};
|
|
12498
12472
|
},
|
|
12499
|
-
/**
|
|
12500
|
-
* Calculer le prix d\'une réservation pour un invité (sans authentification)
|
|
12501
|
-
* @param {GetGuestBookingPriceRequest} getGuestBookingPriceRequest
|
|
12502
|
-
* @param {*} [options] Override http request option.
|
|
12503
|
-
* @throws {RequiredError}
|
|
12504
|
-
*/
|
|
12505
|
-
getGuestBookingPrice: async (getGuestBookingPriceRequest: GetGuestBookingPriceRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
12506
|
-
// verify required parameter 'getGuestBookingPriceRequest' is not null or undefined
|
|
12507
|
-
assertParamExists('getGuestBookingPrice', 'getGuestBookingPriceRequest', getGuestBookingPriceRequest)
|
|
12508
|
-
const localVarPath = `/api/bookings/guest/booking-price`;
|
|
12509
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12510
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12511
|
-
let baseOptions;
|
|
12512
|
-
if (configuration) {
|
|
12513
|
-
baseOptions = configuration.baseOptions;
|
|
12514
|
-
}
|
|
12515
|
-
|
|
12516
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
12517
|
-
const localVarHeaderParameter = {} as any;
|
|
12518
|
-
const localVarQueryParameter = {} as any;
|
|
12519
|
-
|
|
12520
|
-
|
|
12521
|
-
|
|
12522
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
12523
|
-
|
|
12524
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12525
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12526
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
12527
|
-
localVarRequestOptions.data = serializeDataIfNeeded(getGuestBookingPriceRequest, localVarRequestOptions, configuration)
|
|
12528
|
-
|
|
12529
|
-
return {
|
|
12530
|
-
url: toPathString(localVarUrlObj),
|
|
12531
|
-
options: localVarRequestOptions,
|
|
12532
|
-
};
|
|
12533
|
-
},
|
|
12534
12473
|
/**
|
|
12535
12474
|
* Estimer simplement le prix à payer pour rejoindre une réservation ouverte
|
|
12536
12475
|
* @param {string} bookingId
|
|
@@ -12829,18 +12768,6 @@ export const BookingsApiFp = function(configuration?: Configuration) {
|
|
|
12829
12768
|
const localVarOperationServerBasePath = operationServerMap['BookingsApi.getBookingPrice']?.[localVarOperationServerIndex]?.url;
|
|
12830
12769
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12831
12770
|
},
|
|
12832
|
-
/**
|
|
12833
|
-
* Calculer le prix d\'une réservation pour un invité (sans authentification)
|
|
12834
|
-
* @param {GetGuestBookingPriceRequest} getGuestBookingPriceRequest
|
|
12835
|
-
* @param {*} [options] Override http request option.
|
|
12836
|
-
* @throws {RequiredError}
|
|
12837
|
-
*/
|
|
12838
|
-
async getGuestBookingPrice(getGuestBookingPriceRequest: GetGuestBookingPriceRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetGuestBookingPrice200Response>> {
|
|
12839
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getGuestBookingPrice(getGuestBookingPriceRequest, options);
|
|
12840
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
12841
|
-
const localVarOperationServerBasePath = operationServerMap['BookingsApi.getGuestBookingPrice']?.[localVarOperationServerIndex]?.url;
|
|
12842
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12843
|
-
},
|
|
12844
12771
|
/**
|
|
12845
12772
|
* Estimer simplement le prix à payer pour rejoindre une réservation ouverte
|
|
12846
12773
|
* @param {string} bookingId
|
|
@@ -12958,15 +12885,6 @@ export const BookingsApiFactory = function (configuration?: Configuration, baseP
|
|
|
12958
12885
|
getBookingPrice(requestParameters: BookingsApiGetBookingPriceRequest, options?: RawAxiosRequestConfig): AxiosPromise<BookingPriceResponse> {
|
|
12959
12886
|
return localVarFp.getBookingPrice(requestParameters.bookingPriceBody, options).then((request) => request(axios, basePath));
|
|
12960
12887
|
},
|
|
12961
|
-
/**
|
|
12962
|
-
* Calculer le prix d\'une réservation pour un invité (sans authentification)
|
|
12963
|
-
* @param {BookingsApiGetGuestBookingPriceRequest} requestParameters Request parameters.
|
|
12964
|
-
* @param {*} [options] Override http request option.
|
|
12965
|
-
* @throws {RequiredError}
|
|
12966
|
-
*/
|
|
12967
|
-
getGuestBookingPrice(requestParameters: BookingsApiGetGuestBookingPriceRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetGuestBookingPrice200Response> {
|
|
12968
|
-
return localVarFp.getGuestBookingPrice(requestParameters.getGuestBookingPriceRequest, options).then((request) => request(axios, basePath));
|
|
12969
|
-
},
|
|
12970
12888
|
/**
|
|
12971
12889
|
* Estimer simplement le prix à payer pour rejoindre une réservation ouverte
|
|
12972
12890
|
* @param {BookingsApiGetOpenBookingJoinPriceRequest} requestParameters Request parameters.
|
|
@@ -13078,20 +12996,6 @@ export interface BookingsApiGetBookingPriceRequest {
|
|
|
13078
12996
|
readonly bookingPriceBody: BookingPriceBody
|
|
13079
12997
|
}
|
|
13080
12998
|
|
|
13081
|
-
/**
|
|
13082
|
-
* Request parameters for getGuestBookingPrice operation in BookingsApi.
|
|
13083
|
-
* @export
|
|
13084
|
-
* @interface BookingsApiGetGuestBookingPriceRequest
|
|
13085
|
-
*/
|
|
13086
|
-
export interface BookingsApiGetGuestBookingPriceRequest {
|
|
13087
|
-
/**
|
|
13088
|
-
*
|
|
13089
|
-
* @type {GetGuestBookingPriceRequest}
|
|
13090
|
-
* @memberof BookingsApiGetGuestBookingPrice
|
|
13091
|
-
*/
|
|
13092
|
-
readonly getGuestBookingPriceRequest: GetGuestBookingPriceRequest
|
|
13093
|
-
}
|
|
13094
|
-
|
|
13095
12999
|
/**
|
|
13096
13000
|
* Request parameters for getOpenBookingJoinPrice operation in BookingsApi.
|
|
13097
13001
|
* @export
|
|
@@ -13290,17 +13194,6 @@ export class BookingsApi extends BaseAPI {
|
|
|
13290
13194
|
return BookingsApiFp(this.configuration).getBookingPrice(requestParameters.bookingPriceBody, options).then((request) => request(this.axios, this.basePath));
|
|
13291
13195
|
}
|
|
13292
13196
|
|
|
13293
|
-
/**
|
|
13294
|
-
* Calculer le prix d\'une réservation pour un invité (sans authentification)
|
|
13295
|
-
* @param {BookingsApiGetGuestBookingPriceRequest} requestParameters Request parameters.
|
|
13296
|
-
* @param {*} [options] Override http request option.
|
|
13297
|
-
* @throws {RequiredError}
|
|
13298
|
-
* @memberof BookingsApi
|
|
13299
|
-
*/
|
|
13300
|
-
public getGuestBookingPrice(requestParameters: BookingsApiGetGuestBookingPriceRequest, options?: RawAxiosRequestConfig) {
|
|
13301
|
-
return BookingsApiFp(this.configuration).getGuestBookingPrice(requestParameters.getGuestBookingPriceRequest, options).then((request) => request(this.axios, this.basePath));
|
|
13302
|
-
}
|
|
13303
|
-
|
|
13304
13197
|
/**
|
|
13305
13198
|
* Estimer simplement le prix à payer pour rejoindre une réservation ouverte
|
|
13306
13199
|
* @param {BookingsApiGetOpenBookingJoinPriceRequest} requestParameters Request parameters.
|
|
@@ -19357,7 +19250,7 @@ export const ClubsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
19357
19250
|
getPublicClubInfo: async (clubId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
19358
19251
|
// verify required parameter 'clubId' is not null or undefined
|
|
19359
19252
|
assertParamExists('getPublicClubInfo', 'clubId', clubId)
|
|
19360
|
-
const localVarPath = `/api/clubs/{clubId}`
|
|
19253
|
+
const localVarPath = `/api/clubs/clubInfo/{clubId}`
|
|
19361
19254
|
.replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
|
|
19362
19255
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
19363
19256
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
package/base.ts
CHANGED
package/common.ts
CHANGED
package/configuration.ts
CHANGED
package/dist/api.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* openapi.json
|
|
3
3
|
* Pandook API Documentation
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.
|
|
5
|
+
* The version of the OpenAPI document: 1.0.150
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4068,10 +4068,10 @@ export interface CreateEventRequest {
|
|
|
4068
4068
|
'sponsors'?: Array<EventSponsor>;
|
|
4069
4069
|
/**
|
|
4070
4070
|
*
|
|
4071
|
-
* @type {
|
|
4071
|
+
* @type {number}
|
|
4072
4072
|
* @memberof CreateEventRequest
|
|
4073
4073
|
*/
|
|
4074
|
-
'
|
|
4074
|
+
'registrationOpenDaysBefore'?: number;
|
|
4075
4075
|
/**
|
|
4076
4076
|
*
|
|
4077
4077
|
* @type {string}
|
|
@@ -5313,10 +5313,10 @@ export interface EventResponse {
|
|
|
5313
5313
|
'sponsors'?: Array<EventSponsor>;
|
|
5314
5314
|
/**
|
|
5315
5315
|
*
|
|
5316
|
-
* @type {
|
|
5316
|
+
* @type {number}
|
|
5317
5317
|
* @memberof EventResponse
|
|
5318
5318
|
*/
|
|
5319
|
-
'
|
|
5319
|
+
'registrationOpenDaysBefore': number;
|
|
5320
5320
|
/**
|
|
5321
5321
|
*
|
|
5322
5322
|
* @type {string}
|
|
@@ -5720,32 +5720,6 @@ export interface GetCourtsByClubAndSportById200Response {
|
|
|
5720
5720
|
*/
|
|
5721
5721
|
'courts': Array<ICourtData>;
|
|
5722
5722
|
}
|
|
5723
|
-
/**
|
|
5724
|
-
*
|
|
5725
|
-
* @export
|
|
5726
|
-
* @interface GetGuestBookingPrice200Response
|
|
5727
|
-
*/
|
|
5728
|
-
export interface GetGuestBookingPrice200Response {
|
|
5729
|
-
/**
|
|
5730
|
-
*
|
|
5731
|
-
* @type {number}
|
|
5732
|
-
* @memberof GetGuestBookingPrice200Response
|
|
5733
|
-
*/
|
|
5734
|
-
'totalPrice': number;
|
|
5735
|
-
}
|
|
5736
|
-
/**
|
|
5737
|
-
*
|
|
5738
|
-
* @export
|
|
5739
|
-
* @interface GetGuestBookingPriceRequest
|
|
5740
|
-
*/
|
|
5741
|
-
export interface GetGuestBookingPriceRequest {
|
|
5742
|
-
/**
|
|
5743
|
-
*
|
|
5744
|
-
* @type {Array<string>}
|
|
5745
|
-
* @memberof GetGuestBookingPriceRequest
|
|
5746
|
-
*/
|
|
5747
|
-
'slotIds': Array<string>;
|
|
5748
|
-
}
|
|
5749
5723
|
/**
|
|
5750
5724
|
*
|
|
5751
5725
|
* @export
|
|
@@ -6129,7 +6103,7 @@ export interface IUserAttributes {
|
|
|
6129
6103
|
* @type {boolean}
|
|
6130
6104
|
* @memberof IUserAttributes
|
|
6131
6105
|
*/
|
|
6132
|
-
'isAccountVerified'
|
|
6106
|
+
'isAccountVerified': boolean;
|
|
6133
6107
|
/**
|
|
6134
6108
|
*
|
|
6135
6109
|
* @type {Array<ILevelBySports>}
|
|
@@ -6207,7 +6181,7 @@ export interface IUserAttributes {
|
|
|
6207
6181
|
* @type {boolean}
|
|
6208
6182
|
* @memberof IUserAttributes
|
|
6209
6183
|
*/
|
|
6210
|
-
'isAdmin'
|
|
6184
|
+
'isAdmin': boolean;
|
|
6211
6185
|
/**
|
|
6212
6186
|
*
|
|
6213
6187
|
* @type {boolean}
|
|
@@ -6219,13 +6193,13 @@ export interface IUserAttributes {
|
|
|
6219
6193
|
* @type {string}
|
|
6220
6194
|
* @memberof IUserAttributes
|
|
6221
6195
|
*/
|
|
6222
|
-
'createdAt'
|
|
6196
|
+
'createdAt': string;
|
|
6223
6197
|
/**
|
|
6224
6198
|
*
|
|
6225
6199
|
* @type {string}
|
|
6226
6200
|
* @memberof IUserAttributes
|
|
6227
6201
|
*/
|
|
6228
|
-
'updatedAt'
|
|
6202
|
+
'updatedAt': string;
|
|
6229
6203
|
/**
|
|
6230
6204
|
*
|
|
6231
6205
|
* @type {boolean}
|
|
@@ -6249,7 +6223,7 @@ export interface IUserAttributes {
|
|
|
6249
6223
|
* @type {boolean}
|
|
6250
6224
|
* @memberof IUserAttributes
|
|
6251
6225
|
*/
|
|
6252
|
-
'isProfileVisible'
|
|
6226
|
+
'isProfileVisible': boolean;
|
|
6253
6227
|
/**
|
|
6254
6228
|
*
|
|
6255
6229
|
* @type {Array<string>}
|
|
@@ -9754,7 +9728,7 @@ export interface StaffUserProfileResponse {
|
|
|
9754
9728
|
* @type {boolean}
|
|
9755
9729
|
* @memberof StaffUserProfileResponse
|
|
9756
9730
|
*/
|
|
9757
|
-
'isAccountVerified'
|
|
9731
|
+
'isAccountVerified': boolean;
|
|
9758
9732
|
/**
|
|
9759
9733
|
*
|
|
9760
9734
|
* @type {Array<ILevelBySports>}
|
|
@@ -9832,7 +9806,7 @@ export interface StaffUserProfileResponse {
|
|
|
9832
9806
|
* @type {boolean}
|
|
9833
9807
|
* @memberof StaffUserProfileResponse
|
|
9834
9808
|
*/
|
|
9835
|
-
'isAdmin'
|
|
9809
|
+
'isAdmin': boolean;
|
|
9836
9810
|
/**
|
|
9837
9811
|
*
|
|
9838
9812
|
* @type {boolean}
|
|
@@ -9844,13 +9818,13 @@ export interface StaffUserProfileResponse {
|
|
|
9844
9818
|
* @type {string}
|
|
9845
9819
|
* @memberof StaffUserProfileResponse
|
|
9846
9820
|
*/
|
|
9847
|
-
'createdAt'
|
|
9821
|
+
'createdAt': string;
|
|
9848
9822
|
/**
|
|
9849
9823
|
*
|
|
9850
9824
|
* @type {string}
|
|
9851
9825
|
* @memberof StaffUserProfileResponse
|
|
9852
9826
|
*/
|
|
9853
|
-
'updatedAt'
|
|
9827
|
+
'updatedAt': string;
|
|
9854
9828
|
/**
|
|
9855
9829
|
*
|
|
9856
9830
|
* @type {boolean}
|
|
@@ -9874,7 +9848,7 @@ export interface StaffUserProfileResponse {
|
|
|
9874
9848
|
* @type {boolean}
|
|
9875
9849
|
* @memberof StaffUserProfileResponse
|
|
9876
9850
|
*/
|
|
9877
|
-
'isProfileVisible'
|
|
9851
|
+
'isProfileVisible': boolean;
|
|
9878
9852
|
/**
|
|
9879
9853
|
*
|
|
9880
9854
|
* @type {Array<string>}
|
|
@@ -10806,10 +10780,10 @@ export interface UpdateEventRequest {
|
|
|
10806
10780
|
'levels'?: Array<string | null>;
|
|
10807
10781
|
/**
|
|
10808
10782
|
*
|
|
10809
|
-
* @type {
|
|
10783
|
+
* @type {number}
|
|
10810
10784
|
* @memberof UpdateEventRequest
|
|
10811
10785
|
*/
|
|
10812
|
-
'
|
|
10786
|
+
'registrationOpenDaysBefore'?: number;
|
|
10813
10787
|
/**
|
|
10814
10788
|
*
|
|
10815
10789
|
* @type {Array<EventSponsor>}
|
|
@@ -11789,7 +11763,7 @@ export interface UserProfileResponse {
|
|
|
11789
11763
|
* @type {boolean}
|
|
11790
11764
|
* @memberof UserProfileResponse
|
|
11791
11765
|
*/
|
|
11792
|
-
'isAccountVerified'
|
|
11766
|
+
'isAccountVerified': boolean;
|
|
11793
11767
|
/**
|
|
11794
11768
|
*
|
|
11795
11769
|
* @type {Array<ILevelBySports>}
|
|
@@ -11867,7 +11841,7 @@ export interface UserProfileResponse {
|
|
|
11867
11841
|
* @type {boolean}
|
|
11868
11842
|
* @memberof UserProfileResponse
|
|
11869
11843
|
*/
|
|
11870
|
-
'isAdmin'
|
|
11844
|
+
'isAdmin': boolean;
|
|
11871
11845
|
/**
|
|
11872
11846
|
*
|
|
11873
11847
|
* @type {boolean}
|
|
@@ -11879,13 +11853,13 @@ export interface UserProfileResponse {
|
|
|
11879
11853
|
* @type {string}
|
|
11880
11854
|
* @memberof UserProfileResponse
|
|
11881
11855
|
*/
|
|
11882
|
-
'createdAt'
|
|
11856
|
+
'createdAt': string;
|
|
11883
11857
|
/**
|
|
11884
11858
|
*
|
|
11885
11859
|
* @type {string}
|
|
11886
11860
|
* @memberof UserProfileResponse
|
|
11887
11861
|
*/
|
|
11888
|
-
'updatedAt'
|
|
11862
|
+
'updatedAt': string;
|
|
11889
11863
|
/**
|
|
11890
11864
|
*
|
|
11891
11865
|
* @type {boolean}
|
|
@@ -11909,7 +11883,7 @@ export interface UserProfileResponse {
|
|
|
11909
11883
|
* @type {boolean}
|
|
11910
11884
|
* @memberof UserProfileResponse
|
|
11911
11885
|
*/
|
|
11912
|
-
'isProfileVisible'
|
|
11886
|
+
'isProfileVisible': boolean;
|
|
11913
11887
|
/**
|
|
11914
11888
|
*
|
|
11915
11889
|
* @type {Array<string>}
|
|
@@ -12150,13 +12124,6 @@ export declare const BookingsApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
12150
12124
|
* @throws {RequiredError}
|
|
12151
12125
|
*/
|
|
12152
12126
|
getBookingPrice: (bookingPriceBody: BookingPriceBody, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
12153
|
-
/**
|
|
12154
|
-
* Calculer le prix d\'une réservation pour un invité (sans authentification)
|
|
12155
|
-
* @param {GetGuestBookingPriceRequest} getGuestBookingPriceRequest
|
|
12156
|
-
* @param {*} [options] Override http request option.
|
|
12157
|
-
* @throws {RequiredError}
|
|
12158
|
-
*/
|
|
12159
|
-
getGuestBookingPrice: (getGuestBookingPriceRequest: GetGuestBookingPriceRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
12160
12127
|
/**
|
|
12161
12128
|
* Estimer simplement le prix à payer pour rejoindre une réservation ouverte
|
|
12162
12129
|
* @param {string} bookingId
|
|
@@ -12238,13 +12205,6 @@ export declare const BookingsApiFp: (configuration?: Configuration) => {
|
|
|
12238
12205
|
* @throws {RequiredError}
|
|
12239
12206
|
*/
|
|
12240
12207
|
getBookingPrice(bookingPriceBody: BookingPriceBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BookingPriceResponse>>;
|
|
12241
|
-
/**
|
|
12242
|
-
* Calculer le prix d\'une réservation pour un invité (sans authentification)
|
|
12243
|
-
* @param {GetGuestBookingPriceRequest} getGuestBookingPriceRequest
|
|
12244
|
-
* @param {*} [options] Override http request option.
|
|
12245
|
-
* @throws {RequiredError}
|
|
12246
|
-
*/
|
|
12247
|
-
getGuestBookingPrice(getGuestBookingPriceRequest: GetGuestBookingPriceRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetGuestBookingPrice200Response>>;
|
|
12248
12208
|
/**
|
|
12249
12209
|
* Estimer simplement le prix à payer pour rejoindre une réservation ouverte
|
|
12250
12210
|
* @param {string} bookingId
|
|
@@ -12325,13 +12285,6 @@ export declare const BookingsApiFactory: (configuration?: Configuration, basePat
|
|
|
12325
12285
|
* @throws {RequiredError}
|
|
12326
12286
|
*/
|
|
12327
12287
|
getBookingPrice(requestParameters: BookingsApiGetBookingPriceRequest, options?: RawAxiosRequestConfig): AxiosPromise<BookingPriceResponse>;
|
|
12328
|
-
/**
|
|
12329
|
-
* Calculer le prix d\'une réservation pour un invité (sans authentification)
|
|
12330
|
-
* @param {BookingsApiGetGuestBookingPriceRequest} requestParameters Request parameters.
|
|
12331
|
-
* @param {*} [options] Override http request option.
|
|
12332
|
-
* @throws {RequiredError}
|
|
12333
|
-
*/
|
|
12334
|
-
getGuestBookingPrice(requestParameters: BookingsApiGetGuestBookingPriceRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetGuestBookingPrice200Response>;
|
|
12335
12288
|
/**
|
|
12336
12289
|
* Estimer simplement le prix à payer pour rejoindre une réservation ouverte
|
|
12337
12290
|
* @param {BookingsApiGetOpenBookingJoinPriceRequest} requestParameters Request parameters.
|
|
@@ -12426,19 +12379,6 @@ export interface BookingsApiGetBookingPriceRequest {
|
|
|
12426
12379
|
*/
|
|
12427
12380
|
readonly bookingPriceBody: BookingPriceBody;
|
|
12428
12381
|
}
|
|
12429
|
-
/**
|
|
12430
|
-
* Request parameters for getGuestBookingPrice operation in BookingsApi.
|
|
12431
|
-
* @export
|
|
12432
|
-
* @interface BookingsApiGetGuestBookingPriceRequest
|
|
12433
|
-
*/
|
|
12434
|
-
export interface BookingsApiGetGuestBookingPriceRequest {
|
|
12435
|
-
/**
|
|
12436
|
-
*
|
|
12437
|
-
* @type {GetGuestBookingPriceRequest}
|
|
12438
|
-
* @memberof BookingsApiGetGuestBookingPrice
|
|
12439
|
-
*/
|
|
12440
|
-
readonly getGuestBookingPriceRequest: GetGuestBookingPriceRequest;
|
|
12441
|
-
}
|
|
12442
12382
|
/**
|
|
12443
12383
|
* Request parameters for getOpenBookingJoinPrice operation in BookingsApi.
|
|
12444
12384
|
* @export
|
|
@@ -12609,14 +12549,6 @@ export declare class BookingsApi extends BaseAPI {
|
|
|
12609
12549
|
* @memberof BookingsApi
|
|
12610
12550
|
*/
|
|
12611
12551
|
getBookingPrice(requestParameters: BookingsApiGetBookingPriceRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<BookingPriceResponse, any, {}>>;
|
|
12612
|
-
/**
|
|
12613
|
-
* Calculer le prix d\'une réservation pour un invité (sans authentification)
|
|
12614
|
-
* @param {BookingsApiGetGuestBookingPriceRequest} requestParameters Request parameters.
|
|
12615
|
-
* @param {*} [options] Override http request option.
|
|
12616
|
-
* @throws {RequiredError}
|
|
12617
|
-
* @memberof BookingsApi
|
|
12618
|
-
*/
|
|
12619
|
-
getGuestBookingPrice(requestParameters: BookingsApiGetGuestBookingPriceRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetGuestBookingPrice200Response, any, {}>>;
|
|
12620
12552
|
/**
|
|
12621
12553
|
* Estimer simplement le prix à payer pour rejoindre une réservation ouverte
|
|
12622
12554
|
* @param {BookingsApiGetOpenBookingJoinPriceRequest} requestParameters Request parameters.
|