@tennac-booking/sdk 1.0.230 → 1.0.231
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 +5 -2
- package/api.ts +154 -1
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +107 -1
- package/dist/api.js +69 -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 +107 -1
- package/dist/esm/api.js +69 -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/AcceptBookingInvitationRequest.md +20 -0
- package/docs/AcceptBookingInvitationResponse.md +24 -0
- package/docs/BookingClubInfo.md +2 -0
- package/docs/BookingSummary.md +2 -0
- package/docs/BookingsUserApi.md +56 -0
- package/docs/PaymentByPlayerInfo.md +2 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @tennac-booking/sdk@1.0.
|
|
1
|
+
## @tennac-booking/sdk@1.0.231
|
|
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.231 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -78,6 +78,7 @@ Class | Method | HTTP request | Description
|
|
|
78
78
|
*BookingsUserApi* | [**createBooking**](docs/BookingsUserApi.md#createbooking) | **POST** /api/bookings |
|
|
79
79
|
*BookingsUserApi* | [**createOpenBooking**](docs/BookingsUserApi.md#createopenbooking) | **POST** /api/bookings/open |
|
|
80
80
|
*BookingsUserApi* | [**getOpenBookingPrice**](docs/BookingsUserApi.md#getopenbookingprice) | **POST** /api/bookings/open/booking-price |
|
|
81
|
+
*BookingsUserApi* | [**respondToBookingInvitation**](docs/BookingsUserApi.md#respondtobookinginvitation) | **POST** /api/bookings/{bookingId}/respond-invitation |
|
|
81
82
|
*BookingsUserApi* | [**updateOpenBooking**](docs/BookingsUserApi.md#updateopenbooking) | **PATCH** /api/bookings/{bookingId}/open |
|
|
82
83
|
*ClientApi* | [**clientRegister**](docs/ClientApi.md#clientregister) | **POST** /clients/register |
|
|
83
84
|
*ClientApi* | [**getClientSubscriptions**](docs/ClientApi.md#getclientsubscriptions) | **GET** /clients/subscriptions |
|
|
@@ -303,6 +304,8 @@ Class | Method | HTTP request | Description
|
|
|
303
304
|
|
|
304
305
|
### Documentation For Models
|
|
305
306
|
|
|
307
|
+
- [AcceptBookingInvitationRequest](docs/AcceptBookingInvitationRequest.md)
|
|
308
|
+
- [AcceptBookingInvitationResponse](docs/AcceptBookingInvitationResponse.md)
|
|
306
309
|
- [AddClubMember201Response](docs/AddClubMember201Response.md)
|
|
307
310
|
- [AddClubMemberRequest](docs/AddClubMemberRequest.md)
|
|
308
311
|
- [AddOrganizationRequest](docs/AddOrganizationRequest.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.231
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -23,6 +23,44 @@ import type { RequestArgs } from './base';
|
|
|
23
23
|
// @ts-ignore
|
|
24
24
|
import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError, operationServerMap } from './base';
|
|
25
25
|
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @export
|
|
29
|
+
* @interface AcceptBookingInvitationRequest
|
|
30
|
+
*/
|
|
31
|
+
export interface AcceptBookingInvitationRequest {
|
|
32
|
+
/**
|
|
33
|
+
* Si le joueur accepte (true) ou refuse (false)
|
|
34
|
+
* @type {boolean}
|
|
35
|
+
* @memberof AcceptBookingInvitationRequest
|
|
36
|
+
*/
|
|
37
|
+
'accept': boolean;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @export
|
|
42
|
+
* @interface AcceptBookingInvitationResponse
|
|
43
|
+
*/
|
|
44
|
+
export interface AcceptBookingInvitationResponse {
|
|
45
|
+
/**
|
|
46
|
+
* Message de confirmation
|
|
47
|
+
* @type {string}
|
|
48
|
+
* @memberof AcceptBookingInvitationResponse
|
|
49
|
+
*/
|
|
50
|
+
'message': string;
|
|
51
|
+
/**
|
|
52
|
+
* Statut du booking après acceptation/refus
|
|
53
|
+
* @type {string}
|
|
54
|
+
* @memberof AcceptBookingInvitationResponse
|
|
55
|
+
*/
|
|
56
|
+
'bookingStatus': string;
|
|
57
|
+
/**
|
|
58
|
+
* Si tous les joueurs ont accepté
|
|
59
|
+
* @type {boolean}
|
|
60
|
+
* @memberof AcceptBookingInvitationResponse
|
|
61
|
+
*/
|
|
62
|
+
'allPlayersAccepted'?: boolean;
|
|
63
|
+
}
|
|
26
64
|
/**
|
|
27
65
|
*
|
|
28
66
|
* @export
|
|
@@ -333,6 +371,12 @@ export interface BookingClubInfo {
|
|
|
333
371
|
* @memberof BookingClubInfo
|
|
334
372
|
*/
|
|
335
373
|
'picture'?: string | null;
|
|
374
|
+
/**
|
|
375
|
+
*
|
|
376
|
+
* @type {string}
|
|
377
|
+
* @memberof BookingClubInfo
|
|
378
|
+
*/
|
|
379
|
+
'bannerPicture'?: string | null;
|
|
336
380
|
/**
|
|
337
381
|
*
|
|
338
382
|
* @type {string}
|
|
@@ -1261,6 +1305,12 @@ export interface BookingSummary {
|
|
|
1261
1305
|
* @memberof BookingSummary
|
|
1262
1306
|
*/
|
|
1263
1307
|
'clubPicture'?: string;
|
|
1308
|
+
/**
|
|
1309
|
+
*
|
|
1310
|
+
* @type {string}
|
|
1311
|
+
* @memberof BookingSummary
|
|
1312
|
+
*/
|
|
1313
|
+
'clubBanner'?: string | null;
|
|
1264
1314
|
/**
|
|
1265
1315
|
*
|
|
1266
1316
|
* @type {string}
|
|
@@ -9858,6 +9908,12 @@ export interface PaymentByPlayerInfo {
|
|
|
9858
9908
|
* @memberof PaymentByPlayerInfo
|
|
9859
9909
|
*/
|
|
9860
9910
|
'invoices': Array<InvoiceInfo>;
|
|
9911
|
+
/**
|
|
9912
|
+
* Si le joueur a accepté l\'invitation
|
|
9913
|
+
* @type {boolean}
|
|
9914
|
+
* @memberof PaymentByPlayerInfo
|
|
9915
|
+
*/
|
|
9916
|
+
'accepted': boolean;
|
|
9861
9917
|
}
|
|
9862
9918
|
/**
|
|
9863
9919
|
*
|
|
@@ -17989,6 +18045,49 @@ export const BookingsUserApiAxiosParamCreator = function (configuration?: Config
|
|
|
17989
18045
|
options: localVarRequestOptions,
|
|
17990
18046
|
};
|
|
17991
18047
|
},
|
|
18048
|
+
/**
|
|
18049
|
+
* Accepter ou refuser une invitation à une réservation
|
|
18050
|
+
* @param {string} bookingId
|
|
18051
|
+
* @param {AcceptBookingInvitationRequest} acceptBookingInvitationRequest
|
|
18052
|
+
* @param {*} [options] Override http request option.
|
|
18053
|
+
* @throws {RequiredError}
|
|
18054
|
+
*/
|
|
18055
|
+
respondToBookingInvitation: async (bookingId: string, acceptBookingInvitationRequest: AcceptBookingInvitationRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
18056
|
+
// verify required parameter 'bookingId' is not null or undefined
|
|
18057
|
+
assertParamExists('respondToBookingInvitation', 'bookingId', bookingId)
|
|
18058
|
+
// verify required parameter 'acceptBookingInvitationRequest' is not null or undefined
|
|
18059
|
+
assertParamExists('respondToBookingInvitation', 'acceptBookingInvitationRequest', acceptBookingInvitationRequest)
|
|
18060
|
+
const localVarPath = `/api/bookings/{bookingId}/respond-invitation`
|
|
18061
|
+
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
18062
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
18063
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
18064
|
+
let baseOptions;
|
|
18065
|
+
if (configuration) {
|
|
18066
|
+
baseOptions = configuration.baseOptions;
|
|
18067
|
+
}
|
|
18068
|
+
|
|
18069
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
18070
|
+
const localVarHeaderParameter = {} as any;
|
|
18071
|
+
const localVarQueryParameter = {} as any;
|
|
18072
|
+
|
|
18073
|
+
// authentication bearerAuth required
|
|
18074
|
+
// http bearer authentication required
|
|
18075
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
18076
|
+
|
|
18077
|
+
|
|
18078
|
+
|
|
18079
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
18080
|
+
|
|
18081
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
18082
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
18083
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
18084
|
+
localVarRequestOptions.data = serializeDataIfNeeded(acceptBookingInvitationRequest, localVarRequestOptions, configuration)
|
|
18085
|
+
|
|
18086
|
+
return {
|
|
18087
|
+
url: toPathString(localVarUrlObj),
|
|
18088
|
+
options: localVarRequestOptions,
|
|
18089
|
+
};
|
|
18090
|
+
},
|
|
17992
18091
|
/**
|
|
17993
18092
|
* Mettre à jour une réservation ouverte (description et niveau minimal)
|
|
17994
18093
|
* @param {string} bookingId
|
|
@@ -18102,6 +18201,19 @@ export const BookingsUserApiFp = function(configuration?: Configuration) {
|
|
|
18102
18201
|
const localVarOperationServerBasePath = operationServerMap['BookingsUserApi.getOpenBookingPrice']?.[localVarOperationServerIndex]?.url;
|
|
18103
18202
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
18104
18203
|
},
|
|
18204
|
+
/**
|
|
18205
|
+
* Accepter ou refuser une invitation à une réservation
|
|
18206
|
+
* @param {string} bookingId
|
|
18207
|
+
* @param {AcceptBookingInvitationRequest} acceptBookingInvitationRequest
|
|
18208
|
+
* @param {*} [options] Override http request option.
|
|
18209
|
+
* @throws {RequiredError}
|
|
18210
|
+
*/
|
|
18211
|
+
async respondToBookingInvitation(bookingId: string, acceptBookingInvitationRequest: AcceptBookingInvitationRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AcceptBookingInvitationResponse>> {
|
|
18212
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.respondToBookingInvitation(bookingId, acceptBookingInvitationRequest, options);
|
|
18213
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
18214
|
+
const localVarOperationServerBasePath = operationServerMap['BookingsUserApi.respondToBookingInvitation']?.[localVarOperationServerIndex]?.url;
|
|
18215
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
18216
|
+
},
|
|
18105
18217
|
/**
|
|
18106
18218
|
* Mettre à jour une réservation ouverte (description et niveau minimal)
|
|
18107
18219
|
* @param {string} bookingId
|
|
@@ -18170,6 +18282,15 @@ export const BookingsUserApiFactory = function (configuration?: Configuration, b
|
|
|
18170
18282
|
getOpenBookingPrice(requestParameters: BookingsUserApiGetOpenBookingPriceRequest, options?: RawAxiosRequestConfig): AxiosPromise<BookingPriceResponse> {
|
|
18171
18283
|
return localVarFp.getOpenBookingPrice(requestParameters.openBookingPriceBody, options).then((request) => request(axios, basePath));
|
|
18172
18284
|
},
|
|
18285
|
+
/**
|
|
18286
|
+
* Accepter ou refuser une invitation à une réservation
|
|
18287
|
+
* @param {BookingsUserApiRespondToBookingInvitationRequest} requestParameters Request parameters.
|
|
18288
|
+
* @param {*} [options] Override http request option.
|
|
18289
|
+
* @throws {RequiredError}
|
|
18290
|
+
*/
|
|
18291
|
+
respondToBookingInvitation(requestParameters: BookingsUserApiRespondToBookingInvitationRequest, options?: RawAxiosRequestConfig): AxiosPromise<AcceptBookingInvitationResponse> {
|
|
18292
|
+
return localVarFp.respondToBookingInvitation(requestParameters.bookingId, requestParameters.acceptBookingInvitationRequest, options).then((request) => request(axios, basePath));
|
|
18293
|
+
},
|
|
18173
18294
|
/**
|
|
18174
18295
|
* Mettre à jour une réservation ouverte (description et niveau minimal)
|
|
18175
18296
|
* @param {BookingsUserApiUpdateOpenBookingRequest} requestParameters Request parameters.
|
|
@@ -18252,6 +18373,27 @@ export interface BookingsUserApiGetOpenBookingPriceRequest {
|
|
|
18252
18373
|
readonly openBookingPriceBody: OpenBookingPriceBody
|
|
18253
18374
|
}
|
|
18254
18375
|
|
|
18376
|
+
/**
|
|
18377
|
+
* Request parameters for respondToBookingInvitation operation in BookingsUserApi.
|
|
18378
|
+
* @export
|
|
18379
|
+
* @interface BookingsUserApiRespondToBookingInvitationRequest
|
|
18380
|
+
*/
|
|
18381
|
+
export interface BookingsUserApiRespondToBookingInvitationRequest {
|
|
18382
|
+
/**
|
|
18383
|
+
*
|
|
18384
|
+
* @type {string}
|
|
18385
|
+
* @memberof BookingsUserApiRespondToBookingInvitation
|
|
18386
|
+
*/
|
|
18387
|
+
readonly bookingId: string
|
|
18388
|
+
|
|
18389
|
+
/**
|
|
18390
|
+
*
|
|
18391
|
+
* @type {AcceptBookingInvitationRequest}
|
|
18392
|
+
* @memberof BookingsUserApiRespondToBookingInvitation
|
|
18393
|
+
*/
|
|
18394
|
+
readonly acceptBookingInvitationRequest: AcceptBookingInvitationRequest
|
|
18395
|
+
}
|
|
18396
|
+
|
|
18255
18397
|
/**
|
|
18256
18398
|
* Request parameters for updateOpenBooking operation in BookingsUserApi.
|
|
18257
18399
|
* @export
|
|
@@ -18335,6 +18477,17 @@ export class BookingsUserApi extends BaseAPI {
|
|
|
18335
18477
|
return BookingsUserApiFp(this.configuration).getOpenBookingPrice(requestParameters.openBookingPriceBody, options).then((request) => request(this.axios, this.basePath));
|
|
18336
18478
|
}
|
|
18337
18479
|
|
|
18480
|
+
/**
|
|
18481
|
+
* Accepter ou refuser une invitation à une réservation
|
|
18482
|
+
* @param {BookingsUserApiRespondToBookingInvitationRequest} requestParameters Request parameters.
|
|
18483
|
+
* @param {*} [options] Override http request option.
|
|
18484
|
+
* @throws {RequiredError}
|
|
18485
|
+
* @memberof BookingsUserApi
|
|
18486
|
+
*/
|
|
18487
|
+
public respondToBookingInvitation(requestParameters: BookingsUserApiRespondToBookingInvitationRequest, options?: RawAxiosRequestConfig) {
|
|
18488
|
+
return BookingsUserApiFp(this.configuration).respondToBookingInvitation(requestParameters.bookingId, requestParameters.acceptBookingInvitationRequest, options).then((request) => request(this.axios, this.basePath));
|
|
18489
|
+
}
|
|
18490
|
+
|
|
18338
18491
|
/**
|
|
18339
18492
|
* Mettre à jour une réservation ouverte (description et niveau minimal)
|
|
18340
18493
|
* @param {BookingsUserApiUpdateOpenBookingRequest} requestParameters Request parameters.
|
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.231
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -13,6 +13,44 @@ import type { Configuration } from './configuration';
|
|
|
13
13
|
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
14
|
import type { RequestArgs } from './base';
|
|
15
15
|
import { BaseAPI } from './base';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface AcceptBookingInvitationRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface AcceptBookingInvitationRequest {
|
|
22
|
+
/**
|
|
23
|
+
* Si le joueur accepte (true) ou refuse (false)
|
|
24
|
+
* @type {boolean}
|
|
25
|
+
* @memberof AcceptBookingInvitationRequest
|
|
26
|
+
*/
|
|
27
|
+
'accept': boolean;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @export
|
|
32
|
+
* @interface AcceptBookingInvitationResponse
|
|
33
|
+
*/
|
|
34
|
+
export interface AcceptBookingInvitationResponse {
|
|
35
|
+
/**
|
|
36
|
+
* Message de confirmation
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof AcceptBookingInvitationResponse
|
|
39
|
+
*/
|
|
40
|
+
'message': string;
|
|
41
|
+
/**
|
|
42
|
+
* Statut du booking après acceptation/refus
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof AcceptBookingInvitationResponse
|
|
45
|
+
*/
|
|
46
|
+
'bookingStatus': string;
|
|
47
|
+
/**
|
|
48
|
+
* Si tous les joueurs ont accepté
|
|
49
|
+
* @type {boolean}
|
|
50
|
+
* @memberof AcceptBookingInvitationResponse
|
|
51
|
+
*/
|
|
52
|
+
'allPlayersAccepted'?: boolean;
|
|
53
|
+
}
|
|
16
54
|
/**
|
|
17
55
|
*
|
|
18
56
|
* @export
|
|
@@ -321,6 +359,12 @@ export interface BookingClubInfo {
|
|
|
321
359
|
* @memberof BookingClubInfo
|
|
322
360
|
*/
|
|
323
361
|
'picture'?: string | null;
|
|
362
|
+
/**
|
|
363
|
+
*
|
|
364
|
+
* @type {string}
|
|
365
|
+
* @memberof BookingClubInfo
|
|
366
|
+
*/
|
|
367
|
+
'bannerPicture'?: string | null;
|
|
324
368
|
/**
|
|
325
369
|
*
|
|
326
370
|
* @type {string}
|
|
@@ -1232,6 +1276,12 @@ export interface BookingSummary {
|
|
|
1232
1276
|
* @memberof BookingSummary
|
|
1233
1277
|
*/
|
|
1234
1278
|
'clubPicture'?: string;
|
|
1279
|
+
/**
|
|
1280
|
+
*
|
|
1281
|
+
* @type {string}
|
|
1282
|
+
* @memberof BookingSummary
|
|
1283
|
+
*/
|
|
1284
|
+
'clubBanner'?: string | null;
|
|
1235
1285
|
/**
|
|
1236
1286
|
*
|
|
1237
1287
|
* @type {string}
|
|
@@ -9710,6 +9760,12 @@ export interface PaymentByPlayerInfo {
|
|
|
9710
9760
|
* @memberof PaymentByPlayerInfo
|
|
9711
9761
|
*/
|
|
9712
9762
|
'invoices': Array<InvoiceInfo>;
|
|
9763
|
+
/**
|
|
9764
|
+
* Si le joueur a accepté l\'invitation
|
|
9765
|
+
* @type {boolean}
|
|
9766
|
+
* @memberof PaymentByPlayerInfo
|
|
9767
|
+
*/
|
|
9768
|
+
'accepted': boolean;
|
|
9713
9769
|
}
|
|
9714
9770
|
/**
|
|
9715
9771
|
*
|
|
@@ -16525,6 +16581,14 @@ export declare const BookingsUserApiAxiosParamCreator: (configuration?: Configur
|
|
|
16525
16581
|
* @throws {RequiredError}
|
|
16526
16582
|
*/
|
|
16527
16583
|
getOpenBookingPrice: (openBookingPriceBody: OpenBookingPriceBody, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
16584
|
+
/**
|
|
16585
|
+
* Accepter ou refuser une invitation à une réservation
|
|
16586
|
+
* @param {string} bookingId
|
|
16587
|
+
* @param {AcceptBookingInvitationRequest} acceptBookingInvitationRequest
|
|
16588
|
+
* @param {*} [options] Override http request option.
|
|
16589
|
+
* @throws {RequiredError}
|
|
16590
|
+
*/
|
|
16591
|
+
respondToBookingInvitation: (bookingId: string, acceptBookingInvitationRequest: AcceptBookingInvitationRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
16528
16592
|
/**
|
|
16529
16593
|
* Mettre à jour une réservation ouverte (description et niveau minimal)
|
|
16530
16594
|
* @param {string} bookingId
|
|
@@ -16574,6 +16638,14 @@ export declare const BookingsUserApiFp: (configuration?: Configuration) => {
|
|
|
16574
16638
|
* @throws {RequiredError}
|
|
16575
16639
|
*/
|
|
16576
16640
|
getOpenBookingPrice(openBookingPriceBody: OpenBookingPriceBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BookingPriceResponse>>;
|
|
16641
|
+
/**
|
|
16642
|
+
* Accepter ou refuser une invitation à une réservation
|
|
16643
|
+
* @param {string} bookingId
|
|
16644
|
+
* @param {AcceptBookingInvitationRequest} acceptBookingInvitationRequest
|
|
16645
|
+
* @param {*} [options] Override http request option.
|
|
16646
|
+
* @throws {RequiredError}
|
|
16647
|
+
*/
|
|
16648
|
+
respondToBookingInvitation(bookingId: string, acceptBookingInvitationRequest: AcceptBookingInvitationRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AcceptBookingInvitationResponse>>;
|
|
16577
16649
|
/**
|
|
16578
16650
|
* Mettre à jour une réservation ouverte (description et niveau minimal)
|
|
16579
16651
|
* @param {string} bookingId
|
|
@@ -16623,6 +16695,13 @@ export declare const BookingsUserApiFactory: (configuration?: Configuration, bas
|
|
|
16623
16695
|
* @throws {RequiredError}
|
|
16624
16696
|
*/
|
|
16625
16697
|
getOpenBookingPrice(requestParameters: BookingsUserApiGetOpenBookingPriceRequest, options?: RawAxiosRequestConfig): AxiosPromise<BookingPriceResponse>;
|
|
16698
|
+
/**
|
|
16699
|
+
* Accepter ou refuser une invitation à une réservation
|
|
16700
|
+
* @param {BookingsUserApiRespondToBookingInvitationRequest} requestParameters Request parameters.
|
|
16701
|
+
* @param {*} [options] Override http request option.
|
|
16702
|
+
* @throws {RequiredError}
|
|
16703
|
+
*/
|
|
16704
|
+
respondToBookingInvitation(requestParameters: BookingsUserApiRespondToBookingInvitationRequest, options?: RawAxiosRequestConfig): AxiosPromise<AcceptBookingInvitationResponse>;
|
|
16626
16705
|
/**
|
|
16627
16706
|
* Mettre à jour une réservation ouverte (description et niveau minimal)
|
|
16628
16707
|
* @param {BookingsUserApiUpdateOpenBookingRequest} requestParameters Request parameters.
|
|
@@ -16696,6 +16775,25 @@ export interface BookingsUserApiGetOpenBookingPriceRequest {
|
|
|
16696
16775
|
*/
|
|
16697
16776
|
readonly openBookingPriceBody: OpenBookingPriceBody;
|
|
16698
16777
|
}
|
|
16778
|
+
/**
|
|
16779
|
+
* Request parameters for respondToBookingInvitation operation in BookingsUserApi.
|
|
16780
|
+
* @export
|
|
16781
|
+
* @interface BookingsUserApiRespondToBookingInvitationRequest
|
|
16782
|
+
*/
|
|
16783
|
+
export interface BookingsUserApiRespondToBookingInvitationRequest {
|
|
16784
|
+
/**
|
|
16785
|
+
*
|
|
16786
|
+
* @type {string}
|
|
16787
|
+
* @memberof BookingsUserApiRespondToBookingInvitation
|
|
16788
|
+
*/
|
|
16789
|
+
readonly bookingId: string;
|
|
16790
|
+
/**
|
|
16791
|
+
*
|
|
16792
|
+
* @type {AcceptBookingInvitationRequest}
|
|
16793
|
+
* @memberof BookingsUserApiRespondToBookingInvitation
|
|
16794
|
+
*/
|
|
16795
|
+
readonly acceptBookingInvitationRequest: AcceptBookingInvitationRequest;
|
|
16796
|
+
}
|
|
16699
16797
|
/**
|
|
16700
16798
|
* Request parameters for updateOpenBooking operation in BookingsUserApi.
|
|
16701
16799
|
* @export
|
|
@@ -16762,6 +16860,14 @@ export declare class BookingsUserApi extends BaseAPI {
|
|
|
16762
16860
|
* @memberof BookingsUserApi
|
|
16763
16861
|
*/
|
|
16764
16862
|
getOpenBookingPrice(requestParameters: BookingsUserApiGetOpenBookingPriceRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<BookingPriceResponse, any, {}>>;
|
|
16863
|
+
/**
|
|
16864
|
+
* Accepter ou refuser une invitation à une réservation
|
|
16865
|
+
* @param {BookingsUserApiRespondToBookingInvitationRequest} requestParameters Request parameters.
|
|
16866
|
+
* @param {*} [options] Override http request option.
|
|
16867
|
+
* @throws {RequiredError}
|
|
16868
|
+
* @memberof BookingsUserApi
|
|
16869
|
+
*/
|
|
16870
|
+
respondToBookingInvitation(requestParameters: BookingsUserApiRespondToBookingInvitationRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AcceptBookingInvitationResponse, any, {}>>;
|
|
16765
16871
|
/**
|
|
16766
16872
|
* Mettre à jour une réservation ouverte (description et niveau minimal)
|
|
16767
16873
|
* @param {BookingsUserApiUpdateOpenBookingRequest} requestParameters Request parameters.
|
package/dist/api.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* openapi.json
|
|
6
6
|
* Pandook API Documentation
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.
|
|
8
|
+
* The version of the OpenAPI document: 1.0.231
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2267,6 +2267,42 @@ const BookingsUserApiAxiosParamCreator = function (configuration) {
|
|
|
2267
2267
|
options: localVarRequestOptions,
|
|
2268
2268
|
};
|
|
2269
2269
|
},
|
|
2270
|
+
/**
|
|
2271
|
+
* Accepter ou refuser une invitation à une réservation
|
|
2272
|
+
* @param {string} bookingId
|
|
2273
|
+
* @param {AcceptBookingInvitationRequest} acceptBookingInvitationRequest
|
|
2274
|
+
* @param {*} [options] Override http request option.
|
|
2275
|
+
* @throws {RequiredError}
|
|
2276
|
+
*/
|
|
2277
|
+
respondToBookingInvitation: async (bookingId, acceptBookingInvitationRequest, options = {}) => {
|
|
2278
|
+
// verify required parameter 'bookingId' is not null or undefined
|
|
2279
|
+
(0, common_1.assertParamExists)('respondToBookingInvitation', 'bookingId', bookingId);
|
|
2280
|
+
// verify required parameter 'acceptBookingInvitationRequest' is not null or undefined
|
|
2281
|
+
(0, common_1.assertParamExists)('respondToBookingInvitation', 'acceptBookingInvitationRequest', acceptBookingInvitationRequest);
|
|
2282
|
+
const localVarPath = `/api/bookings/{bookingId}/respond-invitation`
|
|
2283
|
+
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
2284
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2285
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2286
|
+
let baseOptions;
|
|
2287
|
+
if (configuration) {
|
|
2288
|
+
baseOptions = configuration.baseOptions;
|
|
2289
|
+
}
|
|
2290
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
2291
|
+
const localVarHeaderParameter = {};
|
|
2292
|
+
const localVarQueryParameter = {};
|
|
2293
|
+
// authentication bearerAuth required
|
|
2294
|
+
// http bearer authentication required
|
|
2295
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2296
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2297
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2298
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2299
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
2300
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(acceptBookingInvitationRequest, localVarRequestOptions, configuration);
|
|
2301
|
+
return {
|
|
2302
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2303
|
+
options: localVarRequestOptions,
|
|
2304
|
+
};
|
|
2305
|
+
},
|
|
2270
2306
|
/**
|
|
2271
2307
|
* Mettre à jour une réservation ouverte (description et niveau minimal)
|
|
2272
2308
|
* @param {string} bookingId
|
|
@@ -2373,6 +2409,19 @@ const BookingsUserApiFp = function (configuration) {
|
|
|
2373
2409
|
const localVarOperationServerBasePath = base_1.operationServerMap['BookingsUserApi.getOpenBookingPrice']?.[localVarOperationServerIndex]?.url;
|
|
2374
2410
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2375
2411
|
},
|
|
2412
|
+
/**
|
|
2413
|
+
* Accepter ou refuser une invitation à une réservation
|
|
2414
|
+
* @param {string} bookingId
|
|
2415
|
+
* @param {AcceptBookingInvitationRequest} acceptBookingInvitationRequest
|
|
2416
|
+
* @param {*} [options] Override http request option.
|
|
2417
|
+
* @throws {RequiredError}
|
|
2418
|
+
*/
|
|
2419
|
+
async respondToBookingInvitation(bookingId, acceptBookingInvitationRequest, options) {
|
|
2420
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.respondToBookingInvitation(bookingId, acceptBookingInvitationRequest, options);
|
|
2421
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2422
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['BookingsUserApi.respondToBookingInvitation']?.[localVarOperationServerIndex]?.url;
|
|
2423
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2424
|
+
},
|
|
2376
2425
|
/**
|
|
2377
2426
|
* Mettre à jour une réservation ouverte (description et niveau minimal)
|
|
2378
2427
|
* @param {string} bookingId
|
|
@@ -2441,6 +2490,15 @@ const BookingsUserApiFactory = function (configuration, basePath, axios) {
|
|
|
2441
2490
|
getOpenBookingPrice(requestParameters, options) {
|
|
2442
2491
|
return localVarFp.getOpenBookingPrice(requestParameters.openBookingPriceBody, options).then((request) => request(axios, basePath));
|
|
2443
2492
|
},
|
|
2493
|
+
/**
|
|
2494
|
+
* Accepter ou refuser une invitation à une réservation
|
|
2495
|
+
* @param {BookingsUserApiRespondToBookingInvitationRequest} requestParameters Request parameters.
|
|
2496
|
+
* @param {*} [options] Override http request option.
|
|
2497
|
+
* @throws {RequiredError}
|
|
2498
|
+
*/
|
|
2499
|
+
respondToBookingInvitation(requestParameters, options) {
|
|
2500
|
+
return localVarFp.respondToBookingInvitation(requestParameters.bookingId, requestParameters.acceptBookingInvitationRequest, options).then((request) => request(axios, basePath));
|
|
2501
|
+
},
|
|
2444
2502
|
/**
|
|
2445
2503
|
* Mettre à jour une réservation ouverte (description et niveau minimal)
|
|
2446
2504
|
* @param {BookingsUserApiUpdateOpenBookingRequest} requestParameters Request parameters.
|
|
@@ -2510,6 +2568,16 @@ class BookingsUserApi extends base_1.BaseAPI {
|
|
|
2510
2568
|
getOpenBookingPrice(requestParameters, options) {
|
|
2511
2569
|
return (0, exports.BookingsUserApiFp)(this.configuration).getOpenBookingPrice(requestParameters.openBookingPriceBody, options).then((request) => request(this.axios, this.basePath));
|
|
2512
2570
|
}
|
|
2571
|
+
/**
|
|
2572
|
+
* Accepter ou refuser une invitation à une réservation
|
|
2573
|
+
* @param {BookingsUserApiRespondToBookingInvitationRequest} requestParameters Request parameters.
|
|
2574
|
+
* @param {*} [options] Override http request option.
|
|
2575
|
+
* @throws {RequiredError}
|
|
2576
|
+
* @memberof BookingsUserApi
|
|
2577
|
+
*/
|
|
2578
|
+
respondToBookingInvitation(requestParameters, options) {
|
|
2579
|
+
return (0, exports.BookingsUserApiFp)(this.configuration).respondToBookingInvitation(requestParameters.bookingId, requestParameters.acceptBookingInvitationRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2580
|
+
}
|
|
2513
2581
|
/**
|
|
2514
2582
|
* Mettre à jour une réservation ouverte (description et niveau minimal)
|
|
2515
2583
|
* @param {BookingsUserApiUpdateOpenBookingRequest} requestParameters Request parameters.
|
package/dist/base.d.ts
CHANGED
package/dist/base.js
CHANGED
package/dist/common.d.ts
CHANGED
package/dist/common.js
CHANGED
package/dist/configuration.d.ts
CHANGED
package/dist/configuration.js
CHANGED
package/dist/esm/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.231
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -13,6 +13,44 @@ import type { Configuration } from './configuration';
|
|
|
13
13
|
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
14
|
import type { RequestArgs } from './base';
|
|
15
15
|
import { BaseAPI } from './base';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface AcceptBookingInvitationRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface AcceptBookingInvitationRequest {
|
|
22
|
+
/**
|
|
23
|
+
* Si le joueur accepte (true) ou refuse (false)
|
|
24
|
+
* @type {boolean}
|
|
25
|
+
* @memberof AcceptBookingInvitationRequest
|
|
26
|
+
*/
|
|
27
|
+
'accept': boolean;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @export
|
|
32
|
+
* @interface AcceptBookingInvitationResponse
|
|
33
|
+
*/
|
|
34
|
+
export interface AcceptBookingInvitationResponse {
|
|
35
|
+
/**
|
|
36
|
+
* Message de confirmation
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof AcceptBookingInvitationResponse
|
|
39
|
+
*/
|
|
40
|
+
'message': string;
|
|
41
|
+
/**
|
|
42
|
+
* Statut du booking après acceptation/refus
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof AcceptBookingInvitationResponse
|
|
45
|
+
*/
|
|
46
|
+
'bookingStatus': string;
|
|
47
|
+
/**
|
|
48
|
+
* Si tous les joueurs ont accepté
|
|
49
|
+
* @type {boolean}
|
|
50
|
+
* @memberof AcceptBookingInvitationResponse
|
|
51
|
+
*/
|
|
52
|
+
'allPlayersAccepted'?: boolean;
|
|
53
|
+
}
|
|
16
54
|
/**
|
|
17
55
|
*
|
|
18
56
|
* @export
|
|
@@ -321,6 +359,12 @@ export interface BookingClubInfo {
|
|
|
321
359
|
* @memberof BookingClubInfo
|
|
322
360
|
*/
|
|
323
361
|
'picture'?: string | null;
|
|
362
|
+
/**
|
|
363
|
+
*
|
|
364
|
+
* @type {string}
|
|
365
|
+
* @memberof BookingClubInfo
|
|
366
|
+
*/
|
|
367
|
+
'bannerPicture'?: string | null;
|
|
324
368
|
/**
|
|
325
369
|
*
|
|
326
370
|
* @type {string}
|
|
@@ -1232,6 +1276,12 @@ export interface BookingSummary {
|
|
|
1232
1276
|
* @memberof BookingSummary
|
|
1233
1277
|
*/
|
|
1234
1278
|
'clubPicture'?: string;
|
|
1279
|
+
/**
|
|
1280
|
+
*
|
|
1281
|
+
* @type {string}
|
|
1282
|
+
* @memberof BookingSummary
|
|
1283
|
+
*/
|
|
1284
|
+
'clubBanner'?: string | null;
|
|
1235
1285
|
/**
|
|
1236
1286
|
*
|
|
1237
1287
|
* @type {string}
|
|
@@ -9710,6 +9760,12 @@ export interface PaymentByPlayerInfo {
|
|
|
9710
9760
|
* @memberof PaymentByPlayerInfo
|
|
9711
9761
|
*/
|
|
9712
9762
|
'invoices': Array<InvoiceInfo>;
|
|
9763
|
+
/**
|
|
9764
|
+
* Si le joueur a accepté l\'invitation
|
|
9765
|
+
* @type {boolean}
|
|
9766
|
+
* @memberof PaymentByPlayerInfo
|
|
9767
|
+
*/
|
|
9768
|
+
'accepted': boolean;
|
|
9713
9769
|
}
|
|
9714
9770
|
/**
|
|
9715
9771
|
*
|
|
@@ -16525,6 +16581,14 @@ export declare const BookingsUserApiAxiosParamCreator: (configuration?: Configur
|
|
|
16525
16581
|
* @throws {RequiredError}
|
|
16526
16582
|
*/
|
|
16527
16583
|
getOpenBookingPrice: (openBookingPriceBody: OpenBookingPriceBody, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
16584
|
+
/**
|
|
16585
|
+
* Accepter ou refuser une invitation à une réservation
|
|
16586
|
+
* @param {string} bookingId
|
|
16587
|
+
* @param {AcceptBookingInvitationRequest} acceptBookingInvitationRequest
|
|
16588
|
+
* @param {*} [options] Override http request option.
|
|
16589
|
+
* @throws {RequiredError}
|
|
16590
|
+
*/
|
|
16591
|
+
respondToBookingInvitation: (bookingId: string, acceptBookingInvitationRequest: AcceptBookingInvitationRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
16528
16592
|
/**
|
|
16529
16593
|
* Mettre à jour une réservation ouverte (description et niveau minimal)
|
|
16530
16594
|
* @param {string} bookingId
|
|
@@ -16574,6 +16638,14 @@ export declare const BookingsUserApiFp: (configuration?: Configuration) => {
|
|
|
16574
16638
|
* @throws {RequiredError}
|
|
16575
16639
|
*/
|
|
16576
16640
|
getOpenBookingPrice(openBookingPriceBody: OpenBookingPriceBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BookingPriceResponse>>;
|
|
16641
|
+
/**
|
|
16642
|
+
* Accepter ou refuser une invitation à une réservation
|
|
16643
|
+
* @param {string} bookingId
|
|
16644
|
+
* @param {AcceptBookingInvitationRequest} acceptBookingInvitationRequest
|
|
16645
|
+
* @param {*} [options] Override http request option.
|
|
16646
|
+
* @throws {RequiredError}
|
|
16647
|
+
*/
|
|
16648
|
+
respondToBookingInvitation(bookingId: string, acceptBookingInvitationRequest: AcceptBookingInvitationRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AcceptBookingInvitationResponse>>;
|
|
16577
16649
|
/**
|
|
16578
16650
|
* Mettre à jour une réservation ouverte (description et niveau minimal)
|
|
16579
16651
|
* @param {string} bookingId
|
|
@@ -16623,6 +16695,13 @@ export declare const BookingsUserApiFactory: (configuration?: Configuration, bas
|
|
|
16623
16695
|
* @throws {RequiredError}
|
|
16624
16696
|
*/
|
|
16625
16697
|
getOpenBookingPrice(requestParameters: BookingsUserApiGetOpenBookingPriceRequest, options?: RawAxiosRequestConfig): AxiosPromise<BookingPriceResponse>;
|
|
16698
|
+
/**
|
|
16699
|
+
* Accepter ou refuser une invitation à une réservation
|
|
16700
|
+
* @param {BookingsUserApiRespondToBookingInvitationRequest} requestParameters Request parameters.
|
|
16701
|
+
* @param {*} [options] Override http request option.
|
|
16702
|
+
* @throws {RequiredError}
|
|
16703
|
+
*/
|
|
16704
|
+
respondToBookingInvitation(requestParameters: BookingsUserApiRespondToBookingInvitationRequest, options?: RawAxiosRequestConfig): AxiosPromise<AcceptBookingInvitationResponse>;
|
|
16626
16705
|
/**
|
|
16627
16706
|
* Mettre à jour une réservation ouverte (description et niveau minimal)
|
|
16628
16707
|
* @param {BookingsUserApiUpdateOpenBookingRequest} requestParameters Request parameters.
|
|
@@ -16696,6 +16775,25 @@ export interface BookingsUserApiGetOpenBookingPriceRequest {
|
|
|
16696
16775
|
*/
|
|
16697
16776
|
readonly openBookingPriceBody: OpenBookingPriceBody;
|
|
16698
16777
|
}
|
|
16778
|
+
/**
|
|
16779
|
+
* Request parameters for respondToBookingInvitation operation in BookingsUserApi.
|
|
16780
|
+
* @export
|
|
16781
|
+
* @interface BookingsUserApiRespondToBookingInvitationRequest
|
|
16782
|
+
*/
|
|
16783
|
+
export interface BookingsUserApiRespondToBookingInvitationRequest {
|
|
16784
|
+
/**
|
|
16785
|
+
*
|
|
16786
|
+
* @type {string}
|
|
16787
|
+
* @memberof BookingsUserApiRespondToBookingInvitation
|
|
16788
|
+
*/
|
|
16789
|
+
readonly bookingId: string;
|
|
16790
|
+
/**
|
|
16791
|
+
*
|
|
16792
|
+
* @type {AcceptBookingInvitationRequest}
|
|
16793
|
+
* @memberof BookingsUserApiRespondToBookingInvitation
|
|
16794
|
+
*/
|
|
16795
|
+
readonly acceptBookingInvitationRequest: AcceptBookingInvitationRequest;
|
|
16796
|
+
}
|
|
16699
16797
|
/**
|
|
16700
16798
|
* Request parameters for updateOpenBooking operation in BookingsUserApi.
|
|
16701
16799
|
* @export
|
|
@@ -16762,6 +16860,14 @@ export declare class BookingsUserApi extends BaseAPI {
|
|
|
16762
16860
|
* @memberof BookingsUserApi
|
|
16763
16861
|
*/
|
|
16764
16862
|
getOpenBookingPrice(requestParameters: BookingsUserApiGetOpenBookingPriceRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<BookingPriceResponse, any, {}>>;
|
|
16863
|
+
/**
|
|
16864
|
+
* Accepter ou refuser une invitation à une réservation
|
|
16865
|
+
* @param {BookingsUserApiRespondToBookingInvitationRequest} requestParameters Request parameters.
|
|
16866
|
+
* @param {*} [options] Override http request option.
|
|
16867
|
+
* @throws {RequiredError}
|
|
16868
|
+
* @memberof BookingsUserApi
|
|
16869
|
+
*/
|
|
16870
|
+
respondToBookingInvitation(requestParameters: BookingsUserApiRespondToBookingInvitationRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AcceptBookingInvitationResponse, any, {}>>;
|
|
16765
16871
|
/**
|
|
16766
16872
|
* Mettre à jour une réservation ouverte (description et niveau minimal)
|
|
16767
16873
|
* @param {BookingsUserApiUpdateOpenBookingRequest} requestParameters Request parameters.
|
package/dist/esm/api.js
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.231
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2244,6 +2244,42 @@ export const BookingsUserApiAxiosParamCreator = function (configuration) {
|
|
|
2244
2244
|
options: localVarRequestOptions,
|
|
2245
2245
|
};
|
|
2246
2246
|
},
|
|
2247
|
+
/**
|
|
2248
|
+
* Accepter ou refuser une invitation à une réservation
|
|
2249
|
+
* @param {string} bookingId
|
|
2250
|
+
* @param {AcceptBookingInvitationRequest} acceptBookingInvitationRequest
|
|
2251
|
+
* @param {*} [options] Override http request option.
|
|
2252
|
+
* @throws {RequiredError}
|
|
2253
|
+
*/
|
|
2254
|
+
respondToBookingInvitation: async (bookingId, acceptBookingInvitationRequest, options = {}) => {
|
|
2255
|
+
// verify required parameter 'bookingId' is not null or undefined
|
|
2256
|
+
assertParamExists('respondToBookingInvitation', 'bookingId', bookingId);
|
|
2257
|
+
// verify required parameter 'acceptBookingInvitationRequest' is not null or undefined
|
|
2258
|
+
assertParamExists('respondToBookingInvitation', 'acceptBookingInvitationRequest', acceptBookingInvitationRequest);
|
|
2259
|
+
const localVarPath = `/api/bookings/{bookingId}/respond-invitation`
|
|
2260
|
+
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
2261
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2262
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2263
|
+
let baseOptions;
|
|
2264
|
+
if (configuration) {
|
|
2265
|
+
baseOptions = configuration.baseOptions;
|
|
2266
|
+
}
|
|
2267
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
2268
|
+
const localVarHeaderParameter = {};
|
|
2269
|
+
const localVarQueryParameter = {};
|
|
2270
|
+
// authentication bearerAuth required
|
|
2271
|
+
// http bearer authentication required
|
|
2272
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2273
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2274
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2275
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2276
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
2277
|
+
localVarRequestOptions.data = serializeDataIfNeeded(acceptBookingInvitationRequest, localVarRequestOptions, configuration);
|
|
2278
|
+
return {
|
|
2279
|
+
url: toPathString(localVarUrlObj),
|
|
2280
|
+
options: localVarRequestOptions,
|
|
2281
|
+
};
|
|
2282
|
+
},
|
|
2247
2283
|
/**
|
|
2248
2284
|
* Mettre à jour une réservation ouverte (description et niveau minimal)
|
|
2249
2285
|
* @param {string} bookingId
|
|
@@ -2349,6 +2385,19 @@ export const BookingsUserApiFp = function (configuration) {
|
|
|
2349
2385
|
const localVarOperationServerBasePath = operationServerMap['BookingsUserApi.getOpenBookingPrice']?.[localVarOperationServerIndex]?.url;
|
|
2350
2386
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2351
2387
|
},
|
|
2388
|
+
/**
|
|
2389
|
+
* Accepter ou refuser une invitation à une réservation
|
|
2390
|
+
* @param {string} bookingId
|
|
2391
|
+
* @param {AcceptBookingInvitationRequest} acceptBookingInvitationRequest
|
|
2392
|
+
* @param {*} [options] Override http request option.
|
|
2393
|
+
* @throws {RequiredError}
|
|
2394
|
+
*/
|
|
2395
|
+
async respondToBookingInvitation(bookingId, acceptBookingInvitationRequest, options) {
|
|
2396
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.respondToBookingInvitation(bookingId, acceptBookingInvitationRequest, options);
|
|
2397
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2398
|
+
const localVarOperationServerBasePath = operationServerMap['BookingsUserApi.respondToBookingInvitation']?.[localVarOperationServerIndex]?.url;
|
|
2399
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2400
|
+
},
|
|
2352
2401
|
/**
|
|
2353
2402
|
* Mettre à jour une réservation ouverte (description et niveau minimal)
|
|
2354
2403
|
* @param {string} bookingId
|
|
@@ -2416,6 +2465,15 @@ export const BookingsUserApiFactory = function (configuration, basePath, axios)
|
|
|
2416
2465
|
getOpenBookingPrice(requestParameters, options) {
|
|
2417
2466
|
return localVarFp.getOpenBookingPrice(requestParameters.openBookingPriceBody, options).then((request) => request(axios, basePath));
|
|
2418
2467
|
},
|
|
2468
|
+
/**
|
|
2469
|
+
* Accepter ou refuser une invitation à une réservation
|
|
2470
|
+
* @param {BookingsUserApiRespondToBookingInvitationRequest} requestParameters Request parameters.
|
|
2471
|
+
* @param {*} [options] Override http request option.
|
|
2472
|
+
* @throws {RequiredError}
|
|
2473
|
+
*/
|
|
2474
|
+
respondToBookingInvitation(requestParameters, options) {
|
|
2475
|
+
return localVarFp.respondToBookingInvitation(requestParameters.bookingId, requestParameters.acceptBookingInvitationRequest, options).then((request) => request(axios, basePath));
|
|
2476
|
+
},
|
|
2419
2477
|
/**
|
|
2420
2478
|
* Mettre à jour une réservation ouverte (description et niveau minimal)
|
|
2421
2479
|
* @param {BookingsUserApiUpdateOpenBookingRequest} requestParameters Request parameters.
|
|
@@ -2484,6 +2542,16 @@ export class BookingsUserApi extends BaseAPI {
|
|
|
2484
2542
|
getOpenBookingPrice(requestParameters, options) {
|
|
2485
2543
|
return BookingsUserApiFp(this.configuration).getOpenBookingPrice(requestParameters.openBookingPriceBody, options).then((request) => request(this.axios, this.basePath));
|
|
2486
2544
|
}
|
|
2545
|
+
/**
|
|
2546
|
+
* Accepter ou refuser une invitation à une réservation
|
|
2547
|
+
* @param {BookingsUserApiRespondToBookingInvitationRequest} requestParameters Request parameters.
|
|
2548
|
+
* @param {*} [options] Override http request option.
|
|
2549
|
+
* @throws {RequiredError}
|
|
2550
|
+
* @memberof BookingsUserApi
|
|
2551
|
+
*/
|
|
2552
|
+
respondToBookingInvitation(requestParameters, options) {
|
|
2553
|
+
return BookingsUserApiFp(this.configuration).respondToBookingInvitation(requestParameters.bookingId, requestParameters.acceptBookingInvitationRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2554
|
+
}
|
|
2487
2555
|
/**
|
|
2488
2556
|
* Mettre à jour une réservation ouverte (description et niveau minimal)
|
|
2489
2557
|
* @param {BookingsUserApiUpdateOpenBookingRequest} requestParameters Request parameters.
|
package/dist/esm/base.d.ts
CHANGED
package/dist/esm/base.js
CHANGED
package/dist/esm/common.d.ts
CHANGED
package/dist/esm/common.js
CHANGED
package/dist/esm/index.d.ts
CHANGED
package/dist/esm/index.js
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# AcceptBookingInvitationRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**accept** | **boolean** | Si le joueur accepte (true) ou refuse (false) | [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { AcceptBookingInvitationRequest } from '@tennac-booking/sdk';
|
|
14
|
+
|
|
15
|
+
const instance: AcceptBookingInvitationRequest = {
|
|
16
|
+
accept,
|
|
17
|
+
};
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# AcceptBookingInvitationResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**message** | **string** | Message de confirmation | [default to undefined]
|
|
9
|
+
**bookingStatus** | **string** | Statut du booking après acceptation/refus | [default to undefined]
|
|
10
|
+
**allPlayersAccepted** | **boolean** | Si tous les joueurs ont accepté | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { AcceptBookingInvitationResponse } from '@tennac-booking/sdk';
|
|
16
|
+
|
|
17
|
+
const instance: AcceptBookingInvitationResponse = {
|
|
18
|
+
message,
|
|
19
|
+
bookingStatus,
|
|
20
|
+
allPlayersAccepted,
|
|
21
|
+
};
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
package/docs/BookingClubInfo.md
CHANGED
|
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
|
|
|
8
8
|
**id** | **string** | | [default to undefined]
|
|
9
9
|
**name** | **string** | | [optional] [default to undefined]
|
|
10
10
|
**picture** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**bannerPicture** | **string** | | [optional] [default to undefined]
|
|
11
12
|
**address** | **string** | | [optional] [default to undefined]
|
|
12
13
|
**location** | **{ [key: string]: any; }** | Construct a type with a set of properties K of type T | [optional] [default to undefined]
|
|
13
14
|
|
|
@@ -20,6 +21,7 @@ const instance: BookingClubInfo = {
|
|
|
20
21
|
id,
|
|
21
22
|
name,
|
|
22
23
|
picture,
|
|
24
|
+
bannerPicture,
|
|
23
25
|
address,
|
|
24
26
|
location,
|
|
25
27
|
};
|
package/docs/BookingSummary.md
CHANGED
|
@@ -33,6 +33,7 @@ Name | Type | Description | Notes
|
|
|
33
33
|
**updatedAt** | **string** | | [default to undefined]
|
|
34
34
|
**playersCount** | **number** | | [optional] [default to undefined]
|
|
35
35
|
**clubPicture** | **string** | | [optional] [default to undefined]
|
|
36
|
+
**clubBanner** | **string** | | [optional] [default to undefined]
|
|
36
37
|
**courtName** | **string** | | [optional] [default to undefined]
|
|
37
38
|
**sportName** | **string** | | [optional] [default to undefined]
|
|
38
39
|
**startDate** | **string** | | [optional] [default to undefined]
|
|
@@ -87,6 +88,7 @@ const instance: BookingSummary = {
|
|
|
87
88
|
updatedAt,
|
|
88
89
|
playersCount,
|
|
89
90
|
clubPicture,
|
|
91
|
+
clubBanner,
|
|
90
92
|
courtName,
|
|
91
93
|
sportName,
|
|
92
94
|
startDate,
|
package/docs/BookingsUserApi.md
CHANGED
|
@@ -9,6 +9,7 @@ All URIs are relative to *http://localhost*
|
|
|
9
9
|
|[**createBooking**](#createbooking) | **POST** /api/bookings | |
|
|
10
10
|
|[**createOpenBooking**](#createopenbooking) | **POST** /api/bookings/open | |
|
|
11
11
|
|[**getOpenBookingPrice**](#getopenbookingprice) | **POST** /api/bookings/open/booking-price | |
|
|
12
|
+
|[**respondToBookingInvitation**](#respondtobookinginvitation) | **POST** /api/bookings/{bookingId}/respond-invitation | |
|
|
12
13
|
|[**updateOpenBooking**](#updateopenbooking) | **PATCH** /api/bookings/{bookingId}/open | |
|
|
13
14
|
|
|
14
15
|
# **cancelBooking**
|
|
@@ -269,6 +270,61 @@ const { status, data } = await apiInstance.getOpenBookingPrice(
|
|
|
269
270
|
|
|
270
271
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
271
272
|
|
|
273
|
+
# **respondToBookingInvitation**
|
|
274
|
+
> AcceptBookingInvitationResponse respondToBookingInvitation(acceptBookingInvitationRequest)
|
|
275
|
+
|
|
276
|
+
Accepter ou refuser une invitation à une réservation
|
|
277
|
+
|
|
278
|
+
### Example
|
|
279
|
+
|
|
280
|
+
```typescript
|
|
281
|
+
import {
|
|
282
|
+
BookingsUserApi,
|
|
283
|
+
Configuration,
|
|
284
|
+
AcceptBookingInvitationRequest
|
|
285
|
+
} from '@tennac-booking/sdk';
|
|
286
|
+
|
|
287
|
+
const configuration = new Configuration();
|
|
288
|
+
const apiInstance = new BookingsUserApi(configuration);
|
|
289
|
+
|
|
290
|
+
let bookingId: string; // (default to undefined)
|
|
291
|
+
let acceptBookingInvitationRequest: AcceptBookingInvitationRequest; //
|
|
292
|
+
|
|
293
|
+
const { status, data } = await apiInstance.respondToBookingInvitation(
|
|
294
|
+
bookingId,
|
|
295
|
+
acceptBookingInvitationRequest
|
|
296
|
+
);
|
|
297
|
+
```
|
|
298
|
+
|
|
299
|
+
### Parameters
|
|
300
|
+
|
|
301
|
+
|Name | Type | Description | Notes|
|
|
302
|
+
|------------- | ------------- | ------------- | -------------|
|
|
303
|
+
| **acceptBookingInvitationRequest** | **AcceptBookingInvitationRequest**| | |
|
|
304
|
+
| **bookingId** | [**string**] | | defaults to undefined|
|
|
305
|
+
|
|
306
|
+
|
|
307
|
+
### Return type
|
|
308
|
+
|
|
309
|
+
**AcceptBookingInvitationResponse**
|
|
310
|
+
|
|
311
|
+
### Authorization
|
|
312
|
+
|
|
313
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
314
|
+
|
|
315
|
+
### HTTP request headers
|
|
316
|
+
|
|
317
|
+
- **Content-Type**: application/json
|
|
318
|
+
- **Accept**: application/json
|
|
319
|
+
|
|
320
|
+
|
|
321
|
+
### HTTP response details
|
|
322
|
+
| Status code | Description | Response headers |
|
|
323
|
+
|-------------|-------------|------------------|
|
|
324
|
+
|**200** | Réponse à l\'invitation enregistrée avec succès | - |
|
|
325
|
+
|
|
326
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
327
|
+
|
|
272
328
|
# **updateOpenBooking**
|
|
273
329
|
> UpdateOpenBooking200Response updateOpenBooking(updateOpenBookingRequest)
|
|
274
330
|
|
|
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
|
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
8
|
**user** | [**UserInfo**](UserInfo.md) | | [default to undefined]
|
|
9
9
|
**invoices** | [**Array<InvoiceInfo>**](InvoiceInfo.md) | Liste des factures | [default to undefined]
|
|
10
|
+
**accepted** | **boolean** | Si le joueur a accepté l\'invitation | [default to undefined]
|
|
10
11
|
|
|
11
12
|
## Example
|
|
12
13
|
|
|
@@ -16,6 +17,7 @@ import { PaymentByPlayerInfo } from '@tennac-booking/sdk';
|
|
|
16
17
|
const instance: PaymentByPlayerInfo = {
|
|
17
18
|
user,
|
|
18
19
|
invoices,
|
|
20
|
+
accepted,
|
|
19
21
|
};
|
|
20
22
|
```
|
|
21
23
|
|
package/index.ts
CHANGED