@tennac-booking/sdk 1.0.111 → 1.0.112
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 +13 -16
- package/README.md +20 -30
- package/api.ts +1047 -1975
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +654 -1214
- package/dist/api.js +480 -1109
- 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 +654 -1214
- package/dist/esm/api.js +494 -1119
- 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/BookingsWithTimeBoundsResponse.md +1 -1
- package/docs/CheckInEventParticipants200Response.md +22 -0
- package/docs/CheckInEventParticipants200ResponseInvoicesInner.md +28 -0
- package/docs/{ClientRegisterResponse.md → CheckInEventParticipantsRequest.md} +5 -7
- package/docs/ClientApi.md +58 -3
- package/docs/{ClientAccountOnboardingResponse.md → ClientFullOnboardingResponse.md} +7 -11
- package/docs/ClientFullOnboardingResponseClub.md +24 -0
- package/docs/ClientRegister201Response.md +26 -0
- package/docs/{ClientRegisterRequestBody.md → ClientRegisterRequest.md} +7 -7
- package/docs/ClubPlayerDetailResponse.md +0 -2
- package/docs/ClubSummary.md +2 -8
- package/docs/ClubsManagerApi.md +0 -56
- package/docs/ClubsStaffApi.md +59 -55
- package/docs/CreateEventRequest.md +1 -3
- package/docs/CreateOnsiteInvoiceRequest.md +28 -0
- package/docs/CreateOnsiteInvoiceResponse.md +22 -0
- package/docs/CreateOnsiteInvoiceResponseInvoice.md +31 -0
- package/docs/EventConflictCheckRequest.md +28 -0
- package/docs/EventConflictCheckResponse.md +26 -0
- package/docs/EventsManagerApi.md +114 -0
- package/docs/EventsStaffApi.md +20 -159
- package/docs/JoinEventRequest.md +8 -0
- package/docs/{AgendaBookingPlayer.md → JoinEventRequestPlayersPaymentMethodsInner.md} +5 -9
- package/docs/PaymentMethod.md +4 -0
- package/docs/PublishEventResponse.md +2 -0
- package/index.ts +1 -1
- package/package.json +1 -1
- package/docs/ActiveSubscriptionResponse.md +0 -22
- package/docs/AgendaBooking.md +0 -30
- package/docs/AgendaBookingSlot.md +0 -30
- package/docs/AgendaPaymentStatus.md +0 -12
- package/docs/ClientAccountOnboardingRequest.md +0 -29
- package/docs/ClientAccountResponse.md +0 -44
- package/docs/ClientAccountsApi.md +0 -408
- package/docs/ClientMeResponse.md +0 -28
- package/docs/ClientOnboardingResponse.md +0 -27
- package/docs/ClientSubscriptionResponse.md +0 -34
- package/docs/GetSubscriptionsHistory200Response.md +0 -22
- package/docs/UpdateUserCreditsRequest.md +0 -20
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.110
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -26,16 +26,6 @@ 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
|
-
/**
|
|
30
|
-
*
|
|
31
|
-
* @export
|
|
32
|
-
* @enum {string}
|
|
33
|
-
*/
|
|
34
|
-
export const AgendaPaymentStatus = {
|
|
35
|
-
Pay: 'payé',
|
|
36
|
-
NonPay: 'non payé',
|
|
37
|
-
EnAttente: 'en attente'
|
|
38
|
-
};
|
|
39
29
|
export const BookingHistoryPopulatedPerformedByTypeEnum = {
|
|
40
30
|
User: 'user',
|
|
41
31
|
Manager: 'manager',
|
|
@@ -63,14 +53,6 @@ export const CaptureResultStatusEnum = {
|
|
|
63
53
|
Captured: 'captured',
|
|
64
54
|
Failed: 'failed'
|
|
65
55
|
};
|
|
66
|
-
export const ClientAccountOnboardingRequestBusinessTypeEnum = {
|
|
67
|
-
Individual: 'individual',
|
|
68
|
-
Company: 'company'
|
|
69
|
-
};
|
|
70
|
-
export const ClientAccountOnboardingRequestSubscriptionTypeEnum = {
|
|
71
|
-
Basic: 'basic',
|
|
72
|
-
PlatformWithConnect: 'platform_with_connect'
|
|
73
|
-
};
|
|
74
56
|
export const ClubRoleResponseRoleEnum = {
|
|
75
57
|
Admin: 'admin',
|
|
76
58
|
Manager: 'manager',
|
|
@@ -175,6 +157,8 @@ export const InvoiceStatus = {
|
|
|
175
157
|
export const PaymentMethod = {
|
|
176
158
|
Online: 'online',
|
|
177
159
|
Onsite: 'onsite',
|
|
160
|
+
OnsiteCard: 'onsite_card',
|
|
161
|
+
OnsiteCash: 'onsite_cash',
|
|
178
162
|
Free: 'free'
|
|
179
163
|
};
|
|
180
164
|
/**
|
|
@@ -1413,6 +1397,35 @@ export class BookingsUserApi extends BaseAPI {
|
|
|
1413
1397
|
*/
|
|
1414
1398
|
export const ClientApiAxiosParamCreator = function (configuration) {
|
|
1415
1399
|
return {
|
|
1400
|
+
/**
|
|
1401
|
+
* Enregistre un nouvel utilisateur client - Crée l\'utilisateur avec un Stripe Customer
|
|
1402
|
+
* @param {ClientRegisterRequest} clientRegisterRequest
|
|
1403
|
+
* @param {*} [options] Override http request option.
|
|
1404
|
+
* @throws {RequiredError}
|
|
1405
|
+
*/
|
|
1406
|
+
clientRegister: (clientRegisterRequest_1, ...args_1) => __awaiter(this, [clientRegisterRequest_1, ...args_1], void 0, function* (clientRegisterRequest, options = {}) {
|
|
1407
|
+
// verify required parameter 'clientRegisterRequest' is not null or undefined
|
|
1408
|
+
assertParamExists('clientRegister', 'clientRegisterRequest', clientRegisterRequest);
|
|
1409
|
+
const localVarPath = `/clients/register`;
|
|
1410
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1411
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1412
|
+
let baseOptions;
|
|
1413
|
+
if (configuration) {
|
|
1414
|
+
baseOptions = configuration.baseOptions;
|
|
1415
|
+
}
|
|
1416
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1417
|
+
const localVarHeaderParameter = {};
|
|
1418
|
+
const localVarQueryParameter = {};
|
|
1419
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1420
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1421
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1422
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1423
|
+
localVarRequestOptions.data = serializeDataIfNeeded(clientRegisterRequest, localVarRequestOptions, configuration);
|
|
1424
|
+
return {
|
|
1425
|
+
url: toPathString(localVarUrlObj),
|
|
1426
|
+
options: localVarRequestOptions,
|
|
1427
|
+
};
|
|
1428
|
+
}),
|
|
1416
1429
|
/**
|
|
1417
1430
|
* Récupère la liste des clubs gérés par l\'utilisateur authentifié
|
|
1418
1431
|
* @param {*} [options] Override http request option.
|
|
@@ -1459,6 +1472,9 @@ export const ClientApiAxiosParamCreator = function (configuration) {
|
|
|
1459
1472
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1460
1473
|
const localVarHeaderParameter = {};
|
|
1461
1474
|
const localVarQueryParameter = {};
|
|
1475
|
+
// authentication clientAuth required
|
|
1476
|
+
// http bearer authentication required
|
|
1477
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1462
1478
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1463
1479
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1464
1480
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -1478,6 +1494,21 @@ export const ClientApiAxiosParamCreator = function (configuration) {
|
|
|
1478
1494
|
export const ClientApiFp = function (configuration) {
|
|
1479
1495
|
const localVarAxiosParamCreator = ClientApiAxiosParamCreator(configuration);
|
|
1480
1496
|
return {
|
|
1497
|
+
/**
|
|
1498
|
+
* Enregistre un nouvel utilisateur client - Crée l\'utilisateur avec un Stripe Customer
|
|
1499
|
+
* @param {ClientRegisterRequest} clientRegisterRequest
|
|
1500
|
+
* @param {*} [options] Override http request option.
|
|
1501
|
+
* @throws {RequiredError}
|
|
1502
|
+
*/
|
|
1503
|
+
clientRegister(clientRegisterRequest, options) {
|
|
1504
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1505
|
+
var _a, _b, _c;
|
|
1506
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.clientRegister(clientRegisterRequest, options);
|
|
1507
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1508
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClientApi.clientRegister']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1509
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1510
|
+
});
|
|
1511
|
+
},
|
|
1481
1512
|
/**
|
|
1482
1513
|
* Récupère la liste des clubs gérés par l\'utilisateur authentifié
|
|
1483
1514
|
* @param {*} [options] Override http request option.
|
|
@@ -1516,6 +1547,15 @@ export const ClientApiFp = function (configuration) {
|
|
|
1516
1547
|
export const ClientApiFactory = function (configuration, basePath, axios) {
|
|
1517
1548
|
const localVarFp = ClientApiFp(configuration);
|
|
1518
1549
|
return {
|
|
1550
|
+
/**
|
|
1551
|
+
* Enregistre un nouvel utilisateur client - Crée l\'utilisateur avec un Stripe Customer
|
|
1552
|
+
* @param {ClientApiClientRegisterRequest} requestParameters Request parameters.
|
|
1553
|
+
* @param {*} [options] Override http request option.
|
|
1554
|
+
* @throws {RequiredError}
|
|
1555
|
+
*/
|
|
1556
|
+
clientRegister(requestParameters, options) {
|
|
1557
|
+
return localVarFp.clientRegister(requestParameters.clientRegisterRequest, options).then((request) => request(axios, basePath));
|
|
1558
|
+
},
|
|
1519
1559
|
/**
|
|
1520
1560
|
* Récupère la liste des clubs gérés par l\'utilisateur authentifié
|
|
1521
1561
|
* @param {*} [options] Override http request option.
|
|
@@ -1542,6 +1582,16 @@ export const ClientApiFactory = function (configuration, basePath, axios) {
|
|
|
1542
1582
|
* @extends {BaseAPI}
|
|
1543
1583
|
*/
|
|
1544
1584
|
export class ClientApi extends BaseAPI {
|
|
1585
|
+
/**
|
|
1586
|
+
* Enregistre un nouvel utilisateur client - Crée l\'utilisateur avec un Stripe Customer
|
|
1587
|
+
* @param {ClientApiClientRegisterRequest} requestParameters Request parameters.
|
|
1588
|
+
* @param {*} [options] Override http request option.
|
|
1589
|
+
* @throws {RequiredError}
|
|
1590
|
+
* @memberof ClientApi
|
|
1591
|
+
*/
|
|
1592
|
+
clientRegister(requestParameters, options) {
|
|
1593
|
+
return ClientApiFp(this.configuration).clientRegister(requestParameters.clientRegisterRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1594
|
+
}
|
|
1545
1595
|
/**
|
|
1546
1596
|
* Récupère la liste des clubs gérés par l\'utilisateur authentifié
|
|
1547
1597
|
* @param {*} [options] Override http request option.
|
|
@@ -1563,18 +1613,18 @@ export class ClientApi extends BaseAPI {
|
|
|
1563
1613
|
}
|
|
1564
1614
|
}
|
|
1565
1615
|
/**
|
|
1566
|
-
*
|
|
1616
|
+
* ClubAnalyticsApi - axios parameter creator
|
|
1567
1617
|
* @export
|
|
1568
1618
|
*/
|
|
1569
|
-
export const
|
|
1619
|
+
export const ClubAnalyticsApiAxiosParamCreator = function (configuration) {
|
|
1570
1620
|
return {
|
|
1571
1621
|
/**
|
|
1572
|
-
*
|
|
1622
|
+
* Récupère les clubs les plus aimés
|
|
1573
1623
|
* @param {*} [options] Override http request option.
|
|
1574
1624
|
* @throws {RequiredError}
|
|
1575
1625
|
*/
|
|
1576
|
-
|
|
1577
|
-
const localVarPath = `/
|
|
1626
|
+
getMostLikedClub: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
1627
|
+
const localVarPath = `/api/club-analytics/most-liked-clubs`;
|
|
1578
1628
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1579
1629
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1580
1630
|
let baseOptions;
|
|
@@ -1584,7 +1634,7 @@ export const ClientAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
1584
1634
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1585
1635
|
const localVarHeaderParameter = {};
|
|
1586
1636
|
const localVarQueryParameter = {};
|
|
1587
|
-
// authentication
|
|
1637
|
+
// authentication bearerAuth required
|
|
1588
1638
|
// http bearer authentication required
|
|
1589
1639
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1590
1640
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -1596,16 +1646,12 @@ export const ClientAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
1596
1646
|
};
|
|
1597
1647
|
}),
|
|
1598
1648
|
/**
|
|
1599
|
-
* Récupère
|
|
1600
|
-
* @param {string} accountId L\'ID du compte client
|
|
1649
|
+
* Récupère les clubs populaires
|
|
1601
1650
|
* @param {*} [options] Override http request option.
|
|
1602
1651
|
* @throws {RequiredError}
|
|
1603
1652
|
*/
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
assertParamExists('getClientAccountById', 'accountId', accountId);
|
|
1607
|
-
const localVarPath = `/client-accounts/{accountId}`
|
|
1608
|
-
.replace(`{${"accountId"}}`, encodeURIComponent(String(accountId)));
|
|
1653
|
+
getPopularClubs: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
1654
|
+
const localVarPath = `/api/club-analytics/popular-clubs`;
|
|
1609
1655
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1610
1656
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1611
1657
|
let baseOptions;
|
|
@@ -1626,13 +1672,113 @@ export const ClientAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
1626
1672
|
options: localVarRequestOptions,
|
|
1627
1673
|
};
|
|
1628
1674
|
}),
|
|
1675
|
+
};
|
|
1676
|
+
};
|
|
1677
|
+
/**
|
|
1678
|
+
* ClubAnalyticsApi - functional programming interface
|
|
1679
|
+
* @export
|
|
1680
|
+
*/
|
|
1681
|
+
export const ClubAnalyticsApiFp = function (configuration) {
|
|
1682
|
+
const localVarAxiosParamCreator = ClubAnalyticsApiAxiosParamCreator(configuration);
|
|
1683
|
+
return {
|
|
1684
|
+
/**
|
|
1685
|
+
* Récupère les clubs les plus aimés
|
|
1686
|
+
* @param {*} [options] Override http request option.
|
|
1687
|
+
* @throws {RequiredError}
|
|
1688
|
+
*/
|
|
1689
|
+
getMostLikedClub(options) {
|
|
1690
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1691
|
+
var _a, _b, _c;
|
|
1692
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getMostLikedClub(options);
|
|
1693
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1694
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubAnalyticsApi.getMostLikedClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1695
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1696
|
+
});
|
|
1697
|
+
},
|
|
1698
|
+
/**
|
|
1699
|
+
* Récupère les clubs populaires
|
|
1700
|
+
* @param {*} [options] Override http request option.
|
|
1701
|
+
* @throws {RequiredError}
|
|
1702
|
+
*/
|
|
1703
|
+
getPopularClubs(options) {
|
|
1704
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1705
|
+
var _a, _b, _c;
|
|
1706
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getPopularClubs(options);
|
|
1707
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1708
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubAnalyticsApi.getPopularClubs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1709
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1710
|
+
});
|
|
1711
|
+
},
|
|
1712
|
+
};
|
|
1713
|
+
};
|
|
1714
|
+
/**
|
|
1715
|
+
* ClubAnalyticsApi - factory interface
|
|
1716
|
+
* @export
|
|
1717
|
+
*/
|
|
1718
|
+
export const ClubAnalyticsApiFactory = function (configuration, basePath, axios) {
|
|
1719
|
+
const localVarFp = ClubAnalyticsApiFp(configuration);
|
|
1720
|
+
return {
|
|
1721
|
+
/**
|
|
1722
|
+
* Récupère les clubs les plus aimés
|
|
1723
|
+
* @param {*} [options] Override http request option.
|
|
1724
|
+
* @throws {RequiredError}
|
|
1725
|
+
*/
|
|
1726
|
+
getMostLikedClub(options) {
|
|
1727
|
+
return localVarFp.getMostLikedClub(options).then((request) => request(axios, basePath));
|
|
1728
|
+
},
|
|
1729
|
+
/**
|
|
1730
|
+
* Récupère les clubs populaires
|
|
1731
|
+
* @param {*} [options] Override http request option.
|
|
1732
|
+
* @throws {RequiredError}
|
|
1733
|
+
*/
|
|
1734
|
+
getPopularClubs(options) {
|
|
1735
|
+
return localVarFp.getPopularClubs(options).then((request) => request(axios, basePath));
|
|
1736
|
+
},
|
|
1737
|
+
};
|
|
1738
|
+
};
|
|
1739
|
+
/**
|
|
1740
|
+
* ClubAnalyticsApi - object-oriented interface
|
|
1741
|
+
* @export
|
|
1742
|
+
* @class ClubAnalyticsApi
|
|
1743
|
+
* @extends {BaseAPI}
|
|
1744
|
+
*/
|
|
1745
|
+
export class ClubAnalyticsApi extends BaseAPI {
|
|
1746
|
+
/**
|
|
1747
|
+
* Récupère les clubs les plus aimés
|
|
1748
|
+
* @param {*} [options] Override http request option.
|
|
1749
|
+
* @throws {RequiredError}
|
|
1750
|
+
* @memberof ClubAnalyticsApi
|
|
1751
|
+
*/
|
|
1752
|
+
getMostLikedClub(options) {
|
|
1753
|
+
return ClubAnalyticsApiFp(this.configuration).getMostLikedClub(options).then((request) => request(this.axios, this.basePath));
|
|
1754
|
+
}
|
|
1755
|
+
/**
|
|
1756
|
+
* Récupère les clubs populaires
|
|
1757
|
+
* @param {*} [options] Override http request option.
|
|
1758
|
+
* @throws {RequiredError}
|
|
1759
|
+
* @memberof ClubAnalyticsApi
|
|
1760
|
+
*/
|
|
1761
|
+
getPopularClubs(options) {
|
|
1762
|
+
return ClubAnalyticsApiFp(this.configuration).getPopularClubs(options).then((request) => request(this.axios, this.basePath));
|
|
1763
|
+
}
|
|
1764
|
+
}
|
|
1765
|
+
/**
|
|
1766
|
+
* ClubAnalyticsStaffApi - axios parameter creator
|
|
1767
|
+
* @export
|
|
1768
|
+
*/
|
|
1769
|
+
export const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration) {
|
|
1770
|
+
return {
|
|
1629
1771
|
/**
|
|
1630
|
-
* Récupère
|
|
1772
|
+
* Récupère les analytics par sport
|
|
1773
|
+
* @param {string} sportId
|
|
1631
1774
|
* @param {*} [options] Override http request option.
|
|
1632
1775
|
* @throws {RequiredError}
|
|
1633
1776
|
*/
|
|
1634
|
-
|
|
1635
|
-
|
|
1777
|
+
getAnalyticsBySport: (sportId_1, ...args_1) => __awaiter(this, [sportId_1, ...args_1], void 0, function* (sportId, options = {}) {
|
|
1778
|
+
// verify required parameter 'sportId' is not null or undefined
|
|
1779
|
+
assertParamExists('getAnalyticsBySport', 'sportId', sportId);
|
|
1780
|
+
const localVarPath = `/api/club-analytics/sport/{sportId}/analytics`
|
|
1781
|
+
.replace(`{${"sportId"}}`, encodeURIComponent(String(sportId)));
|
|
1636
1782
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1637
1783
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1638
1784
|
let baseOptions;
|
|
@@ -1654,12 +1800,18 @@ export const ClientAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
1654
1800
|
};
|
|
1655
1801
|
}),
|
|
1656
1802
|
/**
|
|
1657
|
-
* Récupère
|
|
1803
|
+
* Récupère les réservations d\'un joueur par son ID (à venir et passées)
|
|
1804
|
+
* @param {string} playerId
|
|
1805
|
+
* @param {number} [page]
|
|
1806
|
+
* @param {number} [pageSize]
|
|
1658
1807
|
* @param {*} [options] Override http request option.
|
|
1659
1808
|
* @throws {RequiredError}
|
|
1660
1809
|
*/
|
|
1661
|
-
|
|
1662
|
-
|
|
1810
|
+
getClubPlayerBookingsById: (playerId_1, page_1, pageSize_1, ...args_1) => __awaiter(this, [playerId_1, page_1, pageSize_1, ...args_1], void 0, function* (playerId, page, pageSize, options = {}) {
|
|
1811
|
+
// verify required parameter 'playerId' is not null or undefined
|
|
1812
|
+
assertParamExists('getClubPlayerBookingsById', 'playerId', playerId);
|
|
1813
|
+
const localVarPath = `/api/club-analytics/players/{playerId}/bookings`
|
|
1814
|
+
.replace(`{${"playerId"}}`, encodeURIComponent(String(playerId)));
|
|
1663
1815
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1664
1816
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1665
1817
|
let baseOptions;
|
|
@@ -1672,6 +1824,12 @@ export const ClientAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
1672
1824
|
// authentication bearerAuth required
|
|
1673
1825
|
// http bearer authentication required
|
|
1674
1826
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1827
|
+
if (page !== undefined) {
|
|
1828
|
+
localVarQueryParameter['page'] = page;
|
|
1829
|
+
}
|
|
1830
|
+
if (pageSize !== undefined) {
|
|
1831
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
1832
|
+
}
|
|
1675
1833
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1676
1834
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1677
1835
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -1681,12 +1839,16 @@ export const ClientAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
1681
1839
|
};
|
|
1682
1840
|
}),
|
|
1683
1841
|
/**
|
|
1684
|
-
* Récupère
|
|
1842
|
+
* Récupère les informations détaillées d\'un joueur par son ID
|
|
1843
|
+
* @param {string} playerId
|
|
1685
1844
|
* @param {*} [options] Override http request option.
|
|
1686
1845
|
* @throws {RequiredError}
|
|
1687
1846
|
*/
|
|
1688
|
-
|
|
1689
|
-
|
|
1847
|
+
getClubPlayerById: (playerId_1, ...args_1) => __awaiter(this, [playerId_1, ...args_1], void 0, function* (playerId, options = {}) {
|
|
1848
|
+
// verify required parameter 'playerId' is not null or undefined
|
|
1849
|
+
assertParamExists('getClubPlayerById', 'playerId', playerId);
|
|
1850
|
+
const localVarPath = `/api/club-analytics/players/{playerId}`
|
|
1851
|
+
.replace(`{${"playerId"}}`, encodeURIComponent(String(playerId)));
|
|
1690
1852
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1691
1853
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1692
1854
|
let baseOptions;
|
|
@@ -1708,12 +1870,16 @@ export const ClientAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
1708
1870
|
};
|
|
1709
1871
|
}),
|
|
1710
1872
|
/**
|
|
1711
|
-
*
|
|
1873
|
+
* Récupère les statistiques d\'un joueur pour le staff
|
|
1874
|
+
* @param {string} playerId
|
|
1712
1875
|
* @param {*} [options] Override http request option.
|
|
1713
1876
|
* @throws {RequiredError}
|
|
1714
1877
|
*/
|
|
1715
|
-
|
|
1716
|
-
|
|
1878
|
+
getClubPlayerStatisticsById: (playerId_1, ...args_1) => __awaiter(this, [playerId_1, ...args_1], void 0, function* (playerId, options = {}) {
|
|
1879
|
+
// verify required parameter 'playerId' is not null or undefined
|
|
1880
|
+
assertParamExists('getClubPlayerStatisticsById', 'playerId', playerId);
|
|
1881
|
+
const localVarPath = `/api/club-analytics/players/{playerId}/statistics`
|
|
1882
|
+
.replace(`{${"playerId"}}`, encodeURIComponent(String(playerId)));
|
|
1717
1883
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1718
1884
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1719
1885
|
let baseOptions;
|
|
@@ -1735,726 +1901,92 @@ export const ClientAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
1735
1901
|
};
|
|
1736
1902
|
}),
|
|
1737
1903
|
/**
|
|
1738
|
-
*
|
|
1739
|
-
* @param {ClientAccountOnboardingRequest} clientAccountOnboardingRequest Les données du compte à créer
|
|
1904
|
+
* Récupère la liste des joueurs du club
|
|
1740
1905
|
* @param {*} [options] Override http request option.
|
|
1741
1906
|
* @throws {RequiredError}
|
|
1742
1907
|
*/
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
assertParamExists('onboardClientAccount', 'clientAccountOnboardingRequest', clientAccountOnboardingRequest);
|
|
1746
|
-
const localVarPath = `/client-accounts/onboarding`;
|
|
1908
|
+
getClubPlayers: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
1909
|
+
const localVarPath = `/api/club-analytics/players`;
|
|
1747
1910
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1748
1911
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1749
1912
|
let baseOptions;
|
|
1750
1913
|
if (configuration) {
|
|
1751
1914
|
baseOptions = configuration.baseOptions;
|
|
1752
1915
|
}
|
|
1753
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
1916
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1754
1917
|
const localVarHeaderParameter = {};
|
|
1755
1918
|
const localVarQueryParameter = {};
|
|
1756
|
-
// authentication
|
|
1919
|
+
// authentication bearerAuth required
|
|
1757
1920
|
// http bearer authentication required
|
|
1758
1921
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1759
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1760
1922
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1761
1923
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1762
1924
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1763
|
-
localVarRequestOptions.data = serializeDataIfNeeded(clientAccountOnboardingRequest, localVarRequestOptions, configuration);
|
|
1764
1925
|
return {
|
|
1765
1926
|
url: toPathString(localVarUrlObj),
|
|
1766
1927
|
options: localVarRequestOptions,
|
|
1767
1928
|
};
|
|
1768
1929
|
}),
|
|
1769
1930
|
/**
|
|
1770
|
-
*
|
|
1771
|
-
* @param {
|
|
1931
|
+
* Récupère le chiffre d\'affaires quotidien
|
|
1932
|
+
* @param {string} date
|
|
1772
1933
|
* @param {*} [options] Override http request option.
|
|
1773
1934
|
* @throws {RequiredError}
|
|
1774
1935
|
*/
|
|
1775
|
-
|
|
1776
|
-
// verify required parameter '
|
|
1777
|
-
assertParamExists('
|
|
1778
|
-
const localVarPath = `/
|
|
1936
|
+
getDailyTurnOver: (date_1, ...args_1) => __awaiter(this, [date_1, ...args_1], void 0, function* (date, options = {}) {
|
|
1937
|
+
// verify required parameter 'date' is not null or undefined
|
|
1938
|
+
assertParamExists('getDailyTurnOver', 'date', date);
|
|
1939
|
+
const localVarPath = `/api/club-analytics/daily-turnover`;
|
|
1779
1940
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1780
1941
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1781
1942
|
let baseOptions;
|
|
1782
1943
|
if (configuration) {
|
|
1783
1944
|
baseOptions = configuration.baseOptions;
|
|
1784
1945
|
}
|
|
1785
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
1946
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1786
1947
|
const localVarHeaderParameter = {};
|
|
1787
1948
|
const localVarQueryParameter = {};
|
|
1788
|
-
|
|
1949
|
+
// authentication bearerAuth required
|
|
1950
|
+
// http bearer authentication required
|
|
1951
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1952
|
+
if (date !== undefined) {
|
|
1953
|
+
localVarQueryParameter['date'] = date;
|
|
1954
|
+
}
|
|
1789
1955
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1790
1956
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1791
1957
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1792
|
-
localVarRequestOptions.data = serializeDataIfNeeded(clientRegisterRequestBody, localVarRequestOptions, configuration);
|
|
1793
1958
|
return {
|
|
1794
1959
|
url: toPathString(localVarUrlObj),
|
|
1795
1960
|
options: localVarRequestOptions,
|
|
1796
1961
|
};
|
|
1797
1962
|
}),
|
|
1798
|
-
};
|
|
1799
|
-
};
|
|
1800
|
-
/**
|
|
1801
|
-
* ClientAccountsApi - functional programming interface
|
|
1802
|
-
* @export
|
|
1803
|
-
*/
|
|
1804
|
-
export const ClientAccountsApiFp = function (configuration) {
|
|
1805
|
-
const localVarAxiosParamCreator = ClientAccountsApiAxiosParamCreator(configuration);
|
|
1806
|
-
return {
|
|
1807
1963
|
/**
|
|
1808
|
-
*
|
|
1964
|
+
* Récupère les pourcentages par genre
|
|
1809
1965
|
* @param {*} [options] Override http request option.
|
|
1810
1966
|
* @throws {RequiredError}
|
|
1811
1967
|
*/
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
}
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
});
|
|
1835
|
-
},
|
|
1836
|
-
/**
|
|
1837
|
-
* Récupère l\'abonnement actif du compte client authentifié
|
|
1838
|
-
* @param {*} [options] Override http request option.
|
|
1839
|
-
* @throws {RequiredError}
|
|
1840
|
-
*/
|
|
1841
|
-
getMyActiveSubscription(options) {
|
|
1842
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1843
|
-
var _a, _b, _c;
|
|
1844
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getMyActiveSubscription(options);
|
|
1845
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1846
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClientAccountsApi.getMyActiveSubscription']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1847
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1848
|
-
});
|
|
1849
|
-
},
|
|
1850
|
-
/**
|
|
1851
|
-
* Récupère le compte client de l\'utilisateur authentifié
|
|
1852
|
-
* @param {*} [options] Override http request option.
|
|
1853
|
-
* @throws {RequiredError}
|
|
1854
|
-
*/
|
|
1855
|
-
getMyClientAccount(options) {
|
|
1856
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1857
|
-
var _a, _b, _c;
|
|
1858
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getMyClientAccount(options);
|
|
1859
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1860
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClientAccountsApi.getMyClientAccount']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1861
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1862
|
-
});
|
|
1863
|
-
},
|
|
1864
|
-
/**
|
|
1865
|
-
* Récupère l\'historique des abonnements du compte client authentifié
|
|
1866
|
-
* @param {*} [options] Override http request option.
|
|
1867
|
-
* @throws {RequiredError}
|
|
1868
|
-
*/
|
|
1869
|
-
getSubscriptionsHistory(options) {
|
|
1870
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1871
|
-
var _a, _b, _c;
|
|
1872
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getSubscriptionsHistory(options);
|
|
1873
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1874
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClientAccountsApi.getSubscriptionsHistory']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1875
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1876
|
-
});
|
|
1877
|
-
},
|
|
1878
|
-
/**
|
|
1879
|
-
* Liste les prix Stripe disponibles pour les abonnements client
|
|
1880
|
-
* @param {*} [options] Override http request option.
|
|
1881
|
-
* @throws {RequiredError}
|
|
1882
|
-
*/
|
|
1883
|
-
listAvailablePrices(options) {
|
|
1884
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1885
|
-
var _a, _b, _c;
|
|
1886
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listAvailablePrices(options);
|
|
1887
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1888
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClientAccountsApi.listAvailablePrices']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1889
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1890
|
-
});
|
|
1891
|
-
},
|
|
1892
|
-
/**
|
|
1893
|
-
* Crée un nouveau compte client avec onboarding Stripe
|
|
1894
|
-
* @param {ClientAccountOnboardingRequest} clientAccountOnboardingRequest Les données du compte à créer
|
|
1895
|
-
* @param {*} [options] Override http request option.
|
|
1896
|
-
* @throws {RequiredError}
|
|
1897
|
-
*/
|
|
1898
|
-
onboardClientAccount(clientAccountOnboardingRequest, options) {
|
|
1899
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1900
|
-
var _a, _b, _c;
|
|
1901
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.onboardClientAccount(clientAccountOnboardingRequest, options);
|
|
1902
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1903
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClientAccountsApi.onboardClientAccount']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1904
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1905
|
-
});
|
|
1906
|
-
},
|
|
1907
|
-
/**
|
|
1908
|
-
* Route d\'inscription d\'un utilisateur client (publique)
|
|
1909
|
-
* @param {ClientRegisterRequestBody} clientRegisterRequestBody
|
|
1910
|
-
* @param {*} [options] Override http request option.
|
|
1911
|
-
* @throws {RequiredError}
|
|
1912
|
-
*/
|
|
1913
|
-
registerClientUser(clientRegisterRequestBody, options) {
|
|
1914
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1915
|
-
var _a, _b, _c;
|
|
1916
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.registerClientUser(clientRegisterRequestBody, options);
|
|
1917
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1918
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClientAccountsApi.registerClientUser']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1919
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1920
|
-
});
|
|
1921
|
-
},
|
|
1922
|
-
};
|
|
1923
|
-
};
|
|
1924
|
-
/**
|
|
1925
|
-
* ClientAccountsApi - factory interface
|
|
1926
|
-
* @export
|
|
1927
|
-
*/
|
|
1928
|
-
export const ClientAccountsApiFactory = function (configuration, basePath, axios) {
|
|
1929
|
-
const localVarFp = ClientAccountsApiFp(configuration);
|
|
1930
|
-
return {
|
|
1931
|
-
/**
|
|
1932
|
-
* Informations de l\'utilisateur client authentifié (token clientAuth)
|
|
1933
|
-
* @param {*} [options] Override http request option.
|
|
1934
|
-
* @throws {RequiredError}
|
|
1935
|
-
*/
|
|
1936
|
-
clientAuthMe(options) {
|
|
1937
|
-
return localVarFp.clientAuthMe(options).then((request) => request(axios, basePath));
|
|
1938
|
-
},
|
|
1939
|
-
/**
|
|
1940
|
-
* Récupère le compte client par son ID
|
|
1941
|
-
* @param {ClientAccountsApiGetClientAccountByIdRequest} requestParameters Request parameters.
|
|
1942
|
-
* @param {*} [options] Override http request option.
|
|
1943
|
-
* @throws {RequiredError}
|
|
1944
|
-
*/
|
|
1945
|
-
getClientAccountById(requestParameters, options) {
|
|
1946
|
-
return localVarFp.getClientAccountById(requestParameters.accountId, options).then((request) => request(axios, basePath));
|
|
1947
|
-
},
|
|
1948
|
-
/**
|
|
1949
|
-
* Récupère l\'abonnement actif du compte client authentifié
|
|
1950
|
-
* @param {*} [options] Override http request option.
|
|
1951
|
-
* @throws {RequiredError}
|
|
1952
|
-
*/
|
|
1953
|
-
getMyActiveSubscription(options) {
|
|
1954
|
-
return localVarFp.getMyActiveSubscription(options).then((request) => request(axios, basePath));
|
|
1955
|
-
},
|
|
1956
|
-
/**
|
|
1957
|
-
* Récupère le compte client de l\'utilisateur authentifié
|
|
1958
|
-
* @param {*} [options] Override http request option.
|
|
1959
|
-
* @throws {RequiredError}
|
|
1960
|
-
*/
|
|
1961
|
-
getMyClientAccount(options) {
|
|
1962
|
-
return localVarFp.getMyClientAccount(options).then((request) => request(axios, basePath));
|
|
1963
|
-
},
|
|
1964
|
-
/**
|
|
1965
|
-
* Récupère l\'historique des abonnements du compte client authentifié
|
|
1966
|
-
* @param {*} [options] Override http request option.
|
|
1967
|
-
* @throws {RequiredError}
|
|
1968
|
-
*/
|
|
1969
|
-
getSubscriptionsHistory(options) {
|
|
1970
|
-
return localVarFp.getSubscriptionsHistory(options).then((request) => request(axios, basePath));
|
|
1971
|
-
},
|
|
1972
|
-
/**
|
|
1973
|
-
* Liste les prix Stripe disponibles pour les abonnements client
|
|
1974
|
-
* @param {*} [options] Override http request option.
|
|
1975
|
-
* @throws {RequiredError}
|
|
1976
|
-
*/
|
|
1977
|
-
listAvailablePrices(options) {
|
|
1978
|
-
return localVarFp.listAvailablePrices(options).then((request) => request(axios, basePath));
|
|
1979
|
-
},
|
|
1980
|
-
/**
|
|
1981
|
-
* Crée un nouveau compte client avec onboarding Stripe
|
|
1982
|
-
* @param {ClientAccountsApiOnboardClientAccountRequest} requestParameters Request parameters.
|
|
1983
|
-
* @param {*} [options] Override http request option.
|
|
1984
|
-
* @throws {RequiredError}
|
|
1985
|
-
*/
|
|
1986
|
-
onboardClientAccount(requestParameters, options) {
|
|
1987
|
-
return localVarFp.onboardClientAccount(requestParameters.clientAccountOnboardingRequest, options).then((request) => request(axios, basePath));
|
|
1988
|
-
},
|
|
1989
|
-
/**
|
|
1990
|
-
* Route d\'inscription d\'un utilisateur client (publique)
|
|
1991
|
-
* @param {ClientAccountsApiRegisterClientUserRequest} requestParameters Request parameters.
|
|
1992
|
-
* @param {*} [options] Override http request option.
|
|
1993
|
-
* @throws {RequiredError}
|
|
1994
|
-
*/
|
|
1995
|
-
registerClientUser(requestParameters, options) {
|
|
1996
|
-
return localVarFp.registerClientUser(requestParameters.clientRegisterRequestBody, options).then((request) => request(axios, basePath));
|
|
1997
|
-
},
|
|
1998
|
-
};
|
|
1999
|
-
};
|
|
2000
|
-
/**
|
|
2001
|
-
* ClientAccountsApi - object-oriented interface
|
|
2002
|
-
* @export
|
|
2003
|
-
* @class ClientAccountsApi
|
|
2004
|
-
* @extends {BaseAPI}
|
|
2005
|
-
*/
|
|
2006
|
-
export class ClientAccountsApi extends BaseAPI {
|
|
2007
|
-
/**
|
|
2008
|
-
* Informations de l\'utilisateur client authentifié (token clientAuth)
|
|
2009
|
-
* @param {*} [options] Override http request option.
|
|
2010
|
-
* @throws {RequiredError}
|
|
2011
|
-
* @memberof ClientAccountsApi
|
|
2012
|
-
*/
|
|
2013
|
-
clientAuthMe(options) {
|
|
2014
|
-
return ClientAccountsApiFp(this.configuration).clientAuthMe(options).then((request) => request(this.axios, this.basePath));
|
|
2015
|
-
}
|
|
2016
|
-
/**
|
|
2017
|
-
* Récupère le compte client par son ID
|
|
2018
|
-
* @param {ClientAccountsApiGetClientAccountByIdRequest} requestParameters Request parameters.
|
|
2019
|
-
* @param {*} [options] Override http request option.
|
|
2020
|
-
* @throws {RequiredError}
|
|
2021
|
-
* @memberof ClientAccountsApi
|
|
2022
|
-
*/
|
|
2023
|
-
getClientAccountById(requestParameters, options) {
|
|
2024
|
-
return ClientAccountsApiFp(this.configuration).getClientAccountById(requestParameters.accountId, options).then((request) => request(this.axios, this.basePath));
|
|
2025
|
-
}
|
|
2026
|
-
/**
|
|
2027
|
-
* Récupère l\'abonnement actif du compte client authentifié
|
|
2028
|
-
* @param {*} [options] Override http request option.
|
|
2029
|
-
* @throws {RequiredError}
|
|
2030
|
-
* @memberof ClientAccountsApi
|
|
2031
|
-
*/
|
|
2032
|
-
getMyActiveSubscription(options) {
|
|
2033
|
-
return ClientAccountsApiFp(this.configuration).getMyActiveSubscription(options).then((request) => request(this.axios, this.basePath));
|
|
2034
|
-
}
|
|
2035
|
-
/**
|
|
2036
|
-
* Récupère le compte client de l\'utilisateur authentifié
|
|
2037
|
-
* @param {*} [options] Override http request option.
|
|
2038
|
-
* @throws {RequiredError}
|
|
2039
|
-
* @memberof ClientAccountsApi
|
|
2040
|
-
*/
|
|
2041
|
-
getMyClientAccount(options) {
|
|
2042
|
-
return ClientAccountsApiFp(this.configuration).getMyClientAccount(options).then((request) => request(this.axios, this.basePath));
|
|
2043
|
-
}
|
|
2044
|
-
/**
|
|
2045
|
-
* Récupère l\'historique des abonnements du compte client authentifié
|
|
2046
|
-
* @param {*} [options] Override http request option.
|
|
2047
|
-
* @throws {RequiredError}
|
|
2048
|
-
* @memberof ClientAccountsApi
|
|
2049
|
-
*/
|
|
2050
|
-
getSubscriptionsHistory(options) {
|
|
2051
|
-
return ClientAccountsApiFp(this.configuration).getSubscriptionsHistory(options).then((request) => request(this.axios, this.basePath));
|
|
2052
|
-
}
|
|
2053
|
-
/**
|
|
2054
|
-
* Liste les prix Stripe disponibles pour les abonnements client
|
|
2055
|
-
* @param {*} [options] Override http request option.
|
|
2056
|
-
* @throws {RequiredError}
|
|
2057
|
-
* @memberof ClientAccountsApi
|
|
2058
|
-
*/
|
|
2059
|
-
listAvailablePrices(options) {
|
|
2060
|
-
return ClientAccountsApiFp(this.configuration).listAvailablePrices(options).then((request) => request(this.axios, this.basePath));
|
|
2061
|
-
}
|
|
2062
|
-
/**
|
|
2063
|
-
* Crée un nouveau compte client avec onboarding Stripe
|
|
2064
|
-
* @param {ClientAccountsApiOnboardClientAccountRequest} requestParameters Request parameters.
|
|
2065
|
-
* @param {*} [options] Override http request option.
|
|
2066
|
-
* @throws {RequiredError}
|
|
2067
|
-
* @memberof ClientAccountsApi
|
|
2068
|
-
*/
|
|
2069
|
-
onboardClientAccount(requestParameters, options) {
|
|
2070
|
-
return ClientAccountsApiFp(this.configuration).onboardClientAccount(requestParameters.clientAccountOnboardingRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2071
|
-
}
|
|
2072
|
-
/**
|
|
2073
|
-
* Route d\'inscription d\'un utilisateur client (publique)
|
|
2074
|
-
* @param {ClientAccountsApiRegisterClientUserRequest} requestParameters Request parameters.
|
|
2075
|
-
* @param {*} [options] Override http request option.
|
|
2076
|
-
* @throws {RequiredError}
|
|
2077
|
-
* @memberof ClientAccountsApi
|
|
2078
|
-
*/
|
|
2079
|
-
registerClientUser(requestParameters, options) {
|
|
2080
|
-
return ClientAccountsApiFp(this.configuration).registerClientUser(requestParameters.clientRegisterRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
2081
|
-
}
|
|
2082
|
-
}
|
|
2083
|
-
/**
|
|
2084
|
-
* ClubAnalyticsApi - axios parameter creator
|
|
2085
|
-
* @export
|
|
2086
|
-
*/
|
|
2087
|
-
export const ClubAnalyticsApiAxiosParamCreator = function (configuration) {
|
|
2088
|
-
return {
|
|
2089
|
-
/**
|
|
2090
|
-
* Récupère les clubs les plus aimés
|
|
2091
|
-
* @param {*} [options] Override http request option.
|
|
2092
|
-
* @throws {RequiredError}
|
|
2093
|
-
*/
|
|
2094
|
-
getMostLikedClub: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
2095
|
-
const localVarPath = `/api/club-analytics/most-liked-clubs`;
|
|
2096
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2097
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2098
|
-
let baseOptions;
|
|
2099
|
-
if (configuration) {
|
|
2100
|
-
baseOptions = configuration.baseOptions;
|
|
2101
|
-
}
|
|
2102
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2103
|
-
const localVarHeaderParameter = {};
|
|
2104
|
-
const localVarQueryParameter = {};
|
|
2105
|
-
// authentication bearerAuth required
|
|
2106
|
-
// http bearer authentication required
|
|
2107
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2108
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2109
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2110
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2111
|
-
return {
|
|
2112
|
-
url: toPathString(localVarUrlObj),
|
|
2113
|
-
options: localVarRequestOptions,
|
|
2114
|
-
};
|
|
2115
|
-
}),
|
|
2116
|
-
/**
|
|
2117
|
-
* Récupère les clubs populaires
|
|
2118
|
-
* @param {*} [options] Override http request option.
|
|
2119
|
-
* @throws {RequiredError}
|
|
2120
|
-
*/
|
|
2121
|
-
getPopularClubs: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
2122
|
-
const localVarPath = `/api/club-analytics/popular-clubs`;
|
|
2123
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2124
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2125
|
-
let baseOptions;
|
|
2126
|
-
if (configuration) {
|
|
2127
|
-
baseOptions = configuration.baseOptions;
|
|
2128
|
-
}
|
|
2129
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2130
|
-
const localVarHeaderParameter = {};
|
|
2131
|
-
const localVarQueryParameter = {};
|
|
2132
|
-
// authentication bearerAuth required
|
|
2133
|
-
// http bearer authentication required
|
|
2134
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2135
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2136
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2137
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2138
|
-
return {
|
|
2139
|
-
url: toPathString(localVarUrlObj),
|
|
2140
|
-
options: localVarRequestOptions,
|
|
2141
|
-
};
|
|
2142
|
-
}),
|
|
2143
|
-
};
|
|
2144
|
-
};
|
|
2145
|
-
/**
|
|
2146
|
-
* ClubAnalyticsApi - functional programming interface
|
|
2147
|
-
* @export
|
|
2148
|
-
*/
|
|
2149
|
-
export const ClubAnalyticsApiFp = function (configuration) {
|
|
2150
|
-
const localVarAxiosParamCreator = ClubAnalyticsApiAxiosParamCreator(configuration);
|
|
2151
|
-
return {
|
|
2152
|
-
/**
|
|
2153
|
-
* Récupère les clubs les plus aimés
|
|
2154
|
-
* @param {*} [options] Override http request option.
|
|
2155
|
-
* @throws {RequiredError}
|
|
2156
|
-
*/
|
|
2157
|
-
getMostLikedClub(options) {
|
|
2158
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
2159
|
-
var _a, _b, _c;
|
|
2160
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getMostLikedClub(options);
|
|
2161
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2162
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubAnalyticsApi.getMostLikedClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2163
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2164
|
-
});
|
|
2165
|
-
},
|
|
2166
|
-
/**
|
|
2167
|
-
* Récupère les clubs populaires
|
|
2168
|
-
* @param {*} [options] Override http request option.
|
|
2169
|
-
* @throws {RequiredError}
|
|
2170
|
-
*/
|
|
2171
|
-
getPopularClubs(options) {
|
|
2172
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
2173
|
-
var _a, _b, _c;
|
|
2174
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getPopularClubs(options);
|
|
2175
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2176
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubAnalyticsApi.getPopularClubs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2177
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2178
|
-
});
|
|
2179
|
-
},
|
|
2180
|
-
};
|
|
2181
|
-
};
|
|
2182
|
-
/**
|
|
2183
|
-
* ClubAnalyticsApi - factory interface
|
|
2184
|
-
* @export
|
|
2185
|
-
*/
|
|
2186
|
-
export const ClubAnalyticsApiFactory = function (configuration, basePath, axios) {
|
|
2187
|
-
const localVarFp = ClubAnalyticsApiFp(configuration);
|
|
2188
|
-
return {
|
|
2189
|
-
/**
|
|
2190
|
-
* Récupère les clubs les plus aimés
|
|
2191
|
-
* @param {*} [options] Override http request option.
|
|
2192
|
-
* @throws {RequiredError}
|
|
2193
|
-
*/
|
|
2194
|
-
getMostLikedClub(options) {
|
|
2195
|
-
return localVarFp.getMostLikedClub(options).then((request) => request(axios, basePath));
|
|
2196
|
-
},
|
|
2197
|
-
/**
|
|
2198
|
-
* Récupère les clubs populaires
|
|
2199
|
-
* @param {*} [options] Override http request option.
|
|
2200
|
-
* @throws {RequiredError}
|
|
2201
|
-
*/
|
|
2202
|
-
getPopularClubs(options) {
|
|
2203
|
-
return localVarFp.getPopularClubs(options).then((request) => request(axios, basePath));
|
|
2204
|
-
},
|
|
2205
|
-
};
|
|
2206
|
-
};
|
|
2207
|
-
/**
|
|
2208
|
-
* ClubAnalyticsApi - object-oriented interface
|
|
2209
|
-
* @export
|
|
2210
|
-
* @class ClubAnalyticsApi
|
|
2211
|
-
* @extends {BaseAPI}
|
|
2212
|
-
*/
|
|
2213
|
-
export class ClubAnalyticsApi extends BaseAPI {
|
|
2214
|
-
/**
|
|
2215
|
-
* Récupère les clubs les plus aimés
|
|
2216
|
-
* @param {*} [options] Override http request option.
|
|
2217
|
-
* @throws {RequiredError}
|
|
2218
|
-
* @memberof ClubAnalyticsApi
|
|
2219
|
-
*/
|
|
2220
|
-
getMostLikedClub(options) {
|
|
2221
|
-
return ClubAnalyticsApiFp(this.configuration).getMostLikedClub(options).then((request) => request(this.axios, this.basePath));
|
|
2222
|
-
}
|
|
2223
|
-
/**
|
|
2224
|
-
* Récupère les clubs populaires
|
|
2225
|
-
* @param {*} [options] Override http request option.
|
|
2226
|
-
* @throws {RequiredError}
|
|
2227
|
-
* @memberof ClubAnalyticsApi
|
|
2228
|
-
*/
|
|
2229
|
-
getPopularClubs(options) {
|
|
2230
|
-
return ClubAnalyticsApiFp(this.configuration).getPopularClubs(options).then((request) => request(this.axios, this.basePath));
|
|
2231
|
-
}
|
|
2232
|
-
}
|
|
2233
|
-
/**
|
|
2234
|
-
* ClubAnalyticsStaffApi - axios parameter creator
|
|
2235
|
-
* @export
|
|
2236
|
-
*/
|
|
2237
|
-
export const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration) {
|
|
2238
|
-
return {
|
|
2239
|
-
/**
|
|
2240
|
-
* Récupère les analytics par sport
|
|
2241
|
-
* @param {string} sportId
|
|
2242
|
-
* @param {*} [options] Override http request option.
|
|
2243
|
-
* @throws {RequiredError}
|
|
2244
|
-
*/
|
|
2245
|
-
getAnalyticsBySport: (sportId_1, ...args_1) => __awaiter(this, [sportId_1, ...args_1], void 0, function* (sportId, options = {}) {
|
|
2246
|
-
// verify required parameter 'sportId' is not null or undefined
|
|
2247
|
-
assertParamExists('getAnalyticsBySport', 'sportId', sportId);
|
|
2248
|
-
const localVarPath = `/api/club-analytics/sport/{sportId}/analytics`
|
|
2249
|
-
.replace(`{${"sportId"}}`, encodeURIComponent(String(sportId)));
|
|
2250
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2251
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2252
|
-
let baseOptions;
|
|
2253
|
-
if (configuration) {
|
|
2254
|
-
baseOptions = configuration.baseOptions;
|
|
2255
|
-
}
|
|
2256
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2257
|
-
const localVarHeaderParameter = {};
|
|
2258
|
-
const localVarQueryParameter = {};
|
|
2259
|
-
// authentication bearerAuth required
|
|
2260
|
-
// http bearer authentication required
|
|
2261
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2262
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2263
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2264
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2265
|
-
return {
|
|
2266
|
-
url: toPathString(localVarUrlObj),
|
|
2267
|
-
options: localVarRequestOptions,
|
|
2268
|
-
};
|
|
2269
|
-
}),
|
|
2270
|
-
/**
|
|
2271
|
-
* Récupère les réservations d\'un joueur par son ID (à venir et passées)
|
|
2272
|
-
* @param {string} playerId
|
|
2273
|
-
* @param {number} [page]
|
|
2274
|
-
* @param {number} [pageSize]
|
|
2275
|
-
* @param {*} [options] Override http request option.
|
|
2276
|
-
* @throws {RequiredError}
|
|
2277
|
-
*/
|
|
2278
|
-
getClubPlayerBookingsById: (playerId_1, page_1, pageSize_1, ...args_1) => __awaiter(this, [playerId_1, page_1, pageSize_1, ...args_1], void 0, function* (playerId, page, pageSize, options = {}) {
|
|
2279
|
-
// verify required parameter 'playerId' is not null or undefined
|
|
2280
|
-
assertParamExists('getClubPlayerBookingsById', 'playerId', playerId);
|
|
2281
|
-
const localVarPath = `/api/club-analytics/players/{playerId}/bookings`
|
|
2282
|
-
.replace(`{${"playerId"}}`, encodeURIComponent(String(playerId)));
|
|
2283
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2284
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2285
|
-
let baseOptions;
|
|
2286
|
-
if (configuration) {
|
|
2287
|
-
baseOptions = configuration.baseOptions;
|
|
2288
|
-
}
|
|
2289
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2290
|
-
const localVarHeaderParameter = {};
|
|
2291
|
-
const localVarQueryParameter = {};
|
|
2292
|
-
// authentication bearerAuth required
|
|
2293
|
-
// http bearer authentication required
|
|
2294
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2295
|
-
if (page !== undefined) {
|
|
2296
|
-
localVarQueryParameter['page'] = page;
|
|
2297
|
-
}
|
|
2298
|
-
if (pageSize !== undefined) {
|
|
2299
|
-
localVarQueryParameter['pageSize'] = pageSize;
|
|
2300
|
-
}
|
|
2301
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2302
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2303
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2304
|
-
return {
|
|
2305
|
-
url: toPathString(localVarUrlObj),
|
|
2306
|
-
options: localVarRequestOptions,
|
|
2307
|
-
};
|
|
2308
|
-
}),
|
|
2309
|
-
/**
|
|
2310
|
-
* Récupère les informations détaillées d\'un joueur par son ID
|
|
2311
|
-
* @param {string} playerId
|
|
2312
|
-
* @param {*} [options] Override http request option.
|
|
2313
|
-
* @throws {RequiredError}
|
|
2314
|
-
*/
|
|
2315
|
-
getClubPlayerById: (playerId_1, ...args_1) => __awaiter(this, [playerId_1, ...args_1], void 0, function* (playerId, options = {}) {
|
|
2316
|
-
// verify required parameter 'playerId' is not null or undefined
|
|
2317
|
-
assertParamExists('getClubPlayerById', 'playerId', playerId);
|
|
2318
|
-
const localVarPath = `/api/club-analytics/players/{playerId}`
|
|
2319
|
-
.replace(`{${"playerId"}}`, encodeURIComponent(String(playerId)));
|
|
2320
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2321
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2322
|
-
let baseOptions;
|
|
2323
|
-
if (configuration) {
|
|
2324
|
-
baseOptions = configuration.baseOptions;
|
|
2325
|
-
}
|
|
2326
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2327
|
-
const localVarHeaderParameter = {};
|
|
2328
|
-
const localVarQueryParameter = {};
|
|
2329
|
-
// authentication bearerAuth required
|
|
2330
|
-
// http bearer authentication required
|
|
2331
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2332
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2333
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2334
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2335
|
-
return {
|
|
2336
|
-
url: toPathString(localVarUrlObj),
|
|
2337
|
-
options: localVarRequestOptions,
|
|
2338
|
-
};
|
|
2339
|
-
}),
|
|
2340
|
-
/**
|
|
2341
|
-
* Récupère les statistiques d\'un joueur pour le staff
|
|
2342
|
-
* @param {string} playerId
|
|
2343
|
-
* @param {*} [options] Override http request option.
|
|
2344
|
-
* @throws {RequiredError}
|
|
2345
|
-
*/
|
|
2346
|
-
getClubPlayerStatisticsById: (playerId_1, ...args_1) => __awaiter(this, [playerId_1, ...args_1], void 0, function* (playerId, options = {}) {
|
|
2347
|
-
// verify required parameter 'playerId' is not null or undefined
|
|
2348
|
-
assertParamExists('getClubPlayerStatisticsById', 'playerId', playerId);
|
|
2349
|
-
const localVarPath = `/api/club-analytics/players/{playerId}/statistics`
|
|
2350
|
-
.replace(`{${"playerId"}}`, encodeURIComponent(String(playerId)));
|
|
2351
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2352
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2353
|
-
let baseOptions;
|
|
2354
|
-
if (configuration) {
|
|
2355
|
-
baseOptions = configuration.baseOptions;
|
|
2356
|
-
}
|
|
2357
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2358
|
-
const localVarHeaderParameter = {};
|
|
2359
|
-
const localVarQueryParameter = {};
|
|
2360
|
-
// authentication bearerAuth required
|
|
2361
|
-
// http bearer authentication required
|
|
2362
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2363
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2364
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2365
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2366
|
-
return {
|
|
2367
|
-
url: toPathString(localVarUrlObj),
|
|
2368
|
-
options: localVarRequestOptions,
|
|
2369
|
-
};
|
|
2370
|
-
}),
|
|
2371
|
-
/**
|
|
2372
|
-
* Récupère la liste des joueurs du club
|
|
2373
|
-
* @param {*} [options] Override http request option.
|
|
2374
|
-
* @throws {RequiredError}
|
|
2375
|
-
*/
|
|
2376
|
-
getClubPlayers: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
2377
|
-
const localVarPath = `/api/club-analytics/players`;
|
|
2378
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2379
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2380
|
-
let baseOptions;
|
|
2381
|
-
if (configuration) {
|
|
2382
|
-
baseOptions = configuration.baseOptions;
|
|
2383
|
-
}
|
|
2384
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2385
|
-
const localVarHeaderParameter = {};
|
|
2386
|
-
const localVarQueryParameter = {};
|
|
2387
|
-
// authentication bearerAuth required
|
|
2388
|
-
// http bearer authentication required
|
|
2389
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2390
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2391
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2392
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2393
|
-
return {
|
|
2394
|
-
url: toPathString(localVarUrlObj),
|
|
2395
|
-
options: localVarRequestOptions,
|
|
2396
|
-
};
|
|
2397
|
-
}),
|
|
2398
|
-
/**
|
|
2399
|
-
* Récupère le chiffre d\'affaires quotidien
|
|
2400
|
-
* @param {string} date
|
|
2401
|
-
* @param {*} [options] Override http request option.
|
|
2402
|
-
* @throws {RequiredError}
|
|
2403
|
-
*/
|
|
2404
|
-
getDailyTurnOver: (date_1, ...args_1) => __awaiter(this, [date_1, ...args_1], void 0, function* (date, options = {}) {
|
|
2405
|
-
// verify required parameter 'date' is not null or undefined
|
|
2406
|
-
assertParamExists('getDailyTurnOver', 'date', date);
|
|
2407
|
-
const localVarPath = `/api/club-analytics/daily-turnover`;
|
|
2408
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2409
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2410
|
-
let baseOptions;
|
|
2411
|
-
if (configuration) {
|
|
2412
|
-
baseOptions = configuration.baseOptions;
|
|
2413
|
-
}
|
|
2414
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2415
|
-
const localVarHeaderParameter = {};
|
|
2416
|
-
const localVarQueryParameter = {};
|
|
2417
|
-
// authentication bearerAuth required
|
|
2418
|
-
// http bearer authentication required
|
|
2419
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2420
|
-
if (date !== undefined) {
|
|
2421
|
-
localVarQueryParameter['date'] = date;
|
|
2422
|
-
}
|
|
2423
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2424
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2425
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2426
|
-
return {
|
|
2427
|
-
url: toPathString(localVarUrlObj),
|
|
2428
|
-
options: localVarRequestOptions,
|
|
2429
|
-
};
|
|
2430
|
-
}),
|
|
2431
|
-
/**
|
|
2432
|
-
* Récupère les pourcentages par genre
|
|
2433
|
-
* @param {*} [options] Override http request option.
|
|
2434
|
-
* @throws {RequiredError}
|
|
2435
|
-
*/
|
|
2436
|
-
getGenderPercentage: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
2437
|
-
const localVarPath = `/api/club-analytics/gender-percentage`;
|
|
2438
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2439
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2440
|
-
let baseOptions;
|
|
2441
|
-
if (configuration) {
|
|
2442
|
-
baseOptions = configuration.baseOptions;
|
|
2443
|
-
}
|
|
2444
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2445
|
-
const localVarHeaderParameter = {};
|
|
2446
|
-
const localVarQueryParameter = {};
|
|
2447
|
-
// authentication bearerAuth required
|
|
2448
|
-
// http bearer authentication required
|
|
2449
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2450
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2451
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2452
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2453
|
-
return {
|
|
2454
|
-
url: toPathString(localVarUrlObj),
|
|
2455
|
-
options: localVarRequestOptions,
|
|
2456
|
-
};
|
|
2457
|
-
}),
|
|
1968
|
+
getGenderPercentage: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
1969
|
+
const localVarPath = `/api/club-analytics/gender-percentage`;
|
|
1970
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1971
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1972
|
+
let baseOptions;
|
|
1973
|
+
if (configuration) {
|
|
1974
|
+
baseOptions = configuration.baseOptions;
|
|
1975
|
+
}
|
|
1976
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1977
|
+
const localVarHeaderParameter = {};
|
|
1978
|
+
const localVarQueryParameter = {};
|
|
1979
|
+
// authentication bearerAuth required
|
|
1980
|
+
// http bearer authentication required
|
|
1981
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1982
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1983
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1984
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1985
|
+
return {
|
|
1986
|
+
url: toPathString(localVarUrlObj),
|
|
1987
|
+
options: localVarRequestOptions,
|
|
1988
|
+
};
|
|
1989
|
+
}),
|
|
2458
1990
|
/**
|
|
2459
1991
|
* Récupère le taux de remplissage (infill) pour une période donnée
|
|
2460
1992
|
* @param {string} [startDate]
|
|
@@ -5358,37 +4890,6 @@ export const ClubsManagerApiAxiosParamCreator = function (configuration) {
|
|
|
5358
4890
|
options: localVarRequestOptions,
|
|
5359
4891
|
};
|
|
5360
4892
|
}),
|
|
5361
|
-
/**
|
|
5362
|
-
* Supprime un membre d\'un club
|
|
5363
|
-
* @param {string} userId
|
|
5364
|
-
* @param {*} [options] Override http request option.
|
|
5365
|
-
* @throws {RequiredError}
|
|
5366
|
-
*/
|
|
5367
|
-
deleteClubMember: (userId_1, ...args_1) => __awaiter(this, [userId_1, ...args_1], void 0, function* (userId, options = {}) {
|
|
5368
|
-
// verify required parameter 'userId' is not null or undefined
|
|
5369
|
-
assertParamExists('deleteClubMember', 'userId', userId);
|
|
5370
|
-
const localVarPath = `/api/clubs/members/{userId}`
|
|
5371
|
-
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
|
5372
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5373
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5374
|
-
let baseOptions;
|
|
5375
|
-
if (configuration) {
|
|
5376
|
-
baseOptions = configuration.baseOptions;
|
|
5377
|
-
}
|
|
5378
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
5379
|
-
const localVarHeaderParameter = {};
|
|
5380
|
-
const localVarQueryParameter = {};
|
|
5381
|
-
// authentication bearerAuth required
|
|
5382
|
-
// http bearer authentication required
|
|
5383
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
5384
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5385
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5386
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5387
|
-
return {
|
|
5388
|
-
url: toPathString(localVarUrlObj),
|
|
5389
|
-
options: localVarRequestOptions,
|
|
5390
|
-
};
|
|
5391
|
-
}),
|
|
5392
4893
|
/**
|
|
5393
4894
|
* Supprime un terrain et ses créneaux futurs
|
|
5394
4895
|
* @param {string} courtId
|
|
@@ -5926,21 +5427,6 @@ export const ClubsManagerApiFp = function (configuration) {
|
|
|
5926
5427
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5927
5428
|
});
|
|
5928
5429
|
},
|
|
5929
|
-
/**
|
|
5930
|
-
* Supprime un membre d\'un club
|
|
5931
|
-
* @param {string} userId
|
|
5932
|
-
* @param {*} [options] Override http request option.
|
|
5933
|
-
* @throws {RequiredError}
|
|
5934
|
-
*/
|
|
5935
|
-
deleteClubMember(userId, options) {
|
|
5936
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
5937
|
-
var _a, _b, _c;
|
|
5938
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteClubMember(userId, options);
|
|
5939
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5940
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubsManagerApi.deleteClubMember']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5941
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5942
|
-
});
|
|
5943
|
-
},
|
|
5944
5430
|
/**
|
|
5945
5431
|
* Supprime un terrain et ses créneaux futurs
|
|
5946
5432
|
* @param {string} courtId
|
|
@@ -6211,15 +5697,6 @@ export const ClubsManagerApiFactory = function (configuration, basePath, axios)
|
|
|
6211
5697
|
deleteActuality(requestParameters, options) {
|
|
6212
5698
|
return localVarFp.deleteActuality(requestParameters.actualityId, options).then((request) => request(axios, basePath));
|
|
6213
5699
|
},
|
|
6214
|
-
/**
|
|
6215
|
-
* Supprime un membre d\'un club
|
|
6216
|
-
* @param {ClubsManagerApiDeleteClubMemberRequest} requestParameters Request parameters.
|
|
6217
|
-
* @param {*} [options] Override http request option.
|
|
6218
|
-
* @throws {RequiredError}
|
|
6219
|
-
*/
|
|
6220
|
-
deleteClubMember(requestParameters, options) {
|
|
6221
|
-
return localVarFp.deleteClubMember(requestParameters.userId, options).then((request) => request(axios, basePath));
|
|
6222
|
-
},
|
|
6223
5700
|
/**
|
|
6224
5701
|
* Supprime un terrain et ses créneaux futurs
|
|
6225
5702
|
* @param {ClubsManagerApiDeleteCourtRequest} requestParameters Request parameters.
|
|
@@ -6415,16 +5892,6 @@ export class ClubsManagerApi extends BaseAPI {
|
|
|
6415
5892
|
deleteActuality(requestParameters, options) {
|
|
6416
5893
|
return ClubsManagerApiFp(this.configuration).deleteActuality(requestParameters.actualityId, options).then((request) => request(this.axios, this.basePath));
|
|
6417
5894
|
}
|
|
6418
|
-
/**
|
|
6419
|
-
* Supprime un membre d\'un club
|
|
6420
|
-
* @param {ClubsManagerApiDeleteClubMemberRequest} requestParameters Request parameters.
|
|
6421
|
-
* @param {*} [options] Override http request option.
|
|
6422
|
-
* @throws {RequiredError}
|
|
6423
|
-
* @memberof ClubsManagerApi
|
|
6424
|
-
*/
|
|
6425
|
-
deleteClubMember(requestParameters, options) {
|
|
6426
|
-
return ClubsManagerApiFp(this.configuration).deleteClubMember(requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
|
|
6427
|
-
}
|
|
6428
5895
|
/**
|
|
6429
5896
|
* Supprime un terrain et ses créneaux futurs
|
|
6430
5897
|
* @param {ClubsManagerApiDeleteCourtRequest} requestParameters Request parameters.
|
|
@@ -6562,27 +6029,36 @@ export class ClubsManagerApi extends BaseAPI {
|
|
|
6562
6029
|
export const ClubsStaffApiAxiosParamCreator = function (configuration) {
|
|
6563
6030
|
return {
|
|
6564
6031
|
/**
|
|
6565
|
-
*
|
|
6032
|
+
* Crée une facture manuelle (on-site) et l\'associe à une réservation
|
|
6033
|
+
* @param {string} bookingId
|
|
6034
|
+
* @param {CreateOnsiteInvoiceRequest} createOnsiteInvoiceRequest
|
|
6566
6035
|
* @param {*} [options] Override http request option.
|
|
6567
6036
|
* @throws {RequiredError}
|
|
6568
6037
|
*/
|
|
6569
|
-
|
|
6570
|
-
|
|
6038
|
+
createOnsiteInvoiceForBooking: (bookingId_1, createOnsiteInvoiceRequest_1, ...args_1) => __awaiter(this, [bookingId_1, createOnsiteInvoiceRequest_1, ...args_1], void 0, function* (bookingId, createOnsiteInvoiceRequest, options = {}) {
|
|
6039
|
+
// verify required parameter 'bookingId' is not null or undefined
|
|
6040
|
+
assertParamExists('createOnsiteInvoiceForBooking', 'bookingId', bookingId);
|
|
6041
|
+
// verify required parameter 'createOnsiteInvoiceRequest' is not null or undefined
|
|
6042
|
+
assertParamExists('createOnsiteInvoiceForBooking', 'createOnsiteInvoiceRequest', createOnsiteInvoiceRequest);
|
|
6043
|
+
const localVarPath = `/api/clubs/staff/bookings/{bookingId}/invoices`
|
|
6044
|
+
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
6571
6045
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6572
6046
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6573
6047
|
let baseOptions;
|
|
6574
6048
|
if (configuration) {
|
|
6575
6049
|
baseOptions = configuration.baseOptions;
|
|
6576
6050
|
}
|
|
6577
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
6051
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
6578
6052
|
const localVarHeaderParameter = {};
|
|
6579
6053
|
const localVarQueryParameter = {};
|
|
6580
6054
|
// authentication bearerAuth required
|
|
6581
6055
|
// http bearer authentication required
|
|
6582
6056
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
6057
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6583
6058
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6584
6059
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6585
6060
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6061
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createOnsiteInvoiceRequest, localVarRequestOptions, configuration);
|
|
6586
6062
|
return {
|
|
6587
6063
|
url: toPathString(localVarUrlObj),
|
|
6588
6064
|
options: localVarRequestOptions,
|
|
@@ -6593,8 +6069,8 @@ export const ClubsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
6593
6069
|
* @param {*} [options] Override http request option.
|
|
6594
6070
|
* @throws {RequiredError}
|
|
6595
6071
|
*/
|
|
6596
|
-
|
|
6597
|
-
const localVarPath = `/api/clubs/
|
|
6072
|
+
getActualities: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
6073
|
+
const localVarPath = `/api/clubs/staff/actualities`;
|
|
6598
6074
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6599
6075
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6600
6076
|
let baseOptions;
|
|
@@ -6616,12 +6092,12 @@ export const ClubsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
6616
6092
|
};
|
|
6617
6093
|
}),
|
|
6618
6094
|
/**
|
|
6619
|
-
*
|
|
6095
|
+
*
|
|
6620
6096
|
* @param {*} [options] Override http request option.
|
|
6621
6097
|
* @throws {RequiredError}
|
|
6622
6098
|
*/
|
|
6623
|
-
|
|
6624
|
-
const localVarPath = `/api/clubs/
|
|
6099
|
+
getClubInfos: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
6100
|
+
const localVarPath = `/api/clubs/infos`;
|
|
6625
6101
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6626
6102
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6627
6103
|
let baseOptions;
|
|
@@ -6643,12 +6119,12 @@ export const ClubsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
6643
6119
|
};
|
|
6644
6120
|
}),
|
|
6645
6121
|
/**
|
|
6646
|
-
*
|
|
6122
|
+
* Récupère les membres d\'un club
|
|
6647
6123
|
* @param {*} [options] Override http request option.
|
|
6648
6124
|
* @throws {RequiredError}
|
|
6649
6125
|
*/
|
|
6650
|
-
|
|
6651
|
-
const localVarPath = `/api/clubs/
|
|
6126
|
+
getClubMembers: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
6127
|
+
const localVarPath = `/api/clubs/members`;
|
|
6652
6128
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6653
6129
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6654
6130
|
let baseOptions;
|
|
@@ -6670,12 +6146,12 @@ export const ClubsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
6670
6146
|
};
|
|
6671
6147
|
}),
|
|
6672
6148
|
/**
|
|
6673
|
-
*
|
|
6149
|
+
*
|
|
6674
6150
|
* @param {*} [options] Override http request option.
|
|
6675
6151
|
* @throws {RequiredError}
|
|
6676
6152
|
*/
|
|
6677
|
-
|
|
6678
|
-
const localVarPath = `/api/clubs/
|
|
6153
|
+
getClubPresentationSettings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
6154
|
+
const localVarPath = `/api/clubs/settings/presentation`;
|
|
6679
6155
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6680
6156
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6681
6157
|
let baseOptions;
|
|
@@ -6697,12 +6173,12 @@ export const ClubsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
6697
6173
|
};
|
|
6698
6174
|
}),
|
|
6699
6175
|
/**
|
|
6700
|
-
* Récupère les
|
|
6176
|
+
* Récupère les rôles d\'un club
|
|
6701
6177
|
* @param {*} [options] Override http request option.
|
|
6702
6178
|
* @throws {RequiredError}
|
|
6703
6179
|
*/
|
|
6704
|
-
|
|
6705
|
-
const localVarPath = `/api/clubs/
|
|
6180
|
+
getClubRoles: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
6181
|
+
const localVarPath = `/api/clubs/roles`;
|
|
6706
6182
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6707
6183
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6708
6184
|
let baseOptions;
|
|
@@ -6724,12 +6200,12 @@ export const ClubsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
6724
6200
|
};
|
|
6725
6201
|
}),
|
|
6726
6202
|
/**
|
|
6727
|
-
*
|
|
6203
|
+
* Récupère les terrains d\'un club
|
|
6728
6204
|
* @param {*} [options] Override http request option.
|
|
6729
6205
|
* @throws {RequiredError}
|
|
6730
6206
|
*/
|
|
6731
|
-
|
|
6732
|
-
const localVarPath = `/api/clubs/
|
|
6207
|
+
getCourtsByClub: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
6208
|
+
const localVarPath = `/api/clubs/courts`;
|
|
6733
6209
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6734
6210
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6735
6211
|
let baseOptions;
|
|
@@ -6752,15 +6228,11 @@ export const ClubsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
6752
6228
|
}),
|
|
6753
6229
|
/**
|
|
6754
6230
|
*
|
|
6755
|
-
* @param {string} id
|
|
6756
6231
|
* @param {*} [options] Override http request option.
|
|
6757
6232
|
* @throws {RequiredError}
|
|
6758
6233
|
*/
|
|
6759
|
-
|
|
6760
|
-
|
|
6761
|
-
assertParamExists('getUserProfileStaff', 'id', id);
|
|
6762
|
-
const localVarPath = `/api/clubs/staff/profile/{id}`
|
|
6763
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
6234
|
+
getInvoices: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
6235
|
+
const localVarPath = `/api/clubs/invoices`;
|
|
6764
6236
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6765
6237
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6766
6238
|
let baseOptions;
|
|
@@ -6784,16 +6256,13 @@ export const ClubsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
6784
6256
|
/**
|
|
6785
6257
|
*
|
|
6786
6258
|
* @param {string} id
|
|
6787
|
-
* @param {UpdateUserCreditsRequest} updateUserCreditsRequest
|
|
6788
6259
|
* @param {*} [options] Override http request option.
|
|
6789
6260
|
* @throws {RequiredError}
|
|
6790
6261
|
*/
|
|
6791
|
-
|
|
6262
|
+
getUserProfileStaff: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
6792
6263
|
// verify required parameter 'id' is not null or undefined
|
|
6793
|
-
assertParamExists('
|
|
6794
|
-
|
|
6795
|
-
assertParamExists('updateUserCreditsStaff', 'updateUserCreditsRequest', updateUserCreditsRequest);
|
|
6796
|
-
const localVarPath = `/api/clubs/staff/user-credits/{id}`
|
|
6264
|
+
assertParamExists('getUserProfileStaff', 'id', id);
|
|
6265
|
+
const localVarPath = `/api/clubs/staff/profile/{id}`
|
|
6797
6266
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
6798
6267
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6799
6268
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -6801,17 +6270,15 @@ export const ClubsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
6801
6270
|
if (configuration) {
|
|
6802
6271
|
baseOptions = configuration.baseOptions;
|
|
6803
6272
|
}
|
|
6804
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
6273
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
6805
6274
|
const localVarHeaderParameter = {};
|
|
6806
6275
|
const localVarQueryParameter = {};
|
|
6807
6276
|
// authentication bearerAuth required
|
|
6808
6277
|
// http bearer authentication required
|
|
6809
6278
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
6810
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6811
6279
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6812
6280
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6813
6281
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6814
|
-
localVarRequestOptions.data = serializeDataIfNeeded(updateUserCreditsRequest, localVarRequestOptions, configuration);
|
|
6815
6282
|
return {
|
|
6816
6283
|
url: toPathString(localVarUrlObj),
|
|
6817
6284
|
options: localVarRequestOptions,
|
|
@@ -6826,6 +6293,22 @@ export const ClubsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
6826
6293
|
export const ClubsStaffApiFp = function (configuration) {
|
|
6827
6294
|
const localVarAxiosParamCreator = ClubsStaffApiAxiosParamCreator(configuration);
|
|
6828
6295
|
return {
|
|
6296
|
+
/**
|
|
6297
|
+
* Crée une facture manuelle (on-site) et l\'associe à une réservation
|
|
6298
|
+
* @param {string} bookingId
|
|
6299
|
+
* @param {CreateOnsiteInvoiceRequest} createOnsiteInvoiceRequest
|
|
6300
|
+
* @param {*} [options] Override http request option.
|
|
6301
|
+
* @throws {RequiredError}
|
|
6302
|
+
*/
|
|
6303
|
+
createOnsiteInvoiceForBooking(bookingId, createOnsiteInvoiceRequest, options) {
|
|
6304
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6305
|
+
var _a, _b, _c;
|
|
6306
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createOnsiteInvoiceForBooking(bookingId, createOnsiteInvoiceRequest, options);
|
|
6307
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
6308
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubsStaffApi.createOnsiteInvoiceForBooking']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
6309
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6310
|
+
});
|
|
6311
|
+
},
|
|
6829
6312
|
/**
|
|
6830
6313
|
*
|
|
6831
6314
|
* @param {*} [options] Override http request option.
|
|
@@ -6939,22 +6422,6 @@ export const ClubsStaffApiFp = function (configuration) {
|
|
|
6939
6422
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6940
6423
|
});
|
|
6941
6424
|
},
|
|
6942
|
-
/**
|
|
6943
|
-
*
|
|
6944
|
-
* @param {string} id
|
|
6945
|
-
* @param {UpdateUserCreditsRequest} updateUserCreditsRequest
|
|
6946
|
-
* @param {*} [options] Override http request option.
|
|
6947
|
-
* @throws {RequiredError}
|
|
6948
|
-
*/
|
|
6949
|
-
updateUserCreditsStaff(id, updateUserCreditsRequest, options) {
|
|
6950
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
6951
|
-
var _a, _b, _c;
|
|
6952
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateUserCreditsStaff(id, updateUserCreditsRequest, options);
|
|
6953
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
6954
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubsStaffApi.updateUserCreditsStaff']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
6955
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6956
|
-
});
|
|
6957
|
-
},
|
|
6958
6425
|
};
|
|
6959
6426
|
};
|
|
6960
6427
|
/**
|
|
@@ -6964,6 +6431,15 @@ export const ClubsStaffApiFp = function (configuration) {
|
|
|
6964
6431
|
export const ClubsStaffApiFactory = function (configuration, basePath, axios) {
|
|
6965
6432
|
const localVarFp = ClubsStaffApiFp(configuration);
|
|
6966
6433
|
return {
|
|
6434
|
+
/**
|
|
6435
|
+
* Crée une facture manuelle (on-site) et l\'associe à une réservation
|
|
6436
|
+
* @param {ClubsStaffApiCreateOnsiteInvoiceForBookingRequest} requestParameters Request parameters.
|
|
6437
|
+
* @param {*} [options] Override http request option.
|
|
6438
|
+
* @throws {RequiredError}
|
|
6439
|
+
*/
|
|
6440
|
+
createOnsiteInvoiceForBooking(requestParameters, options) {
|
|
6441
|
+
return localVarFp.createOnsiteInvoiceForBooking(requestParameters.bookingId, requestParameters.createOnsiteInvoiceRequest, options).then((request) => request(axios, basePath));
|
|
6442
|
+
},
|
|
6967
6443
|
/**
|
|
6968
6444
|
*
|
|
6969
6445
|
* @param {*} [options] Override http request option.
|
|
@@ -7029,15 +6505,6 @@ export const ClubsStaffApiFactory = function (configuration, basePath, axios) {
|
|
|
7029
6505
|
getUserProfileStaff(requestParameters, options) {
|
|
7030
6506
|
return localVarFp.getUserProfileStaff(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
7031
6507
|
},
|
|
7032
|
-
/**
|
|
7033
|
-
*
|
|
7034
|
-
* @param {ClubsStaffApiUpdateUserCreditsStaffRequest} requestParameters Request parameters.
|
|
7035
|
-
* @param {*} [options] Override http request option.
|
|
7036
|
-
* @throws {RequiredError}
|
|
7037
|
-
*/
|
|
7038
|
-
updateUserCreditsStaff(requestParameters, options) {
|
|
7039
|
-
return localVarFp.updateUserCreditsStaff(requestParameters.id, requestParameters.updateUserCreditsRequest, options).then((request) => request(axios, basePath));
|
|
7040
|
-
},
|
|
7041
6508
|
};
|
|
7042
6509
|
};
|
|
7043
6510
|
/**
|
|
@@ -7047,6 +6514,16 @@ export const ClubsStaffApiFactory = function (configuration, basePath, axios) {
|
|
|
7047
6514
|
* @extends {BaseAPI}
|
|
7048
6515
|
*/
|
|
7049
6516
|
export class ClubsStaffApi extends BaseAPI {
|
|
6517
|
+
/**
|
|
6518
|
+
* Crée une facture manuelle (on-site) et l\'associe à une réservation
|
|
6519
|
+
* @param {ClubsStaffApiCreateOnsiteInvoiceForBookingRequest} requestParameters Request parameters.
|
|
6520
|
+
* @param {*} [options] Override http request option.
|
|
6521
|
+
* @throws {RequiredError}
|
|
6522
|
+
* @memberof ClubsStaffApi
|
|
6523
|
+
*/
|
|
6524
|
+
createOnsiteInvoiceForBooking(requestParameters, options) {
|
|
6525
|
+
return ClubsStaffApiFp(this.configuration).createOnsiteInvoiceForBooking(requestParameters.bookingId, requestParameters.createOnsiteInvoiceRequest, options).then((request) => request(this.axios, this.basePath));
|
|
6526
|
+
}
|
|
7050
6527
|
/**
|
|
7051
6528
|
*
|
|
7052
6529
|
* @param {*} [options] Override http request option.
|
|
@@ -7120,16 +6597,6 @@ export class ClubsStaffApi extends BaseAPI {
|
|
|
7120
6597
|
getUserProfileStaff(requestParameters, options) {
|
|
7121
6598
|
return ClubsStaffApiFp(this.configuration).getUserProfileStaff(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
7122
6599
|
}
|
|
7123
|
-
/**
|
|
7124
|
-
*
|
|
7125
|
-
* @param {ClubsStaffApiUpdateUserCreditsStaffRequest} requestParameters Request parameters.
|
|
7126
|
-
* @param {*} [options] Override http request option.
|
|
7127
|
-
* @throws {RequiredError}
|
|
7128
|
-
* @memberof ClubsStaffApi
|
|
7129
|
-
*/
|
|
7130
|
-
updateUserCreditsStaff(requestParameters, options) {
|
|
7131
|
-
return ClubsStaffApiFp(this.configuration).updateUserCreditsStaff(requestParameters.id, requestParameters.updateUserCreditsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
7132
|
-
}
|
|
7133
6600
|
}
|
|
7134
6601
|
/**
|
|
7135
6602
|
* DefaultApi - axios parameter creator
|
|
@@ -7558,6 +7025,38 @@ export const GetPublishedEventsByClubIdTypeEnum = {
|
|
|
7558
7025
|
*/
|
|
7559
7026
|
export const EventsManagerApiAxiosParamCreator = function (configuration) {
|
|
7560
7027
|
return {
|
|
7028
|
+
/**
|
|
7029
|
+
* Check if there are bookings overlapping an event window (for create/update/delete)
|
|
7030
|
+
* @param {EventConflictCheckRequest} eventConflictCheckRequest
|
|
7031
|
+
* @param {*} [options] Override http request option.
|
|
7032
|
+
* @throws {RequiredError}
|
|
7033
|
+
*/
|
|
7034
|
+
checkEventConflicts: (eventConflictCheckRequest_1, ...args_1) => __awaiter(this, [eventConflictCheckRequest_1, ...args_1], void 0, function* (eventConflictCheckRequest, options = {}) {
|
|
7035
|
+
// verify required parameter 'eventConflictCheckRequest' is not null or undefined
|
|
7036
|
+
assertParamExists('checkEventConflicts', 'eventConflictCheckRequest', eventConflictCheckRequest);
|
|
7037
|
+
const localVarPath = `/api/events/manager/checkConflicts`;
|
|
7038
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7039
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7040
|
+
let baseOptions;
|
|
7041
|
+
if (configuration) {
|
|
7042
|
+
baseOptions = configuration.baseOptions;
|
|
7043
|
+
}
|
|
7044
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
7045
|
+
const localVarHeaderParameter = {};
|
|
7046
|
+
const localVarQueryParameter = {};
|
|
7047
|
+
// authentication bearerAuth required
|
|
7048
|
+
// http bearer authentication required
|
|
7049
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
7050
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
7051
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7052
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7053
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7054
|
+
localVarRequestOptions.data = serializeDataIfNeeded(eventConflictCheckRequest, localVarRequestOptions, configuration);
|
|
7055
|
+
return {
|
|
7056
|
+
url: toPathString(localVarUrlObj),
|
|
7057
|
+
options: localVarRequestOptions,
|
|
7058
|
+
};
|
|
7059
|
+
}),
|
|
7561
7060
|
/**
|
|
7562
7061
|
* Create a new event (manager)
|
|
7563
7062
|
* @param {CreateEventRequest} createEventRequest
|
|
@@ -7658,10 +7157,44 @@ export const EventsManagerApiAxiosParamCreator = function (configuration) {
|
|
|
7658
7157
|
* @param {*} [options] Override http request option.
|
|
7659
7158
|
* @throws {RequiredError}
|
|
7660
7159
|
*/
|
|
7661
|
-
unpublishEvent: (eventId_1, ...args_1) => __awaiter(this, [eventId_1, ...args_1], void 0, function* (eventId, options = {}) {
|
|
7160
|
+
unpublishEvent: (eventId_1, ...args_1) => __awaiter(this, [eventId_1, ...args_1], void 0, function* (eventId, options = {}) {
|
|
7161
|
+
// verify required parameter 'eventId' is not null or undefined
|
|
7162
|
+
assertParamExists('unpublishEvent', 'eventId', eventId);
|
|
7163
|
+
const localVarPath = `/api/events/manager/unpublishEvent/{eventId}`
|
|
7164
|
+
.replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
|
|
7165
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7166
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7167
|
+
let baseOptions;
|
|
7168
|
+
if (configuration) {
|
|
7169
|
+
baseOptions = configuration.baseOptions;
|
|
7170
|
+
}
|
|
7171
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
7172
|
+
const localVarHeaderParameter = {};
|
|
7173
|
+
const localVarQueryParameter = {};
|
|
7174
|
+
// authentication bearerAuth required
|
|
7175
|
+
// http bearer authentication required
|
|
7176
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
7177
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7178
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7179
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7180
|
+
return {
|
|
7181
|
+
url: toPathString(localVarUrlObj),
|
|
7182
|
+
options: localVarRequestOptions,
|
|
7183
|
+
};
|
|
7184
|
+
}),
|
|
7185
|
+
/**
|
|
7186
|
+
* Update an event (manager)
|
|
7187
|
+
* @param {string} eventId
|
|
7188
|
+
* @param {UpdateEventRequest} updateEventRequest
|
|
7189
|
+
* @param {*} [options] Override http request option.
|
|
7190
|
+
* @throws {RequiredError}
|
|
7191
|
+
*/
|
|
7192
|
+
updateEvent: (eventId_1, updateEventRequest_1, ...args_1) => __awaiter(this, [eventId_1, updateEventRequest_1, ...args_1], void 0, function* (eventId, updateEventRequest, options = {}) {
|
|
7662
7193
|
// verify required parameter 'eventId' is not null or undefined
|
|
7663
|
-
assertParamExists('
|
|
7664
|
-
|
|
7194
|
+
assertParamExists('updateEvent', 'eventId', eventId);
|
|
7195
|
+
// verify required parameter 'updateEventRequest' is not null or undefined
|
|
7196
|
+
assertParamExists('updateEvent', 'updateEventRequest', updateEventRequest);
|
|
7197
|
+
const localVarPath = `/api/events/manager/updateEvent/{eventId}`
|
|
7665
7198
|
.replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
|
|
7666
7199
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7667
7200
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -7675,27 +7208,29 @@ export const EventsManagerApiAxiosParamCreator = function (configuration) {
|
|
|
7675
7208
|
// authentication bearerAuth required
|
|
7676
7209
|
// http bearer authentication required
|
|
7677
7210
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
7211
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
7678
7212
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7679
7213
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7680
7214
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7215
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateEventRequest, localVarRequestOptions, configuration);
|
|
7681
7216
|
return {
|
|
7682
7217
|
url: toPathString(localVarUrlObj),
|
|
7683
7218
|
options: localVarRequestOptions,
|
|
7684
7219
|
};
|
|
7685
7220
|
}),
|
|
7686
7221
|
/**
|
|
7687
|
-
* Update
|
|
7222
|
+
* Update a published event (manager) and propagate slot changes and conflicts
|
|
7688
7223
|
* @param {string} eventId
|
|
7689
7224
|
* @param {UpdateEventRequest} updateEventRequest
|
|
7690
7225
|
* @param {*} [options] Override http request option.
|
|
7691
7226
|
* @throws {RequiredError}
|
|
7692
7227
|
*/
|
|
7693
|
-
|
|
7228
|
+
updatePublishedEvent: (eventId_1, updateEventRequest_1, ...args_1) => __awaiter(this, [eventId_1, updateEventRequest_1, ...args_1], void 0, function* (eventId, updateEventRequest, options = {}) {
|
|
7694
7229
|
// verify required parameter 'eventId' is not null or undefined
|
|
7695
|
-
assertParamExists('
|
|
7230
|
+
assertParamExists('updatePublishedEvent', 'eventId', eventId);
|
|
7696
7231
|
// verify required parameter 'updateEventRequest' is not null or undefined
|
|
7697
|
-
assertParamExists('
|
|
7698
|
-
const localVarPath = `/api/events/manager/
|
|
7232
|
+
assertParamExists('updatePublishedEvent', 'updateEventRequest', updateEventRequest);
|
|
7233
|
+
const localVarPath = `/api/events/manager/updatePublishedEvent/{eventId}`
|
|
7699
7234
|
.replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
|
|
7700
7235
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7701
7236
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -7728,6 +7263,21 @@ export const EventsManagerApiAxiosParamCreator = function (configuration) {
|
|
|
7728
7263
|
export const EventsManagerApiFp = function (configuration) {
|
|
7729
7264
|
const localVarAxiosParamCreator = EventsManagerApiAxiosParamCreator(configuration);
|
|
7730
7265
|
return {
|
|
7266
|
+
/**
|
|
7267
|
+
* Check if there are bookings overlapping an event window (for create/update/delete)
|
|
7268
|
+
* @param {EventConflictCheckRequest} eventConflictCheckRequest
|
|
7269
|
+
* @param {*} [options] Override http request option.
|
|
7270
|
+
* @throws {RequiredError}
|
|
7271
|
+
*/
|
|
7272
|
+
checkEventConflicts(eventConflictCheckRequest, options) {
|
|
7273
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7274
|
+
var _a, _b, _c;
|
|
7275
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.checkEventConflicts(eventConflictCheckRequest, options);
|
|
7276
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7277
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsManagerApi.checkEventConflicts']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7278
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7279
|
+
});
|
|
7280
|
+
},
|
|
7731
7281
|
/**
|
|
7732
7282
|
* Create a new event (manager)
|
|
7733
7283
|
* @param {CreateEventRequest} createEventRequest
|
|
@@ -7804,6 +7354,22 @@ export const EventsManagerApiFp = function (configuration) {
|
|
|
7804
7354
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7805
7355
|
});
|
|
7806
7356
|
},
|
|
7357
|
+
/**
|
|
7358
|
+
* Update a published event (manager) and propagate slot changes and conflicts
|
|
7359
|
+
* @param {string} eventId
|
|
7360
|
+
* @param {UpdateEventRequest} updateEventRequest
|
|
7361
|
+
* @param {*} [options] Override http request option.
|
|
7362
|
+
* @throws {RequiredError}
|
|
7363
|
+
*/
|
|
7364
|
+
updatePublishedEvent(eventId, updateEventRequest, options) {
|
|
7365
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7366
|
+
var _a, _b, _c;
|
|
7367
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updatePublishedEvent(eventId, updateEventRequest, options);
|
|
7368
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7369
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsManagerApi.updatePublishedEvent']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7370
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7371
|
+
});
|
|
7372
|
+
},
|
|
7807
7373
|
};
|
|
7808
7374
|
};
|
|
7809
7375
|
/**
|
|
@@ -7813,6 +7379,15 @@ export const EventsManagerApiFp = function (configuration) {
|
|
|
7813
7379
|
export const EventsManagerApiFactory = function (configuration, basePath, axios) {
|
|
7814
7380
|
const localVarFp = EventsManagerApiFp(configuration);
|
|
7815
7381
|
return {
|
|
7382
|
+
/**
|
|
7383
|
+
* Check if there are bookings overlapping an event window (for create/update/delete)
|
|
7384
|
+
* @param {EventsManagerApiCheckEventConflictsRequest} requestParameters Request parameters.
|
|
7385
|
+
* @param {*} [options] Override http request option.
|
|
7386
|
+
* @throws {RequiredError}
|
|
7387
|
+
*/
|
|
7388
|
+
checkEventConflicts(requestParameters, options) {
|
|
7389
|
+
return localVarFp.checkEventConflicts(requestParameters.eventConflictCheckRequest, options).then((request) => request(axios, basePath));
|
|
7390
|
+
},
|
|
7816
7391
|
/**
|
|
7817
7392
|
* Create a new event (manager)
|
|
7818
7393
|
* @param {EventsManagerApiCreateEventRequest} requestParameters Request parameters.
|
|
@@ -7858,6 +7433,15 @@ export const EventsManagerApiFactory = function (configuration, basePath, axios)
|
|
|
7858
7433
|
updateEvent(requestParameters, options) {
|
|
7859
7434
|
return localVarFp.updateEvent(requestParameters.eventId, requestParameters.updateEventRequest, options).then((request) => request(axios, basePath));
|
|
7860
7435
|
},
|
|
7436
|
+
/**
|
|
7437
|
+
* Update a published event (manager) and propagate slot changes and conflicts
|
|
7438
|
+
* @param {EventsManagerApiUpdatePublishedEventRequest} requestParameters Request parameters.
|
|
7439
|
+
* @param {*} [options] Override http request option.
|
|
7440
|
+
* @throws {RequiredError}
|
|
7441
|
+
*/
|
|
7442
|
+
updatePublishedEvent(requestParameters, options) {
|
|
7443
|
+
return localVarFp.updatePublishedEvent(requestParameters.eventId, requestParameters.updateEventRequest, options).then((request) => request(axios, basePath));
|
|
7444
|
+
},
|
|
7861
7445
|
};
|
|
7862
7446
|
};
|
|
7863
7447
|
/**
|
|
@@ -7867,6 +7451,16 @@ export const EventsManagerApiFactory = function (configuration, basePath, axios)
|
|
|
7867
7451
|
* @extends {BaseAPI}
|
|
7868
7452
|
*/
|
|
7869
7453
|
export class EventsManagerApi extends BaseAPI {
|
|
7454
|
+
/**
|
|
7455
|
+
* Check if there are bookings overlapping an event window (for create/update/delete)
|
|
7456
|
+
* @param {EventsManagerApiCheckEventConflictsRequest} requestParameters Request parameters.
|
|
7457
|
+
* @param {*} [options] Override http request option.
|
|
7458
|
+
* @throws {RequiredError}
|
|
7459
|
+
* @memberof EventsManagerApi
|
|
7460
|
+
*/
|
|
7461
|
+
checkEventConflicts(requestParameters, options) {
|
|
7462
|
+
return EventsManagerApiFp(this.configuration).checkEventConflicts(requestParameters.eventConflictCheckRequest, options).then((request) => request(this.axios, this.basePath));
|
|
7463
|
+
}
|
|
7870
7464
|
/**
|
|
7871
7465
|
* Create a new event (manager)
|
|
7872
7466
|
* @param {EventsManagerApiCreateEventRequest} requestParameters Request parameters.
|
|
@@ -7917,6 +7511,16 @@ export class EventsManagerApi extends BaseAPI {
|
|
|
7917
7511
|
updateEvent(requestParameters, options) {
|
|
7918
7512
|
return EventsManagerApiFp(this.configuration).updateEvent(requestParameters.eventId, requestParameters.updateEventRequest, options).then((request) => request(this.axios, this.basePath));
|
|
7919
7513
|
}
|
|
7514
|
+
/**
|
|
7515
|
+
* Update a published event (manager) and propagate slot changes and conflicts
|
|
7516
|
+
* @param {EventsManagerApiUpdatePublishedEventRequest} requestParameters Request parameters.
|
|
7517
|
+
* @param {*} [options] Override http request option.
|
|
7518
|
+
* @throws {RequiredError}
|
|
7519
|
+
* @memberof EventsManagerApi
|
|
7520
|
+
*/
|
|
7521
|
+
updatePublishedEvent(requestParameters, options) {
|
|
7522
|
+
return EventsManagerApiFp(this.configuration).updatePublishedEvent(requestParameters.eventId, requestParameters.updateEventRequest, options).then((request) => request(this.axios, this.basePath));
|
|
7523
|
+
}
|
|
7920
7524
|
}
|
|
7921
7525
|
/**
|
|
7922
7526
|
* EventsStaffApi - axios parameter creator
|
|
@@ -7925,47 +7529,36 @@ export class EventsManagerApi extends BaseAPI {
|
|
|
7925
7529
|
export const EventsStaffApiAxiosParamCreator = function (configuration) {
|
|
7926
7530
|
return {
|
|
7927
7531
|
/**
|
|
7928
|
-
*
|
|
7929
|
-
* @param {string}
|
|
7930
|
-
* @param {
|
|
7931
|
-
* @param {GetDailyEventsVisibilityTypeEnum} [visibilityType]
|
|
7932
|
-
* @param {GetDailyEventsTypeEnum} [type]
|
|
7933
|
-
* @param {string} [sportId]
|
|
7532
|
+
* Check-in des participants d\'un EventBooking (clubs avec paiements)
|
|
7533
|
+
* @param {string} eventBookingId
|
|
7534
|
+
* @param {CheckInEventParticipantsRequest} checkInEventParticipantsRequest
|
|
7934
7535
|
* @param {*} [options] Override http request option.
|
|
7935
7536
|
* @throws {RequiredError}
|
|
7936
7537
|
*/
|
|
7937
|
-
|
|
7938
|
-
|
|
7538
|
+
checkInEventParticipants: (eventBookingId_1, checkInEventParticipantsRequest_1, ...args_1) => __awaiter(this, [eventBookingId_1, checkInEventParticipantsRequest_1, ...args_1], void 0, function* (eventBookingId, checkInEventParticipantsRequest, options = {}) {
|
|
7539
|
+
// verify required parameter 'eventBookingId' is not null or undefined
|
|
7540
|
+
assertParamExists('checkInEventParticipants', 'eventBookingId', eventBookingId);
|
|
7541
|
+
// verify required parameter 'checkInEventParticipantsRequest' is not null or undefined
|
|
7542
|
+
assertParamExists('checkInEventParticipants', 'checkInEventParticipantsRequest', checkInEventParticipantsRequest);
|
|
7543
|
+
const localVarPath = `/api/events/{eventBookingId}/check-in`
|
|
7544
|
+
.replace(`{${"eventBookingId"}}`, encodeURIComponent(String(eventBookingId)));
|
|
7939
7545
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7940
7546
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7941
7547
|
let baseOptions;
|
|
7942
7548
|
if (configuration) {
|
|
7943
7549
|
baseOptions = configuration.baseOptions;
|
|
7944
7550
|
}
|
|
7945
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
7551
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
7946
7552
|
const localVarHeaderParameter = {};
|
|
7947
7553
|
const localVarQueryParameter = {};
|
|
7948
7554
|
// authentication bearerAuth required
|
|
7949
7555
|
// http bearer authentication required
|
|
7950
7556
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
7951
|
-
|
|
7952
|
-
localVarQueryParameter['clubId'] = clubId;
|
|
7953
|
-
}
|
|
7954
|
-
if (date !== undefined) {
|
|
7955
|
-
localVarQueryParameter['date'] = date;
|
|
7956
|
-
}
|
|
7957
|
-
if (visibilityType !== undefined) {
|
|
7958
|
-
localVarQueryParameter['visibilityType'] = visibilityType;
|
|
7959
|
-
}
|
|
7960
|
-
if (type !== undefined) {
|
|
7961
|
-
localVarQueryParameter['type'] = type;
|
|
7962
|
-
}
|
|
7963
|
-
if (sportId !== undefined) {
|
|
7964
|
-
localVarQueryParameter['sportId'] = sportId;
|
|
7965
|
-
}
|
|
7557
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
7966
7558
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7967
7559
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7968
7560
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7561
|
+
localVarRequestOptions.data = serializeDataIfNeeded(checkInEventParticipantsRequest, localVarRequestOptions, configuration);
|
|
7969
7562
|
return {
|
|
7970
7563
|
url: toPathString(localVarUrlObj),
|
|
7971
7564
|
options: localVarRequestOptions,
|
|
@@ -7998,100 +7591,6 @@ export const EventsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
7998
7591
|
options: localVarRequestOptions,
|
|
7999
7592
|
};
|
|
8000
7593
|
}),
|
|
8001
|
-
/**
|
|
8002
|
-
* Get events for the entire month view (including recurring occurrences)
|
|
8003
|
-
* @param {string} [clubId]
|
|
8004
|
-
* @param {string} [date]
|
|
8005
|
-
* @param {GetMonthlyEventsVisibilityTypeEnum} [visibilityType]
|
|
8006
|
-
* @param {GetMonthlyEventsTypeEnum} [type]
|
|
8007
|
-
* @param {string} [sportId]
|
|
8008
|
-
* @param {*} [options] Override http request option.
|
|
8009
|
-
* @throws {RequiredError}
|
|
8010
|
-
*/
|
|
8011
|
-
getMonthlyEvents: (clubId_1, date_1, visibilityType_1, type_1, sportId_1, ...args_1) => __awaiter(this, [clubId_1, date_1, visibilityType_1, type_1, sportId_1, ...args_1], void 0, function* (clubId, date, visibilityType, type, sportId, options = {}) {
|
|
8012
|
-
const localVarPath = `/api/events/calendar/monthly`;
|
|
8013
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8014
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
8015
|
-
let baseOptions;
|
|
8016
|
-
if (configuration) {
|
|
8017
|
-
baseOptions = configuration.baseOptions;
|
|
8018
|
-
}
|
|
8019
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
8020
|
-
const localVarHeaderParameter = {};
|
|
8021
|
-
const localVarQueryParameter = {};
|
|
8022
|
-
// authentication bearerAuth required
|
|
8023
|
-
// http bearer authentication required
|
|
8024
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
8025
|
-
if (clubId !== undefined) {
|
|
8026
|
-
localVarQueryParameter['clubId'] = clubId;
|
|
8027
|
-
}
|
|
8028
|
-
if (date !== undefined) {
|
|
8029
|
-
localVarQueryParameter['date'] = date;
|
|
8030
|
-
}
|
|
8031
|
-
if (visibilityType !== undefined) {
|
|
8032
|
-
localVarQueryParameter['visibilityType'] = visibilityType;
|
|
8033
|
-
}
|
|
8034
|
-
if (type !== undefined) {
|
|
8035
|
-
localVarQueryParameter['type'] = type;
|
|
8036
|
-
}
|
|
8037
|
-
if (sportId !== undefined) {
|
|
8038
|
-
localVarQueryParameter['sportId'] = sportId;
|
|
8039
|
-
}
|
|
8040
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
8041
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8042
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8043
|
-
return {
|
|
8044
|
-
url: toPathString(localVarUrlObj),
|
|
8045
|
-
options: localVarRequestOptions,
|
|
8046
|
-
};
|
|
8047
|
-
}),
|
|
8048
|
-
/**
|
|
8049
|
-
* Get events for the week view (30 day sliding window)
|
|
8050
|
-
* @param {string} [clubId]
|
|
8051
|
-
* @param {string} [date]
|
|
8052
|
-
* @param {GetWeeklyEventsVisibilityTypeEnum} [visibilityType]
|
|
8053
|
-
* @param {GetWeeklyEventsTypeEnum} [type]
|
|
8054
|
-
* @param {string} [sportId]
|
|
8055
|
-
* @param {*} [options] Override http request option.
|
|
8056
|
-
* @throws {RequiredError}
|
|
8057
|
-
*/
|
|
8058
|
-
getWeeklyEvents: (clubId_1, date_1, visibilityType_1, type_1, sportId_1, ...args_1) => __awaiter(this, [clubId_1, date_1, visibilityType_1, type_1, sportId_1, ...args_1], void 0, function* (clubId, date, visibilityType, type, sportId, options = {}) {
|
|
8059
|
-
const localVarPath = `/api/events/calendar/weekly`;
|
|
8060
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8061
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
8062
|
-
let baseOptions;
|
|
8063
|
-
if (configuration) {
|
|
8064
|
-
baseOptions = configuration.baseOptions;
|
|
8065
|
-
}
|
|
8066
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
8067
|
-
const localVarHeaderParameter = {};
|
|
8068
|
-
const localVarQueryParameter = {};
|
|
8069
|
-
// authentication bearerAuth required
|
|
8070
|
-
// http bearer authentication required
|
|
8071
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
8072
|
-
if (clubId !== undefined) {
|
|
8073
|
-
localVarQueryParameter['clubId'] = clubId;
|
|
8074
|
-
}
|
|
8075
|
-
if (date !== undefined) {
|
|
8076
|
-
localVarQueryParameter['date'] = date;
|
|
8077
|
-
}
|
|
8078
|
-
if (visibilityType !== undefined) {
|
|
8079
|
-
localVarQueryParameter['visibilityType'] = visibilityType;
|
|
8080
|
-
}
|
|
8081
|
-
if (type !== undefined) {
|
|
8082
|
-
localVarQueryParameter['type'] = type;
|
|
8083
|
-
}
|
|
8084
|
-
if (sportId !== undefined) {
|
|
8085
|
-
localVarQueryParameter['sportId'] = sportId;
|
|
8086
|
-
}
|
|
8087
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
8088
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8089
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8090
|
-
return {
|
|
8091
|
-
url: toPathString(localVarUrlObj),
|
|
8092
|
-
options: localVarRequestOptions,
|
|
8093
|
-
};
|
|
8094
|
-
}),
|
|
8095
7594
|
};
|
|
8096
7595
|
};
|
|
8097
7596
|
/**
|
|
@@ -8102,21 +7601,18 @@ export const EventsStaffApiFp = function (configuration) {
|
|
|
8102
7601
|
const localVarAxiosParamCreator = EventsStaffApiAxiosParamCreator(configuration);
|
|
8103
7602
|
return {
|
|
8104
7603
|
/**
|
|
8105
|
-
*
|
|
8106
|
-
* @param {string}
|
|
8107
|
-
* @param {
|
|
8108
|
-
* @param {GetDailyEventsVisibilityTypeEnum} [visibilityType]
|
|
8109
|
-
* @param {GetDailyEventsTypeEnum} [type]
|
|
8110
|
-
* @param {string} [sportId]
|
|
7604
|
+
* Check-in des participants d\'un EventBooking (clubs avec paiements)
|
|
7605
|
+
* @param {string} eventBookingId
|
|
7606
|
+
* @param {CheckInEventParticipantsRequest} checkInEventParticipantsRequest
|
|
8111
7607
|
* @param {*} [options] Override http request option.
|
|
8112
7608
|
* @throws {RequiredError}
|
|
8113
7609
|
*/
|
|
8114
|
-
|
|
7610
|
+
checkInEventParticipants(eventBookingId, checkInEventParticipantsRequest, options) {
|
|
8115
7611
|
return __awaiter(this, void 0, void 0, function* () {
|
|
8116
7612
|
var _a, _b, _c;
|
|
8117
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
7613
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.checkInEventParticipants(eventBookingId, checkInEventParticipantsRequest, options);
|
|
8118
7614
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8119
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsStaffApi.
|
|
7615
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsStaffApi.checkInEventParticipants']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8120
7616
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8121
7617
|
});
|
|
8122
7618
|
},
|
|
@@ -8134,44 +7630,6 @@ export const EventsStaffApiFp = function (configuration) {
|
|
|
8134
7630
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8135
7631
|
});
|
|
8136
7632
|
},
|
|
8137
|
-
/**
|
|
8138
|
-
* Get events for the entire month view (including recurring occurrences)
|
|
8139
|
-
* @param {string} [clubId]
|
|
8140
|
-
* @param {string} [date]
|
|
8141
|
-
* @param {GetMonthlyEventsVisibilityTypeEnum} [visibilityType]
|
|
8142
|
-
* @param {GetMonthlyEventsTypeEnum} [type]
|
|
8143
|
-
* @param {string} [sportId]
|
|
8144
|
-
* @param {*} [options] Override http request option.
|
|
8145
|
-
* @throws {RequiredError}
|
|
8146
|
-
*/
|
|
8147
|
-
getMonthlyEvents(clubId, date, visibilityType, type, sportId, options) {
|
|
8148
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
8149
|
-
var _a, _b, _c;
|
|
8150
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getMonthlyEvents(clubId, date, visibilityType, type, sportId, options);
|
|
8151
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8152
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsStaffApi.getMonthlyEvents']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8153
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8154
|
-
});
|
|
8155
|
-
},
|
|
8156
|
-
/**
|
|
8157
|
-
* Get events for the week view (30 day sliding window)
|
|
8158
|
-
* @param {string} [clubId]
|
|
8159
|
-
* @param {string} [date]
|
|
8160
|
-
* @param {GetWeeklyEventsVisibilityTypeEnum} [visibilityType]
|
|
8161
|
-
* @param {GetWeeklyEventsTypeEnum} [type]
|
|
8162
|
-
* @param {string} [sportId]
|
|
8163
|
-
* @param {*} [options] Override http request option.
|
|
8164
|
-
* @throws {RequiredError}
|
|
8165
|
-
*/
|
|
8166
|
-
getWeeklyEvents(clubId, date, visibilityType, type, sportId, options) {
|
|
8167
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
8168
|
-
var _a, _b, _c;
|
|
8169
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getWeeklyEvents(clubId, date, visibilityType, type, sportId, options);
|
|
8170
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8171
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsStaffApi.getWeeklyEvents']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8172
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8173
|
-
});
|
|
8174
|
-
},
|
|
8175
7633
|
};
|
|
8176
7634
|
};
|
|
8177
7635
|
/**
|
|
@@ -8182,13 +7640,13 @@ export const EventsStaffApiFactory = function (configuration, basePath, axios) {
|
|
|
8182
7640
|
const localVarFp = EventsStaffApiFp(configuration);
|
|
8183
7641
|
return {
|
|
8184
7642
|
/**
|
|
8185
|
-
*
|
|
8186
|
-
* @param {
|
|
7643
|
+
* Check-in des participants d\'un EventBooking (clubs avec paiements)
|
|
7644
|
+
* @param {EventsStaffApiCheckInEventParticipantsRequest} requestParameters Request parameters.
|
|
8187
7645
|
* @param {*} [options] Override http request option.
|
|
8188
7646
|
* @throws {RequiredError}
|
|
8189
7647
|
*/
|
|
8190
|
-
|
|
8191
|
-
return localVarFp.
|
|
7648
|
+
checkInEventParticipants(requestParameters, options) {
|
|
7649
|
+
return localVarFp.checkInEventParticipants(requestParameters.eventBookingId, requestParameters.checkInEventParticipantsRequest, options).then((request) => request(axios, basePath));
|
|
8192
7650
|
},
|
|
8193
7651
|
/**
|
|
8194
7652
|
* Get all events for a club (staff only)
|
|
@@ -8198,24 +7656,6 @@ export const EventsStaffApiFactory = function (configuration, basePath, axios) {
|
|
|
8198
7656
|
getEventsByClub(options) {
|
|
8199
7657
|
return localVarFp.getEventsByClub(options).then((request) => request(axios, basePath));
|
|
8200
7658
|
},
|
|
8201
|
-
/**
|
|
8202
|
-
* Get events for the entire month view (including recurring occurrences)
|
|
8203
|
-
* @param {EventsStaffApiGetMonthlyEventsRequest} requestParameters Request parameters.
|
|
8204
|
-
* @param {*} [options] Override http request option.
|
|
8205
|
-
* @throws {RequiredError}
|
|
8206
|
-
*/
|
|
8207
|
-
getMonthlyEvents(requestParameters = {}, options) {
|
|
8208
|
-
return localVarFp.getMonthlyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(axios, basePath));
|
|
8209
|
-
},
|
|
8210
|
-
/**
|
|
8211
|
-
* Get events for the week view (30 day sliding window)
|
|
8212
|
-
* @param {EventsStaffApiGetWeeklyEventsRequest} requestParameters Request parameters.
|
|
8213
|
-
* @param {*} [options] Override http request option.
|
|
8214
|
-
* @throws {RequiredError}
|
|
8215
|
-
*/
|
|
8216
|
-
getWeeklyEvents(requestParameters = {}, options) {
|
|
8217
|
-
return localVarFp.getWeeklyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(axios, basePath));
|
|
8218
|
-
},
|
|
8219
7659
|
};
|
|
8220
7660
|
};
|
|
8221
7661
|
/**
|
|
@@ -8226,14 +7666,14 @@ export const EventsStaffApiFactory = function (configuration, basePath, axios) {
|
|
|
8226
7666
|
*/
|
|
8227
7667
|
export class EventsStaffApi extends BaseAPI {
|
|
8228
7668
|
/**
|
|
8229
|
-
*
|
|
8230
|
-
* @param {
|
|
7669
|
+
* Check-in des participants d\'un EventBooking (clubs avec paiements)
|
|
7670
|
+
* @param {EventsStaffApiCheckInEventParticipantsRequest} requestParameters Request parameters.
|
|
8231
7671
|
* @param {*} [options] Override http request option.
|
|
8232
7672
|
* @throws {RequiredError}
|
|
8233
7673
|
* @memberof EventsStaffApi
|
|
8234
7674
|
*/
|
|
8235
|
-
|
|
8236
|
-
return EventsStaffApiFp(this.configuration).
|
|
7675
|
+
checkInEventParticipants(requestParameters, options) {
|
|
7676
|
+
return EventsStaffApiFp(this.configuration).checkInEventParticipants(requestParameters.eventBookingId, requestParameters.checkInEventParticipantsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
8237
7677
|
}
|
|
8238
7678
|
/**
|
|
8239
7679
|
* Get all events for a club (staff only)
|
|
@@ -8244,72 +7684,7 @@ export class EventsStaffApi extends BaseAPI {
|
|
|
8244
7684
|
getEventsByClub(options) {
|
|
8245
7685
|
return EventsStaffApiFp(this.configuration).getEventsByClub(options).then((request) => request(this.axios, this.basePath));
|
|
8246
7686
|
}
|
|
8247
|
-
/**
|
|
8248
|
-
* Get events for the entire month view (including recurring occurrences)
|
|
8249
|
-
* @param {EventsStaffApiGetMonthlyEventsRequest} requestParameters Request parameters.
|
|
8250
|
-
* @param {*} [options] Override http request option.
|
|
8251
|
-
* @throws {RequiredError}
|
|
8252
|
-
* @memberof EventsStaffApi
|
|
8253
|
-
*/
|
|
8254
|
-
getMonthlyEvents(requestParameters = {}, options) {
|
|
8255
|
-
return EventsStaffApiFp(this.configuration).getMonthlyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
|
|
8256
|
-
}
|
|
8257
|
-
/**
|
|
8258
|
-
* Get events for the week view (30 day sliding window)
|
|
8259
|
-
* @param {EventsStaffApiGetWeeklyEventsRequest} requestParameters Request parameters.
|
|
8260
|
-
* @param {*} [options] Override http request option.
|
|
8261
|
-
* @throws {RequiredError}
|
|
8262
|
-
* @memberof EventsStaffApi
|
|
8263
|
-
*/
|
|
8264
|
-
getWeeklyEvents(requestParameters = {}, options) {
|
|
8265
|
-
return EventsStaffApiFp(this.configuration).getWeeklyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
|
|
8266
|
-
}
|
|
8267
7687
|
}
|
|
8268
|
-
/**
|
|
8269
|
-
* @export
|
|
8270
|
-
*/
|
|
8271
|
-
export const GetDailyEventsVisibilityTypeEnum = {
|
|
8272
|
-
Public: 'public',
|
|
8273
|
-
Private: 'private',
|
|
8274
|
-
Invitation: 'invitation'
|
|
8275
|
-
};
|
|
8276
|
-
/**
|
|
8277
|
-
* @export
|
|
8278
|
-
*/
|
|
8279
|
-
export const GetDailyEventsTypeEnum = {
|
|
8280
|
-
Event: 'event',
|
|
8281
|
-
Closure: 'closure'
|
|
8282
|
-
};
|
|
8283
|
-
/**
|
|
8284
|
-
* @export
|
|
8285
|
-
*/
|
|
8286
|
-
export const GetMonthlyEventsVisibilityTypeEnum = {
|
|
8287
|
-
Public: 'public',
|
|
8288
|
-
Private: 'private',
|
|
8289
|
-
Invitation: 'invitation'
|
|
8290
|
-
};
|
|
8291
|
-
/**
|
|
8292
|
-
* @export
|
|
8293
|
-
*/
|
|
8294
|
-
export const GetMonthlyEventsTypeEnum = {
|
|
8295
|
-
Event: 'event',
|
|
8296
|
-
Closure: 'closure'
|
|
8297
|
-
};
|
|
8298
|
-
/**
|
|
8299
|
-
* @export
|
|
8300
|
-
*/
|
|
8301
|
-
export const GetWeeklyEventsVisibilityTypeEnum = {
|
|
8302
|
-
Public: 'public',
|
|
8303
|
-
Private: 'private',
|
|
8304
|
-
Invitation: 'invitation'
|
|
8305
|
-
};
|
|
8306
|
-
/**
|
|
8307
|
-
* @export
|
|
8308
|
-
*/
|
|
8309
|
-
export const GetWeeklyEventsTypeEnum = {
|
|
8310
|
-
Event: 'event',
|
|
8311
|
-
Closure: 'closure'
|
|
8312
|
-
};
|
|
8313
7688
|
/**
|
|
8314
7689
|
* SportsManagerApi - axios parameter creator
|
|
8315
7690
|
* @export
|