@tennac-booking/sdk 1.0.68 → 1.0.70
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 +9 -2
- package/README.md +15 -5
- package/api.ts +889 -66
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +650 -42
- package/dist/api.js +295 -8
- 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 +650 -42
- package/dist/esm/api.js +292 -5
- 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/BookingDetailResponse.md +1 -1
- package/docs/{BookingHistory.md → BookingHistoryPopulated.md} +4 -4
- package/docs/BookingPopulated.md +27 -7
- package/docs/BookingStatus.md +3 -3
- package/docs/BookingSummary.md +1 -1
- package/docs/BookingsApi.md +81 -2
- package/docs/BookingsStaffApi.md +3 -3
- package/docs/CourtResponse.md +4 -0
- package/docs/CreateBookingRequest.md +2 -0
- package/docs/{BookingSummaryBookingHistory.md → PlayerCategoriesResponse.md} +5 -3
- package/docs/PlayerCategory.md +26 -0
- package/docs/PlayerCategoryId.md +16 -0
- package/docs/PlayerListResponse.md +26 -0
- package/docs/QuickReservationClubSummary.md +28 -0
- package/docs/QuickReservationClubSummaryLocation.md +31 -0
- package/docs/QuickReservationResponse.md +22 -0
- package/docs/QuickReservationSlotSummary.md +42 -0
- package/docs/UserInfo.md +4 -0
- package/docs/UserProfileResponse.md +2 -0
- package/docs/UsersApi.md +122 -0
- package/index.ts +1 -1
- package/package.json +1 -1
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.68
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -26,7 +26,7 @@ import globalAxios from 'axios';
|
|
|
26
26
|
import { DUMMY_BASE_URL, assertParamExists, setBearerAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
|
|
27
27
|
// @ts-ignore
|
|
28
28
|
import { BASE_PATH, BaseAPI, operationServerMap } from './base';
|
|
29
|
-
export const
|
|
29
|
+
export const BookingHistoryPopulatedPerformedByTypeEnum = {
|
|
30
30
|
User: 'user',
|
|
31
31
|
Manager: 'manager',
|
|
32
32
|
System: 'system'
|
|
@@ -37,10 +37,10 @@ export const BookingHistoryPerformedByTypeEnum = {
|
|
|
37
37
|
* @enum {string}
|
|
38
38
|
*/
|
|
39
39
|
export const BookingStatus = {
|
|
40
|
+
Paid: 'paid',
|
|
40
41
|
Active: 'active',
|
|
41
|
-
Past: 'past',
|
|
42
42
|
Pending: 'pending',
|
|
43
|
-
|
|
43
|
+
ActivePaymentsTimeout: 'active_payments_timeout',
|
|
44
44
|
Canceled: 'canceled',
|
|
45
45
|
NoShow: 'no-show'
|
|
46
46
|
};
|
|
@@ -116,6 +116,18 @@ export const PlanInterval = {
|
|
|
116
116
|
Trimester: 'trimester',
|
|
117
117
|
Semester: 'semester'
|
|
118
118
|
};
|
|
119
|
+
/**
|
|
120
|
+
*
|
|
121
|
+
* @export
|
|
122
|
+
* @enum {string}
|
|
123
|
+
*/
|
|
124
|
+
export const PlayerCategoryId = {
|
|
125
|
+
SameLevel: 'same-level',
|
|
126
|
+
MutualConnections: 'mutual-connections',
|
|
127
|
+
ClubMembers: 'club-members',
|
|
128
|
+
MostActive: 'most-active',
|
|
129
|
+
Nearby: 'nearby'
|
|
130
|
+
};
|
|
119
131
|
export const RegisterRequestBodyLocationTypeEnum = {
|
|
120
132
|
Point: 'Point'
|
|
121
133
|
};
|
|
@@ -283,6 +295,70 @@ export const BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
283
295
|
options: localVarRequestOptions,
|
|
284
296
|
};
|
|
285
297
|
}),
|
|
298
|
+
/**
|
|
299
|
+
* Recherche des créneaux disponibles pour une réservation rapide
|
|
300
|
+
* @param {number} [latitude]
|
|
301
|
+
* @param {number} [longitude]
|
|
302
|
+
* @param {number} [radiusInKm]
|
|
303
|
+
* @param {string} [date]
|
|
304
|
+
* @param {string} [sportId]
|
|
305
|
+
* @param {string} [startTime]
|
|
306
|
+
* @param {number} [priceMax]
|
|
307
|
+
* @param {string} [courtTypes]
|
|
308
|
+
* @param {number} [limitPerClub]
|
|
309
|
+
* @param {number} [maxClubs]
|
|
310
|
+
* @param {*} [options] Override http request option.
|
|
311
|
+
* @throws {RequiredError}
|
|
312
|
+
*/
|
|
313
|
+
getQuickReservationSlots: (latitude_1, longitude_1, radiusInKm_1, date_1, sportId_1, startTime_1, priceMax_1, courtTypes_1, limitPerClub_1, maxClubs_1, ...args_1) => __awaiter(this, [latitude_1, longitude_1, radiusInKm_1, date_1, sportId_1, startTime_1, priceMax_1, courtTypes_1, limitPerClub_1, maxClubs_1, ...args_1], void 0, function* (latitude, longitude, radiusInKm, date, sportId, startTime, priceMax, courtTypes, limitPerClub, maxClubs, options = {}) {
|
|
314
|
+
const localVarPath = `/api/bookings/quick-reservations`;
|
|
315
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
316
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
317
|
+
let baseOptions;
|
|
318
|
+
if (configuration) {
|
|
319
|
+
baseOptions = configuration.baseOptions;
|
|
320
|
+
}
|
|
321
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
322
|
+
const localVarHeaderParameter = {};
|
|
323
|
+
const localVarQueryParameter = {};
|
|
324
|
+
if (latitude !== undefined) {
|
|
325
|
+
localVarQueryParameter['latitude'] = latitude;
|
|
326
|
+
}
|
|
327
|
+
if (longitude !== undefined) {
|
|
328
|
+
localVarQueryParameter['longitude'] = longitude;
|
|
329
|
+
}
|
|
330
|
+
if (radiusInKm !== undefined) {
|
|
331
|
+
localVarQueryParameter['radiusInKm'] = radiusInKm;
|
|
332
|
+
}
|
|
333
|
+
if (date !== undefined) {
|
|
334
|
+
localVarQueryParameter['date'] = date;
|
|
335
|
+
}
|
|
336
|
+
if (sportId !== undefined) {
|
|
337
|
+
localVarQueryParameter['sportId'] = sportId;
|
|
338
|
+
}
|
|
339
|
+
if (startTime !== undefined) {
|
|
340
|
+
localVarQueryParameter['startTime'] = startTime;
|
|
341
|
+
}
|
|
342
|
+
if (priceMax !== undefined) {
|
|
343
|
+
localVarQueryParameter['priceMax'] = priceMax;
|
|
344
|
+
}
|
|
345
|
+
if (courtTypes !== undefined) {
|
|
346
|
+
localVarQueryParameter['courtTypes'] = courtTypes;
|
|
347
|
+
}
|
|
348
|
+
if (limitPerClub !== undefined) {
|
|
349
|
+
localVarQueryParameter['limitPerClub'] = limitPerClub;
|
|
350
|
+
}
|
|
351
|
+
if (maxClubs !== undefined) {
|
|
352
|
+
localVarQueryParameter['maxClubs'] = maxClubs;
|
|
353
|
+
}
|
|
354
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
355
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
356
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
357
|
+
return {
|
|
358
|
+
url: toPathString(localVarUrlObj),
|
|
359
|
+
options: localVarRequestOptions,
|
|
360
|
+
};
|
|
361
|
+
}),
|
|
286
362
|
};
|
|
287
363
|
};
|
|
288
364
|
/**
|
|
@@ -307,6 +383,30 @@ export const BookingsApiFp = function (configuration) {
|
|
|
307
383
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
308
384
|
});
|
|
309
385
|
},
|
|
386
|
+
/**
|
|
387
|
+
* Recherche des créneaux disponibles pour une réservation rapide
|
|
388
|
+
* @param {number} [latitude]
|
|
389
|
+
* @param {number} [longitude]
|
|
390
|
+
* @param {number} [radiusInKm]
|
|
391
|
+
* @param {string} [date]
|
|
392
|
+
* @param {string} [sportId]
|
|
393
|
+
* @param {string} [startTime]
|
|
394
|
+
* @param {number} [priceMax]
|
|
395
|
+
* @param {string} [courtTypes]
|
|
396
|
+
* @param {number} [limitPerClub]
|
|
397
|
+
* @param {number} [maxClubs]
|
|
398
|
+
* @param {*} [options] Override http request option.
|
|
399
|
+
* @throws {RequiredError}
|
|
400
|
+
*/
|
|
401
|
+
getQuickReservationSlots(latitude, longitude, radiusInKm, date, sportId, startTime, priceMax, courtTypes, limitPerClub, maxClubs, options) {
|
|
402
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
403
|
+
var _a, _b, _c;
|
|
404
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getQuickReservationSlots(latitude, longitude, radiusInKm, date, sportId, startTime, priceMax, courtTypes, limitPerClub, maxClubs, options);
|
|
405
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
406
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsApi.getQuickReservationSlots']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
407
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
408
|
+
});
|
|
409
|
+
},
|
|
310
410
|
};
|
|
311
411
|
};
|
|
312
412
|
/**
|
|
@@ -325,6 +425,15 @@ export const BookingsApiFactory = function (configuration, basePath, axios) {
|
|
|
325
425
|
getBookingHistory(requestParameters, options) {
|
|
326
426
|
return localVarFp.getBookingHistory(requestParameters.bookingId, options).then((request) => request(axios, basePath));
|
|
327
427
|
},
|
|
428
|
+
/**
|
|
429
|
+
* Recherche des créneaux disponibles pour une réservation rapide
|
|
430
|
+
* @param {BookingsApiGetQuickReservationSlotsRequest} requestParameters Request parameters.
|
|
431
|
+
* @param {*} [options] Override http request option.
|
|
432
|
+
* @throws {RequiredError}
|
|
433
|
+
*/
|
|
434
|
+
getQuickReservationSlots(requestParameters = {}, options) {
|
|
435
|
+
return localVarFp.getQuickReservationSlots(requestParameters.latitude, requestParameters.longitude, requestParameters.radiusInKm, requestParameters.date, requestParameters.sportId, requestParameters.startTime, requestParameters.priceMax, requestParameters.courtTypes, requestParameters.limitPerClub, requestParameters.maxClubs, options).then((request) => request(axios, basePath));
|
|
436
|
+
},
|
|
328
437
|
};
|
|
329
438
|
};
|
|
330
439
|
/**
|
|
@@ -344,6 +453,16 @@ export class BookingsApi extends BaseAPI {
|
|
|
344
453
|
getBookingHistory(requestParameters, options) {
|
|
345
454
|
return BookingsApiFp(this.configuration).getBookingHistory(requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
|
|
346
455
|
}
|
|
456
|
+
/**
|
|
457
|
+
* Recherche des créneaux disponibles pour une réservation rapide
|
|
458
|
+
* @param {BookingsApiGetQuickReservationSlotsRequest} requestParameters Request parameters.
|
|
459
|
+
* @param {*} [options] Override http request option.
|
|
460
|
+
* @throws {RequiredError}
|
|
461
|
+
* @memberof BookingsApi
|
|
462
|
+
*/
|
|
463
|
+
getQuickReservationSlots(requestParameters = {}, options) {
|
|
464
|
+
return BookingsApiFp(this.configuration).getQuickReservationSlots(requestParameters.latitude, requestParameters.longitude, requestParameters.radiusInKm, requestParameters.date, requestParameters.sportId, requestParameters.startTime, requestParameters.priceMax, requestParameters.courtTypes, requestParameters.limitPerClub, requestParameters.maxClubs, options).then((request) => request(this.axios, this.basePath));
|
|
465
|
+
}
|
|
347
466
|
}
|
|
348
467
|
/**
|
|
349
468
|
* BookingsManagerApi - axios parameter creator
|
|
@@ -597,7 +716,7 @@ export const BookingsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
597
716
|
getBookingHistoryStaff: (bookingId_1, ...args_1) => __awaiter(this, [bookingId_1, ...args_1], void 0, function* (bookingId, options = {}) {
|
|
598
717
|
// verify required parameter 'bookingId' is not null or undefined
|
|
599
718
|
assertParamExists('getBookingHistoryStaff', 'bookingId', bookingId);
|
|
600
|
-
const localVarPath = `/api/bookings/staff/{bookingId}`
|
|
719
|
+
const localVarPath = `/api/bookings/staff/history{bookingId}`
|
|
601
720
|
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
602
721
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
603
722
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -7349,6 +7468,33 @@ export const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
7349
7468
|
options: localVarRequestOptions,
|
|
7350
7469
|
};
|
|
7351
7470
|
}),
|
|
7471
|
+
/**
|
|
7472
|
+
*
|
|
7473
|
+
* @param {*} [options] Override http request option.
|
|
7474
|
+
* @throws {RequiredError}
|
|
7475
|
+
*/
|
|
7476
|
+
getPlayerCategories: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
7477
|
+
const localVarPath = `/api/users/players/categories`;
|
|
7478
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7479
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7480
|
+
let baseOptions;
|
|
7481
|
+
if (configuration) {
|
|
7482
|
+
baseOptions = configuration.baseOptions;
|
|
7483
|
+
}
|
|
7484
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
7485
|
+
const localVarHeaderParameter = {};
|
|
7486
|
+
const localVarQueryParameter = {};
|
|
7487
|
+
// authentication bearerAuth required
|
|
7488
|
+
// http bearer authentication required
|
|
7489
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
7490
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7491
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7492
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7493
|
+
return {
|
|
7494
|
+
url: toPathString(localVarUrlObj),
|
|
7495
|
+
options: localVarRequestOptions,
|
|
7496
|
+
};
|
|
7497
|
+
}),
|
|
7352
7498
|
/**
|
|
7353
7499
|
*
|
|
7354
7500
|
* @param {number} [limit]
|
|
@@ -7415,6 +7561,73 @@ export const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
7415
7561
|
options: localVarRequestOptions,
|
|
7416
7562
|
};
|
|
7417
7563
|
}),
|
|
7564
|
+
/**
|
|
7565
|
+
*
|
|
7566
|
+
* @param {PlayerCategoryId} [category]
|
|
7567
|
+
* @param {string} [search]
|
|
7568
|
+
* @param {string} [gender]
|
|
7569
|
+
* @param {boolean} [sharedClub]
|
|
7570
|
+
* @param {string} [sportLevels]
|
|
7571
|
+
* @param {number} [limit]
|
|
7572
|
+
* @param {number} [offset]
|
|
7573
|
+
* @param {number} [latitude]
|
|
7574
|
+
* @param {number} [longitude]
|
|
7575
|
+
* @param {number} [radiusInKm]
|
|
7576
|
+
* @param {*} [options] Override http request option.
|
|
7577
|
+
* @throws {RequiredError}
|
|
7578
|
+
*/
|
|
7579
|
+
listPlayers: (category_1, search_1, gender_1, sharedClub_1, sportLevels_1, limit_1, offset_1, latitude_1, longitude_1, radiusInKm_1, ...args_1) => __awaiter(this, [category_1, search_1, gender_1, sharedClub_1, sportLevels_1, limit_1, offset_1, latitude_1, longitude_1, radiusInKm_1, ...args_1], void 0, function* (category, search, gender, sharedClub, sportLevels, limit, offset, latitude, longitude, radiusInKm, options = {}) {
|
|
7580
|
+
const localVarPath = `/api/users/players`;
|
|
7581
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7582
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7583
|
+
let baseOptions;
|
|
7584
|
+
if (configuration) {
|
|
7585
|
+
baseOptions = configuration.baseOptions;
|
|
7586
|
+
}
|
|
7587
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
7588
|
+
const localVarHeaderParameter = {};
|
|
7589
|
+
const localVarQueryParameter = {};
|
|
7590
|
+
// authentication bearerAuth required
|
|
7591
|
+
// http bearer authentication required
|
|
7592
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
7593
|
+
if (category !== undefined) {
|
|
7594
|
+
localVarQueryParameter['category'] = category;
|
|
7595
|
+
}
|
|
7596
|
+
if (search !== undefined) {
|
|
7597
|
+
localVarQueryParameter['search'] = search;
|
|
7598
|
+
}
|
|
7599
|
+
if (gender !== undefined) {
|
|
7600
|
+
localVarQueryParameter['gender'] = gender;
|
|
7601
|
+
}
|
|
7602
|
+
if (sharedClub !== undefined) {
|
|
7603
|
+
localVarQueryParameter['sharedClub'] = sharedClub;
|
|
7604
|
+
}
|
|
7605
|
+
if (sportLevels !== undefined) {
|
|
7606
|
+
localVarQueryParameter['sportLevels'] = sportLevels;
|
|
7607
|
+
}
|
|
7608
|
+
if (limit !== undefined) {
|
|
7609
|
+
localVarQueryParameter['limit'] = limit;
|
|
7610
|
+
}
|
|
7611
|
+
if (offset !== undefined) {
|
|
7612
|
+
localVarQueryParameter['offset'] = offset;
|
|
7613
|
+
}
|
|
7614
|
+
if (latitude !== undefined) {
|
|
7615
|
+
localVarQueryParameter['latitude'] = latitude;
|
|
7616
|
+
}
|
|
7617
|
+
if (longitude !== undefined) {
|
|
7618
|
+
localVarQueryParameter['longitude'] = longitude;
|
|
7619
|
+
}
|
|
7620
|
+
if (radiusInKm !== undefined) {
|
|
7621
|
+
localVarQueryParameter['radiusInKm'] = radiusInKm;
|
|
7622
|
+
}
|
|
7623
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7624
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7625
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7626
|
+
return {
|
|
7627
|
+
url: toPathString(localVarUrlObj),
|
|
7628
|
+
options: localVarRequestOptions,
|
|
7629
|
+
};
|
|
7630
|
+
}),
|
|
7418
7631
|
/**
|
|
7419
7632
|
*
|
|
7420
7633
|
* @param {LoginRequestBody} loginRequestBody
|
|
@@ -8194,6 +8407,20 @@ export const UsersApiFp = function (configuration) {
|
|
|
8194
8407
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8195
8408
|
});
|
|
8196
8409
|
},
|
|
8410
|
+
/**
|
|
8411
|
+
*
|
|
8412
|
+
* @param {*} [options] Override http request option.
|
|
8413
|
+
* @throws {RequiredError}
|
|
8414
|
+
*/
|
|
8415
|
+
getPlayerCategories(options) {
|
|
8416
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8417
|
+
var _a, _b, _c;
|
|
8418
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getPlayerCategories(options);
|
|
8419
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8420
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.getPlayerCategories']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8421
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8422
|
+
});
|
|
8423
|
+
},
|
|
8197
8424
|
/**
|
|
8198
8425
|
*
|
|
8199
8426
|
* @param {number} [limit]
|
|
@@ -8225,6 +8452,30 @@ export const UsersApiFp = function (configuration) {
|
|
|
8225
8452
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8226
8453
|
});
|
|
8227
8454
|
},
|
|
8455
|
+
/**
|
|
8456
|
+
*
|
|
8457
|
+
* @param {PlayerCategoryId} [category]
|
|
8458
|
+
* @param {string} [search]
|
|
8459
|
+
* @param {string} [gender]
|
|
8460
|
+
* @param {boolean} [sharedClub]
|
|
8461
|
+
* @param {string} [sportLevels]
|
|
8462
|
+
* @param {number} [limit]
|
|
8463
|
+
* @param {number} [offset]
|
|
8464
|
+
* @param {number} [latitude]
|
|
8465
|
+
* @param {number} [longitude]
|
|
8466
|
+
* @param {number} [radiusInKm]
|
|
8467
|
+
* @param {*} [options] Override http request option.
|
|
8468
|
+
* @throws {RequiredError}
|
|
8469
|
+
*/
|
|
8470
|
+
listPlayers(category, search, gender, sharedClub, sportLevels, limit, offset, latitude, longitude, radiusInKm, options) {
|
|
8471
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8472
|
+
var _a, _b, _c;
|
|
8473
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listPlayers(category, search, gender, sharedClub, sportLevels, limit, offset, latitude, longitude, radiusInKm, options);
|
|
8474
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8475
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.listPlayers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8476
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8477
|
+
});
|
|
8478
|
+
},
|
|
8228
8479
|
/**
|
|
8229
8480
|
*
|
|
8230
8481
|
* @param {LoginRequestBody} loginRequestBody
|
|
@@ -8635,6 +8886,14 @@ export const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
8635
8886
|
getNearestUsersFromCoordinates(requestParameters = {}, options) {
|
|
8636
8887
|
return localVarFp.getNearestUsersFromCoordinates(requestParameters.latitude, requestParameters.longitude, requestParameters.radiusInKm, requestParameters.limit, options).then((request) => request(axios, basePath));
|
|
8637
8888
|
},
|
|
8889
|
+
/**
|
|
8890
|
+
*
|
|
8891
|
+
* @param {*} [options] Override http request option.
|
|
8892
|
+
* @throws {RequiredError}
|
|
8893
|
+
*/
|
|
8894
|
+
getPlayerCategories(options) {
|
|
8895
|
+
return localVarFp.getPlayerCategories(options).then((request) => request(axios, basePath));
|
|
8896
|
+
},
|
|
8638
8897
|
/**
|
|
8639
8898
|
*
|
|
8640
8899
|
* @param {UsersApiGetUserBookingsRequest} requestParameters Request parameters.
|
|
@@ -8653,6 +8912,15 @@ export const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
8653
8912
|
getUserProfileById(requestParameters, options) {
|
|
8654
8913
|
return localVarFp.getUserProfileById(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
8655
8914
|
},
|
|
8915
|
+
/**
|
|
8916
|
+
*
|
|
8917
|
+
* @param {UsersApiListPlayersRequest} requestParameters Request parameters.
|
|
8918
|
+
* @param {*} [options] Override http request option.
|
|
8919
|
+
* @throws {RequiredError}
|
|
8920
|
+
*/
|
|
8921
|
+
listPlayers(requestParameters = {}, options) {
|
|
8922
|
+
return localVarFp.listPlayers(requestParameters.category, requestParameters.search, requestParameters.gender, requestParameters.sharedClub, requestParameters.sportLevels, requestParameters.limit, requestParameters.offset, requestParameters.latitude, requestParameters.longitude, requestParameters.radiusInKm, options).then((request) => request(axios, basePath));
|
|
8923
|
+
},
|
|
8656
8924
|
/**
|
|
8657
8925
|
*
|
|
8658
8926
|
* @param {UsersApiLoginRequest} requestParameters Request parameters.
|
|
@@ -8978,6 +9246,15 @@ export class UsersApi extends BaseAPI {
|
|
|
8978
9246
|
getNearestUsersFromCoordinates(requestParameters = {}, options) {
|
|
8979
9247
|
return UsersApiFp(this.configuration).getNearestUsersFromCoordinates(requestParameters.latitude, requestParameters.longitude, requestParameters.radiusInKm, requestParameters.limit, options).then((request) => request(this.axios, this.basePath));
|
|
8980
9248
|
}
|
|
9249
|
+
/**
|
|
9250
|
+
*
|
|
9251
|
+
* @param {*} [options] Override http request option.
|
|
9252
|
+
* @throws {RequiredError}
|
|
9253
|
+
* @memberof UsersApi
|
|
9254
|
+
*/
|
|
9255
|
+
getPlayerCategories(options) {
|
|
9256
|
+
return UsersApiFp(this.configuration).getPlayerCategories(options).then((request) => request(this.axios, this.basePath));
|
|
9257
|
+
}
|
|
8981
9258
|
/**
|
|
8982
9259
|
*
|
|
8983
9260
|
* @param {UsersApiGetUserBookingsRequest} requestParameters Request parameters.
|
|
@@ -8998,6 +9275,16 @@ export class UsersApi extends BaseAPI {
|
|
|
8998
9275
|
getUserProfileById(requestParameters, options) {
|
|
8999
9276
|
return UsersApiFp(this.configuration).getUserProfileById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
9000
9277
|
}
|
|
9278
|
+
/**
|
|
9279
|
+
*
|
|
9280
|
+
* @param {UsersApiListPlayersRequest} requestParameters Request parameters.
|
|
9281
|
+
* @param {*} [options] Override http request option.
|
|
9282
|
+
* @throws {RequiredError}
|
|
9283
|
+
* @memberof UsersApi
|
|
9284
|
+
*/
|
|
9285
|
+
listPlayers(requestParameters = {}, options) {
|
|
9286
|
+
return UsersApiFp(this.configuration).listPlayers(requestParameters.category, requestParameters.search, requestParameters.gender, requestParameters.sharedClub, requestParameters.sportLevels, requestParameters.limit, requestParameters.offset, requestParameters.latitude, requestParameters.longitude, requestParameters.radiusInKm, options).then((request) => request(this.axios, this.basePath));
|
|
9287
|
+
}
|
|
9001
9288
|
/**
|
|
9002
9289
|
*
|
|
9003
9290
|
* @param {UsersApiLoginRequest} 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
|
@@ -17,7 +17,7 @@ Name | Type | Description | Notes
|
|
|
17
17
|
**totalAmount** | **number** | | [default to undefined]
|
|
18
18
|
**timeBeforeCancel** | **string** | | [optional] [default to undefined]
|
|
19
19
|
**clubAddress** | [**BookingSummaryClubAddress**](BookingSummaryClubAddress.md) | | [optional] [default to undefined]
|
|
20
|
-
**bookingHistory** | [**
|
|
20
|
+
**bookingHistory** | [**BookingHistoryPopulated**](BookingHistoryPopulated.md) | | [optional] [default to undefined]
|
|
21
21
|
**paymentStatus** | **Array<{ [key: string]: any; }>** | | [default to undefined]
|
|
22
22
|
|
|
23
23
|
## Example
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# BookingHistoryPopulated
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
## Properties
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
8
|
**action** | **string** | | [default to undefined]
|
|
9
|
-
**performedBy** | **
|
|
9
|
+
**performedBy** | [**UserInfo**](UserInfo.md) | | [default to undefined]
|
|
10
10
|
**performedByType** | **string** | | [default to undefined]
|
|
11
11
|
**details** | **string** | | [default to undefined]
|
|
12
12
|
**metadata** | **any** | | [optional] [default to undefined]
|
|
@@ -17,9 +17,9 @@ Name | Type | Description | Notes
|
|
|
17
17
|
## Example
|
|
18
18
|
|
|
19
19
|
```typescript
|
|
20
|
-
import {
|
|
20
|
+
import { BookingHistoryPopulated } from '@tennac-booking/sdk';
|
|
21
21
|
|
|
22
|
-
const instance:
|
|
22
|
+
const instance: BookingHistoryPopulated = {
|
|
23
23
|
action,
|
|
24
24
|
performedBy,
|
|
25
25
|
performedByType,
|
package/docs/BookingPopulated.md
CHANGED
|
@@ -6,10 +6,20 @@
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
8
|
**id** | **string** | ID de la réservation | [default to undefined]
|
|
9
|
-
**
|
|
10
|
-
**
|
|
11
|
-
**
|
|
12
|
-
**
|
|
9
|
+
**clubId** | **string** | | [default to undefined]
|
|
10
|
+
**creator** | [**UserInfo**](UserInfo.md) | | [default to undefined]
|
|
11
|
+
**slotInfos** | [**SlotInfo**](SlotInfo.md) | | [default to undefined]
|
|
12
|
+
**paymentByPlayers** | [**Array<PaymentByPlayerInfo>**](PaymentByPlayerInfo.md) | Statut des paiements par joueur | [default to undefined]
|
|
13
|
+
**noShowChargeApplied** | **boolean** | | [optional] [default to undefined]
|
|
14
|
+
**noShowChargeAmount** | **number** | | [optional] [default to undefined]
|
|
15
|
+
**totalPrice** | **number** | | [default to undefined]
|
|
16
|
+
**isCreatorPayingAll** | **boolean** | | [default to undefined]
|
|
17
|
+
**playersIds** | **Array<string>** | | [default to undefined]
|
|
18
|
+
**history** | [**Array<BookingHistoryPopulated>**](BookingHistoryPopulated.md) | | [default to undefined]
|
|
19
|
+
**status** | [**BookingStatus**](BookingStatus.md) | | [default to undefined]
|
|
20
|
+
**cancelledByManager** | **boolean** | | [optional] [default to undefined]
|
|
21
|
+
**cancelledBy** | **string** | | [optional] [default to undefined]
|
|
22
|
+
**cancellationReason** | **string** | | [optional] [default to undefined]
|
|
13
23
|
|
|
14
24
|
## Example
|
|
15
25
|
|
|
@@ -18,10 +28,20 @@ import { BookingPopulated } from '@tennac-booking/sdk';
|
|
|
18
28
|
|
|
19
29
|
const instance: BookingPopulated = {
|
|
20
30
|
id,
|
|
31
|
+
clubId,
|
|
32
|
+
creator,
|
|
33
|
+
slotInfos,
|
|
34
|
+
paymentByPlayers,
|
|
35
|
+
noShowChargeApplied,
|
|
36
|
+
noShowChargeAmount,
|
|
37
|
+
totalPrice,
|
|
38
|
+
isCreatorPayingAll,
|
|
39
|
+
playersIds,
|
|
40
|
+
history,
|
|
21
41
|
status,
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
42
|
+
cancelledByManager,
|
|
43
|
+
cancelledBy,
|
|
44
|
+
cancellationReason,
|
|
25
45
|
};
|
|
26
46
|
```
|
|
27
47
|
|
package/docs/BookingStatus.md
CHANGED
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
|
|
4
4
|
## Enum
|
|
5
5
|
|
|
6
|
-
* `
|
|
6
|
+
* `Paid` (value: `'paid'`)
|
|
7
7
|
|
|
8
|
-
* `
|
|
8
|
+
* `Active` (value: `'active'`)
|
|
9
9
|
|
|
10
10
|
* `Pending` (value: `'pending'`)
|
|
11
11
|
|
|
12
|
-
* `
|
|
12
|
+
* `ActivePaymentsTimeout` (value: `'active_payments_timeout'`)
|
|
13
13
|
|
|
14
14
|
* `Canceled` (value: `'canceled'`)
|
|
15
15
|
|
package/docs/BookingSummary.md
CHANGED
|
@@ -17,7 +17,7 @@ Name | Type | Description | Notes
|
|
|
17
17
|
**totalAmount** | **number** | | [default to undefined]
|
|
18
18
|
**timeBeforeCancel** | **string** | | [optional] [default to undefined]
|
|
19
19
|
**clubAddress** | [**BookingSummaryClubAddress**](BookingSummaryClubAddress.md) | | [optional] [default to undefined]
|
|
20
|
-
**bookingHistory** | [**
|
|
20
|
+
**bookingHistory** | [**BookingHistoryPopulated**](BookingHistoryPopulated.md) | | [optional] [default to undefined]
|
|
21
21
|
|
|
22
22
|
## Example
|
|
23
23
|
|