@tennac-booking/sdk 1.0.111 → 1.0.113
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 +15 -16
- package/README.md +23 -30
- package/api.ts +1150 -1925
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +838 -1282
- package/dist/api.js +542 -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 +838 -1282
- package/dist/esm/api.js +556 -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/ClubMetadataResponse.md +30 -0
- package/docs/ClubMetadataResponseLocation.md +27 -0
- package/docs/ClubPlayerDetailResponse.md +0 -2
- package/docs/ClubSummary.md +2 -8
- package/docs/ClubsApi.md +55 -0
- 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]
|
|
@@ -4468,6 +4000,34 @@ export const ClubsApiAxiosParamCreator = function (configuration) {
|
|
|
4468
4000
|
options: localVarRequestOptions,
|
|
4469
4001
|
};
|
|
4470
4002
|
}),
|
|
4003
|
+
/**
|
|
4004
|
+
* Récupère les métadonnées publiques d\'un club
|
|
4005
|
+
* @param {string} clubId
|
|
4006
|
+
* @param {*} [options] Override http request option.
|
|
4007
|
+
* @throws {RequiredError}
|
|
4008
|
+
*/
|
|
4009
|
+
getClubMetadata: (clubId_1, ...args_1) => __awaiter(this, [clubId_1, ...args_1], void 0, function* (clubId, options = {}) {
|
|
4010
|
+
// verify required parameter 'clubId' is not null or undefined
|
|
4011
|
+
assertParamExists('getClubMetadata', 'clubId', clubId);
|
|
4012
|
+
const localVarPath = `/api/clubs/{clubId}/metadata`
|
|
4013
|
+
.replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
|
|
4014
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4015
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4016
|
+
let baseOptions;
|
|
4017
|
+
if (configuration) {
|
|
4018
|
+
baseOptions = configuration.baseOptions;
|
|
4019
|
+
}
|
|
4020
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
4021
|
+
const localVarHeaderParameter = {};
|
|
4022
|
+
const localVarQueryParameter = {};
|
|
4023
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4024
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4025
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4026
|
+
return {
|
|
4027
|
+
url: toPathString(localVarUrlObj),
|
|
4028
|
+
options: localVarRequestOptions,
|
|
4029
|
+
};
|
|
4030
|
+
}),
|
|
4471
4031
|
/**
|
|
4472
4032
|
*
|
|
4473
4033
|
* @param {string} clubId
|
|
@@ -4763,6 +4323,21 @@ export const ClubsApiFp = function (configuration) {
|
|
|
4763
4323
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4764
4324
|
});
|
|
4765
4325
|
},
|
|
4326
|
+
/**
|
|
4327
|
+
* Récupère les métadonnées publiques d\'un club
|
|
4328
|
+
* @param {string} clubId
|
|
4329
|
+
* @param {*} [options] Override http request option.
|
|
4330
|
+
* @throws {RequiredError}
|
|
4331
|
+
*/
|
|
4332
|
+
getClubMetadata(clubId, options) {
|
|
4333
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4334
|
+
var _a, _b, _c;
|
|
4335
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubMetadata(clubId, options);
|
|
4336
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4337
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubsApi.getClubMetadata']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4338
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4339
|
+
});
|
|
4340
|
+
},
|
|
4766
4341
|
/**
|
|
4767
4342
|
*
|
|
4768
4343
|
* @param {string} clubId
|
|
@@ -4928,6 +4503,15 @@ export const ClubsApiFactory = function (configuration, basePath, axios) {
|
|
|
4928
4503
|
getClubInfo(options) {
|
|
4929
4504
|
return localVarFp.getClubInfo(options).then((request) => request(axios, basePath));
|
|
4930
4505
|
},
|
|
4506
|
+
/**
|
|
4507
|
+
* Récupère les métadonnées publiques d\'un club
|
|
4508
|
+
* @param {ClubsApiGetClubMetadataRequest} requestParameters Request parameters.
|
|
4509
|
+
* @param {*} [options] Override http request option.
|
|
4510
|
+
* @throws {RequiredError}
|
|
4511
|
+
*/
|
|
4512
|
+
getClubMetadata(requestParameters, options) {
|
|
4513
|
+
return localVarFp.getClubMetadata(requestParameters.clubId, options).then((request) => request(axios, basePath));
|
|
4514
|
+
},
|
|
4931
4515
|
/**
|
|
4932
4516
|
*
|
|
4933
4517
|
* @param {ClubsApiGetClubPageInfoRequest} requestParameters Request parameters.
|
|
@@ -5056,6 +4640,16 @@ export class ClubsApi extends BaseAPI {
|
|
|
5056
4640
|
getClubInfo(options) {
|
|
5057
4641
|
return ClubsApiFp(this.configuration).getClubInfo(options).then((request) => request(this.axios, this.basePath));
|
|
5058
4642
|
}
|
|
4643
|
+
/**
|
|
4644
|
+
* Récupère les métadonnées publiques d\'un club
|
|
4645
|
+
* @param {ClubsApiGetClubMetadataRequest} requestParameters Request parameters.
|
|
4646
|
+
* @param {*} [options] Override http request option.
|
|
4647
|
+
* @throws {RequiredError}
|
|
4648
|
+
* @memberof ClubsApi
|
|
4649
|
+
*/
|
|
4650
|
+
getClubMetadata(requestParameters, options) {
|
|
4651
|
+
return ClubsApiFp(this.configuration).getClubMetadata(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
|
|
4652
|
+
}
|
|
5059
4653
|
/**
|
|
5060
4654
|
*
|
|
5061
4655
|
* @param {ClubsApiGetClubPageInfoRequest} requestParameters Request parameters.
|
|
@@ -5358,37 +4952,6 @@ export const ClubsManagerApiAxiosParamCreator = function (configuration) {
|
|
|
5358
4952
|
options: localVarRequestOptions,
|
|
5359
4953
|
};
|
|
5360
4954
|
}),
|
|
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
4955
|
/**
|
|
5393
4956
|
* Supprime un terrain et ses créneaux futurs
|
|
5394
4957
|
* @param {string} courtId
|
|
@@ -5926,21 +5489,6 @@ export const ClubsManagerApiFp = function (configuration) {
|
|
|
5926
5489
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5927
5490
|
});
|
|
5928
5491
|
},
|
|
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
5492
|
/**
|
|
5945
5493
|
* Supprime un terrain et ses créneaux futurs
|
|
5946
5494
|
* @param {string} courtId
|
|
@@ -6211,15 +5759,6 @@ export const ClubsManagerApiFactory = function (configuration, basePath, axios)
|
|
|
6211
5759
|
deleteActuality(requestParameters, options) {
|
|
6212
5760
|
return localVarFp.deleteActuality(requestParameters.actualityId, options).then((request) => request(axios, basePath));
|
|
6213
5761
|
},
|
|
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
5762
|
/**
|
|
6224
5763
|
* Supprime un terrain et ses créneaux futurs
|
|
6225
5764
|
* @param {ClubsManagerApiDeleteCourtRequest} requestParameters Request parameters.
|
|
@@ -6415,16 +5954,6 @@ export class ClubsManagerApi extends BaseAPI {
|
|
|
6415
5954
|
deleteActuality(requestParameters, options) {
|
|
6416
5955
|
return ClubsManagerApiFp(this.configuration).deleteActuality(requestParameters.actualityId, options).then((request) => request(this.axios, this.basePath));
|
|
6417
5956
|
}
|
|
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
5957
|
/**
|
|
6429
5958
|
* Supprime un terrain et ses créneaux futurs
|
|
6430
5959
|
* @param {ClubsManagerApiDeleteCourtRequest} requestParameters Request parameters.
|
|
@@ -6562,27 +6091,36 @@ export class ClubsManagerApi extends BaseAPI {
|
|
|
6562
6091
|
export const ClubsStaffApiAxiosParamCreator = function (configuration) {
|
|
6563
6092
|
return {
|
|
6564
6093
|
/**
|
|
6565
|
-
*
|
|
6094
|
+
* Crée une facture manuelle (on-site) et l\'associe à une réservation
|
|
6095
|
+
* @param {string} bookingId
|
|
6096
|
+
* @param {CreateOnsiteInvoiceRequest} createOnsiteInvoiceRequest
|
|
6566
6097
|
* @param {*} [options] Override http request option.
|
|
6567
6098
|
* @throws {RequiredError}
|
|
6568
6099
|
*/
|
|
6569
|
-
|
|
6570
|
-
|
|
6100
|
+
createOnsiteInvoiceForBooking: (bookingId_1, createOnsiteInvoiceRequest_1, ...args_1) => __awaiter(this, [bookingId_1, createOnsiteInvoiceRequest_1, ...args_1], void 0, function* (bookingId, createOnsiteInvoiceRequest, options = {}) {
|
|
6101
|
+
// verify required parameter 'bookingId' is not null or undefined
|
|
6102
|
+
assertParamExists('createOnsiteInvoiceForBooking', 'bookingId', bookingId);
|
|
6103
|
+
// verify required parameter 'createOnsiteInvoiceRequest' is not null or undefined
|
|
6104
|
+
assertParamExists('createOnsiteInvoiceForBooking', 'createOnsiteInvoiceRequest', createOnsiteInvoiceRequest);
|
|
6105
|
+
const localVarPath = `/api/clubs/staff/bookings/{bookingId}/invoices`
|
|
6106
|
+
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
6571
6107
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6572
6108
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6573
6109
|
let baseOptions;
|
|
6574
6110
|
if (configuration) {
|
|
6575
6111
|
baseOptions = configuration.baseOptions;
|
|
6576
6112
|
}
|
|
6577
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
6113
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
6578
6114
|
const localVarHeaderParameter = {};
|
|
6579
6115
|
const localVarQueryParameter = {};
|
|
6580
6116
|
// authentication bearerAuth required
|
|
6581
6117
|
// http bearer authentication required
|
|
6582
6118
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
6119
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6583
6120
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6584
6121
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6585
6122
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6123
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createOnsiteInvoiceRequest, localVarRequestOptions, configuration);
|
|
6586
6124
|
return {
|
|
6587
6125
|
url: toPathString(localVarUrlObj),
|
|
6588
6126
|
options: localVarRequestOptions,
|
|
@@ -6593,8 +6131,8 @@ export const ClubsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
6593
6131
|
* @param {*} [options] Override http request option.
|
|
6594
6132
|
* @throws {RequiredError}
|
|
6595
6133
|
*/
|
|
6596
|
-
|
|
6597
|
-
const localVarPath = `/api/clubs/
|
|
6134
|
+
getActualities: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
6135
|
+
const localVarPath = `/api/clubs/staff/actualities`;
|
|
6598
6136
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6599
6137
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6600
6138
|
let baseOptions;
|
|
@@ -6616,12 +6154,12 @@ export const ClubsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
6616
6154
|
};
|
|
6617
6155
|
}),
|
|
6618
6156
|
/**
|
|
6619
|
-
*
|
|
6157
|
+
*
|
|
6620
6158
|
* @param {*} [options] Override http request option.
|
|
6621
6159
|
* @throws {RequiredError}
|
|
6622
6160
|
*/
|
|
6623
|
-
|
|
6624
|
-
const localVarPath = `/api/clubs/
|
|
6161
|
+
getClubInfos: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
6162
|
+
const localVarPath = `/api/clubs/infos`;
|
|
6625
6163
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6626
6164
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6627
6165
|
let baseOptions;
|
|
@@ -6643,12 +6181,12 @@ export const ClubsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
6643
6181
|
};
|
|
6644
6182
|
}),
|
|
6645
6183
|
/**
|
|
6646
|
-
*
|
|
6184
|
+
* Récupère les membres d\'un club
|
|
6647
6185
|
* @param {*} [options] Override http request option.
|
|
6648
6186
|
* @throws {RequiredError}
|
|
6649
6187
|
*/
|
|
6650
|
-
|
|
6651
|
-
const localVarPath = `/api/clubs/
|
|
6188
|
+
getClubMembers: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
6189
|
+
const localVarPath = `/api/clubs/members`;
|
|
6652
6190
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6653
6191
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6654
6192
|
let baseOptions;
|
|
@@ -6670,12 +6208,12 @@ export const ClubsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
6670
6208
|
};
|
|
6671
6209
|
}),
|
|
6672
6210
|
/**
|
|
6673
|
-
*
|
|
6211
|
+
*
|
|
6674
6212
|
* @param {*} [options] Override http request option.
|
|
6675
6213
|
* @throws {RequiredError}
|
|
6676
6214
|
*/
|
|
6677
|
-
|
|
6678
|
-
const localVarPath = `/api/clubs/
|
|
6215
|
+
getClubPresentationSettings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
6216
|
+
const localVarPath = `/api/clubs/settings/presentation`;
|
|
6679
6217
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6680
6218
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6681
6219
|
let baseOptions;
|
|
@@ -6697,12 +6235,12 @@ export const ClubsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
6697
6235
|
};
|
|
6698
6236
|
}),
|
|
6699
6237
|
/**
|
|
6700
|
-
* Récupère les
|
|
6238
|
+
* Récupère les rôles d\'un club
|
|
6701
6239
|
* @param {*} [options] Override http request option.
|
|
6702
6240
|
* @throws {RequiredError}
|
|
6703
6241
|
*/
|
|
6704
|
-
|
|
6705
|
-
const localVarPath = `/api/clubs/
|
|
6242
|
+
getClubRoles: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
6243
|
+
const localVarPath = `/api/clubs/roles`;
|
|
6706
6244
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6707
6245
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6708
6246
|
let baseOptions;
|
|
@@ -6724,12 +6262,12 @@ export const ClubsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
6724
6262
|
};
|
|
6725
6263
|
}),
|
|
6726
6264
|
/**
|
|
6727
|
-
*
|
|
6265
|
+
* Récupère les terrains d\'un club
|
|
6728
6266
|
* @param {*} [options] Override http request option.
|
|
6729
6267
|
* @throws {RequiredError}
|
|
6730
6268
|
*/
|
|
6731
|
-
|
|
6732
|
-
const localVarPath = `/api/clubs/
|
|
6269
|
+
getCourtsByClub: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
6270
|
+
const localVarPath = `/api/clubs/courts`;
|
|
6733
6271
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6734
6272
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6735
6273
|
let baseOptions;
|
|
@@ -6752,15 +6290,11 @@ export const ClubsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
6752
6290
|
}),
|
|
6753
6291
|
/**
|
|
6754
6292
|
*
|
|
6755
|
-
* @param {string} id
|
|
6756
6293
|
* @param {*} [options] Override http request option.
|
|
6757
6294
|
* @throws {RequiredError}
|
|
6758
6295
|
*/
|
|
6759
|
-
|
|
6760
|
-
|
|
6761
|
-
assertParamExists('getUserProfileStaff', 'id', id);
|
|
6762
|
-
const localVarPath = `/api/clubs/staff/profile/{id}`
|
|
6763
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
6296
|
+
getInvoices: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
6297
|
+
const localVarPath = `/api/clubs/invoices`;
|
|
6764
6298
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6765
6299
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6766
6300
|
let baseOptions;
|
|
@@ -6784,16 +6318,13 @@ export const ClubsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
6784
6318
|
/**
|
|
6785
6319
|
*
|
|
6786
6320
|
* @param {string} id
|
|
6787
|
-
* @param {UpdateUserCreditsRequest} updateUserCreditsRequest
|
|
6788
6321
|
* @param {*} [options] Override http request option.
|
|
6789
6322
|
* @throws {RequiredError}
|
|
6790
6323
|
*/
|
|
6791
|
-
|
|
6324
|
+
getUserProfileStaff: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
6792
6325
|
// 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}`
|
|
6326
|
+
assertParamExists('getUserProfileStaff', 'id', id);
|
|
6327
|
+
const localVarPath = `/api/clubs/staff/profile/{id}`
|
|
6797
6328
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
6798
6329
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6799
6330
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -6801,17 +6332,15 @@ export const ClubsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
6801
6332
|
if (configuration) {
|
|
6802
6333
|
baseOptions = configuration.baseOptions;
|
|
6803
6334
|
}
|
|
6804
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
6335
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
6805
6336
|
const localVarHeaderParameter = {};
|
|
6806
6337
|
const localVarQueryParameter = {};
|
|
6807
6338
|
// authentication bearerAuth required
|
|
6808
6339
|
// http bearer authentication required
|
|
6809
6340
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
6810
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6811
6341
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6812
6342
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6813
6343
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6814
|
-
localVarRequestOptions.data = serializeDataIfNeeded(updateUserCreditsRequest, localVarRequestOptions, configuration);
|
|
6815
6344
|
return {
|
|
6816
6345
|
url: toPathString(localVarUrlObj),
|
|
6817
6346
|
options: localVarRequestOptions,
|
|
@@ -6826,6 +6355,22 @@ export const ClubsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
6826
6355
|
export const ClubsStaffApiFp = function (configuration) {
|
|
6827
6356
|
const localVarAxiosParamCreator = ClubsStaffApiAxiosParamCreator(configuration);
|
|
6828
6357
|
return {
|
|
6358
|
+
/**
|
|
6359
|
+
* Crée une facture manuelle (on-site) et l\'associe à une réservation
|
|
6360
|
+
* @param {string} bookingId
|
|
6361
|
+
* @param {CreateOnsiteInvoiceRequest} createOnsiteInvoiceRequest
|
|
6362
|
+
* @param {*} [options] Override http request option.
|
|
6363
|
+
* @throws {RequiredError}
|
|
6364
|
+
*/
|
|
6365
|
+
createOnsiteInvoiceForBooking(bookingId, createOnsiteInvoiceRequest, options) {
|
|
6366
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6367
|
+
var _a, _b, _c;
|
|
6368
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createOnsiteInvoiceForBooking(bookingId, createOnsiteInvoiceRequest, options);
|
|
6369
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
6370
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubsStaffApi.createOnsiteInvoiceForBooking']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
6371
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6372
|
+
});
|
|
6373
|
+
},
|
|
6829
6374
|
/**
|
|
6830
6375
|
*
|
|
6831
6376
|
* @param {*} [options] Override http request option.
|
|
@@ -6939,22 +6484,6 @@ export const ClubsStaffApiFp = function (configuration) {
|
|
|
6939
6484
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6940
6485
|
});
|
|
6941
6486
|
},
|
|
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
6487
|
};
|
|
6959
6488
|
};
|
|
6960
6489
|
/**
|
|
@@ -6964,6 +6493,15 @@ export const ClubsStaffApiFp = function (configuration) {
|
|
|
6964
6493
|
export const ClubsStaffApiFactory = function (configuration, basePath, axios) {
|
|
6965
6494
|
const localVarFp = ClubsStaffApiFp(configuration);
|
|
6966
6495
|
return {
|
|
6496
|
+
/**
|
|
6497
|
+
* Crée une facture manuelle (on-site) et l\'associe à une réservation
|
|
6498
|
+
* @param {ClubsStaffApiCreateOnsiteInvoiceForBookingRequest} requestParameters Request parameters.
|
|
6499
|
+
* @param {*} [options] Override http request option.
|
|
6500
|
+
* @throws {RequiredError}
|
|
6501
|
+
*/
|
|
6502
|
+
createOnsiteInvoiceForBooking(requestParameters, options) {
|
|
6503
|
+
return localVarFp.createOnsiteInvoiceForBooking(requestParameters.bookingId, requestParameters.createOnsiteInvoiceRequest, options).then((request) => request(axios, basePath));
|
|
6504
|
+
},
|
|
6967
6505
|
/**
|
|
6968
6506
|
*
|
|
6969
6507
|
* @param {*} [options] Override http request option.
|
|
@@ -7029,15 +6567,6 @@ export const ClubsStaffApiFactory = function (configuration, basePath, axios) {
|
|
|
7029
6567
|
getUserProfileStaff(requestParameters, options) {
|
|
7030
6568
|
return localVarFp.getUserProfileStaff(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
7031
6569
|
},
|
|
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
6570
|
};
|
|
7042
6571
|
};
|
|
7043
6572
|
/**
|
|
@@ -7047,6 +6576,16 @@ export const ClubsStaffApiFactory = function (configuration, basePath, axios) {
|
|
|
7047
6576
|
* @extends {BaseAPI}
|
|
7048
6577
|
*/
|
|
7049
6578
|
export class ClubsStaffApi extends BaseAPI {
|
|
6579
|
+
/**
|
|
6580
|
+
* Crée une facture manuelle (on-site) et l\'associe à une réservation
|
|
6581
|
+
* @param {ClubsStaffApiCreateOnsiteInvoiceForBookingRequest} requestParameters Request parameters.
|
|
6582
|
+
* @param {*} [options] Override http request option.
|
|
6583
|
+
* @throws {RequiredError}
|
|
6584
|
+
* @memberof ClubsStaffApi
|
|
6585
|
+
*/
|
|
6586
|
+
createOnsiteInvoiceForBooking(requestParameters, options) {
|
|
6587
|
+
return ClubsStaffApiFp(this.configuration).createOnsiteInvoiceForBooking(requestParameters.bookingId, requestParameters.createOnsiteInvoiceRequest, options).then((request) => request(this.axios, this.basePath));
|
|
6588
|
+
}
|
|
7050
6589
|
/**
|
|
7051
6590
|
*
|
|
7052
6591
|
* @param {*} [options] Override http request option.
|
|
@@ -7120,16 +6659,6 @@ export class ClubsStaffApi extends BaseAPI {
|
|
|
7120
6659
|
getUserProfileStaff(requestParameters, options) {
|
|
7121
6660
|
return ClubsStaffApiFp(this.configuration).getUserProfileStaff(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
7122
6661
|
}
|
|
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
6662
|
}
|
|
7134
6663
|
/**
|
|
7135
6664
|
* DefaultApi - axios parameter creator
|
|
@@ -7558,6 +7087,38 @@ export const GetPublishedEventsByClubIdTypeEnum = {
|
|
|
7558
7087
|
*/
|
|
7559
7088
|
export const EventsManagerApiAxiosParamCreator = function (configuration) {
|
|
7560
7089
|
return {
|
|
7090
|
+
/**
|
|
7091
|
+
* Check if there are bookings overlapping an event window (for create/update/delete)
|
|
7092
|
+
* @param {EventConflictCheckRequest} eventConflictCheckRequest
|
|
7093
|
+
* @param {*} [options] Override http request option.
|
|
7094
|
+
* @throws {RequiredError}
|
|
7095
|
+
*/
|
|
7096
|
+
checkEventConflicts: (eventConflictCheckRequest_1, ...args_1) => __awaiter(this, [eventConflictCheckRequest_1, ...args_1], void 0, function* (eventConflictCheckRequest, options = {}) {
|
|
7097
|
+
// verify required parameter 'eventConflictCheckRequest' is not null or undefined
|
|
7098
|
+
assertParamExists('checkEventConflicts', 'eventConflictCheckRequest', eventConflictCheckRequest);
|
|
7099
|
+
const localVarPath = `/api/events/manager/checkConflicts`;
|
|
7100
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7101
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7102
|
+
let baseOptions;
|
|
7103
|
+
if (configuration) {
|
|
7104
|
+
baseOptions = configuration.baseOptions;
|
|
7105
|
+
}
|
|
7106
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
7107
|
+
const localVarHeaderParameter = {};
|
|
7108
|
+
const localVarQueryParameter = {};
|
|
7109
|
+
// authentication bearerAuth required
|
|
7110
|
+
// http bearer authentication required
|
|
7111
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
7112
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
7113
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7114
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7115
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7116
|
+
localVarRequestOptions.data = serializeDataIfNeeded(eventConflictCheckRequest, localVarRequestOptions, configuration);
|
|
7117
|
+
return {
|
|
7118
|
+
url: toPathString(localVarUrlObj),
|
|
7119
|
+
options: localVarRequestOptions,
|
|
7120
|
+
};
|
|
7121
|
+
}),
|
|
7561
7122
|
/**
|
|
7562
7123
|
* Create a new event (manager)
|
|
7563
7124
|
* @param {CreateEventRequest} createEventRequest
|
|
@@ -7658,10 +7219,44 @@ export const EventsManagerApiAxiosParamCreator = function (configuration) {
|
|
|
7658
7219
|
* @param {*} [options] Override http request option.
|
|
7659
7220
|
* @throws {RequiredError}
|
|
7660
7221
|
*/
|
|
7661
|
-
unpublishEvent: (eventId_1, ...args_1) => __awaiter(this, [eventId_1, ...args_1], void 0, function* (eventId, options = {}) {
|
|
7222
|
+
unpublishEvent: (eventId_1, ...args_1) => __awaiter(this, [eventId_1, ...args_1], void 0, function* (eventId, options = {}) {
|
|
7223
|
+
// verify required parameter 'eventId' is not null or undefined
|
|
7224
|
+
assertParamExists('unpublishEvent', 'eventId', eventId);
|
|
7225
|
+
const localVarPath = `/api/events/manager/unpublishEvent/{eventId}`
|
|
7226
|
+
.replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
|
|
7227
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7228
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7229
|
+
let baseOptions;
|
|
7230
|
+
if (configuration) {
|
|
7231
|
+
baseOptions = configuration.baseOptions;
|
|
7232
|
+
}
|
|
7233
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
7234
|
+
const localVarHeaderParameter = {};
|
|
7235
|
+
const localVarQueryParameter = {};
|
|
7236
|
+
// authentication bearerAuth required
|
|
7237
|
+
// http bearer authentication required
|
|
7238
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
7239
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7240
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7241
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7242
|
+
return {
|
|
7243
|
+
url: toPathString(localVarUrlObj),
|
|
7244
|
+
options: localVarRequestOptions,
|
|
7245
|
+
};
|
|
7246
|
+
}),
|
|
7247
|
+
/**
|
|
7248
|
+
* Update an event (manager)
|
|
7249
|
+
* @param {string} eventId
|
|
7250
|
+
* @param {UpdateEventRequest} updateEventRequest
|
|
7251
|
+
* @param {*} [options] Override http request option.
|
|
7252
|
+
* @throws {RequiredError}
|
|
7253
|
+
*/
|
|
7254
|
+
updateEvent: (eventId_1, updateEventRequest_1, ...args_1) => __awaiter(this, [eventId_1, updateEventRequest_1, ...args_1], void 0, function* (eventId, updateEventRequest, options = {}) {
|
|
7662
7255
|
// verify required parameter 'eventId' is not null or undefined
|
|
7663
|
-
assertParamExists('
|
|
7664
|
-
|
|
7256
|
+
assertParamExists('updateEvent', 'eventId', eventId);
|
|
7257
|
+
// verify required parameter 'updateEventRequest' is not null or undefined
|
|
7258
|
+
assertParamExists('updateEvent', 'updateEventRequest', updateEventRequest);
|
|
7259
|
+
const localVarPath = `/api/events/manager/updateEvent/{eventId}`
|
|
7665
7260
|
.replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
|
|
7666
7261
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7667
7262
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -7675,27 +7270,29 @@ export const EventsManagerApiAxiosParamCreator = function (configuration) {
|
|
|
7675
7270
|
// authentication bearerAuth required
|
|
7676
7271
|
// http bearer authentication required
|
|
7677
7272
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
7273
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
7678
7274
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7679
7275
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7680
7276
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7277
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateEventRequest, localVarRequestOptions, configuration);
|
|
7681
7278
|
return {
|
|
7682
7279
|
url: toPathString(localVarUrlObj),
|
|
7683
7280
|
options: localVarRequestOptions,
|
|
7684
7281
|
};
|
|
7685
7282
|
}),
|
|
7686
7283
|
/**
|
|
7687
|
-
* Update
|
|
7284
|
+
* Update a published event (manager) and propagate slot changes and conflicts
|
|
7688
7285
|
* @param {string} eventId
|
|
7689
7286
|
* @param {UpdateEventRequest} updateEventRequest
|
|
7690
7287
|
* @param {*} [options] Override http request option.
|
|
7691
7288
|
* @throws {RequiredError}
|
|
7692
7289
|
*/
|
|
7693
|
-
|
|
7290
|
+
updatePublishedEvent: (eventId_1, updateEventRequest_1, ...args_1) => __awaiter(this, [eventId_1, updateEventRequest_1, ...args_1], void 0, function* (eventId, updateEventRequest, options = {}) {
|
|
7694
7291
|
// verify required parameter 'eventId' is not null or undefined
|
|
7695
|
-
assertParamExists('
|
|
7292
|
+
assertParamExists('updatePublishedEvent', 'eventId', eventId);
|
|
7696
7293
|
// verify required parameter 'updateEventRequest' is not null or undefined
|
|
7697
|
-
assertParamExists('
|
|
7698
|
-
const localVarPath = `/api/events/manager/
|
|
7294
|
+
assertParamExists('updatePublishedEvent', 'updateEventRequest', updateEventRequest);
|
|
7295
|
+
const localVarPath = `/api/events/manager/updatePublishedEvent/{eventId}`
|
|
7699
7296
|
.replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
|
|
7700
7297
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7701
7298
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -7728,6 +7325,21 @@ export const EventsManagerApiAxiosParamCreator = function (configuration) {
|
|
|
7728
7325
|
export const EventsManagerApiFp = function (configuration) {
|
|
7729
7326
|
const localVarAxiosParamCreator = EventsManagerApiAxiosParamCreator(configuration);
|
|
7730
7327
|
return {
|
|
7328
|
+
/**
|
|
7329
|
+
* Check if there are bookings overlapping an event window (for create/update/delete)
|
|
7330
|
+
* @param {EventConflictCheckRequest} eventConflictCheckRequest
|
|
7331
|
+
* @param {*} [options] Override http request option.
|
|
7332
|
+
* @throws {RequiredError}
|
|
7333
|
+
*/
|
|
7334
|
+
checkEventConflicts(eventConflictCheckRequest, options) {
|
|
7335
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7336
|
+
var _a, _b, _c;
|
|
7337
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.checkEventConflicts(eventConflictCheckRequest, options);
|
|
7338
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7339
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsManagerApi.checkEventConflicts']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7340
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7341
|
+
});
|
|
7342
|
+
},
|
|
7731
7343
|
/**
|
|
7732
7344
|
* Create a new event (manager)
|
|
7733
7345
|
* @param {CreateEventRequest} createEventRequest
|
|
@@ -7804,6 +7416,22 @@ export const EventsManagerApiFp = function (configuration) {
|
|
|
7804
7416
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7805
7417
|
});
|
|
7806
7418
|
},
|
|
7419
|
+
/**
|
|
7420
|
+
* Update a published event (manager) and propagate slot changes and conflicts
|
|
7421
|
+
* @param {string} eventId
|
|
7422
|
+
* @param {UpdateEventRequest} updateEventRequest
|
|
7423
|
+
* @param {*} [options] Override http request option.
|
|
7424
|
+
* @throws {RequiredError}
|
|
7425
|
+
*/
|
|
7426
|
+
updatePublishedEvent(eventId, updateEventRequest, options) {
|
|
7427
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7428
|
+
var _a, _b, _c;
|
|
7429
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updatePublishedEvent(eventId, updateEventRequest, options);
|
|
7430
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7431
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsManagerApi.updatePublishedEvent']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7432
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7433
|
+
});
|
|
7434
|
+
},
|
|
7807
7435
|
};
|
|
7808
7436
|
};
|
|
7809
7437
|
/**
|
|
@@ -7813,6 +7441,15 @@ export const EventsManagerApiFp = function (configuration) {
|
|
|
7813
7441
|
export const EventsManagerApiFactory = function (configuration, basePath, axios) {
|
|
7814
7442
|
const localVarFp = EventsManagerApiFp(configuration);
|
|
7815
7443
|
return {
|
|
7444
|
+
/**
|
|
7445
|
+
* Check if there are bookings overlapping an event window (for create/update/delete)
|
|
7446
|
+
* @param {EventsManagerApiCheckEventConflictsRequest} requestParameters Request parameters.
|
|
7447
|
+
* @param {*} [options] Override http request option.
|
|
7448
|
+
* @throws {RequiredError}
|
|
7449
|
+
*/
|
|
7450
|
+
checkEventConflicts(requestParameters, options) {
|
|
7451
|
+
return localVarFp.checkEventConflicts(requestParameters.eventConflictCheckRequest, options).then((request) => request(axios, basePath));
|
|
7452
|
+
},
|
|
7816
7453
|
/**
|
|
7817
7454
|
* Create a new event (manager)
|
|
7818
7455
|
* @param {EventsManagerApiCreateEventRequest} requestParameters Request parameters.
|
|
@@ -7858,6 +7495,15 @@ export const EventsManagerApiFactory = function (configuration, basePath, axios)
|
|
|
7858
7495
|
updateEvent(requestParameters, options) {
|
|
7859
7496
|
return localVarFp.updateEvent(requestParameters.eventId, requestParameters.updateEventRequest, options).then((request) => request(axios, basePath));
|
|
7860
7497
|
},
|
|
7498
|
+
/**
|
|
7499
|
+
* Update a published event (manager) and propagate slot changes and conflicts
|
|
7500
|
+
* @param {EventsManagerApiUpdatePublishedEventRequest} requestParameters Request parameters.
|
|
7501
|
+
* @param {*} [options] Override http request option.
|
|
7502
|
+
* @throws {RequiredError}
|
|
7503
|
+
*/
|
|
7504
|
+
updatePublishedEvent(requestParameters, options) {
|
|
7505
|
+
return localVarFp.updatePublishedEvent(requestParameters.eventId, requestParameters.updateEventRequest, options).then((request) => request(axios, basePath));
|
|
7506
|
+
},
|
|
7861
7507
|
};
|
|
7862
7508
|
};
|
|
7863
7509
|
/**
|
|
@@ -7867,6 +7513,16 @@ export const EventsManagerApiFactory = function (configuration, basePath, axios)
|
|
|
7867
7513
|
* @extends {BaseAPI}
|
|
7868
7514
|
*/
|
|
7869
7515
|
export class EventsManagerApi extends BaseAPI {
|
|
7516
|
+
/**
|
|
7517
|
+
* Check if there are bookings overlapping an event window (for create/update/delete)
|
|
7518
|
+
* @param {EventsManagerApiCheckEventConflictsRequest} requestParameters Request parameters.
|
|
7519
|
+
* @param {*} [options] Override http request option.
|
|
7520
|
+
* @throws {RequiredError}
|
|
7521
|
+
* @memberof EventsManagerApi
|
|
7522
|
+
*/
|
|
7523
|
+
checkEventConflicts(requestParameters, options) {
|
|
7524
|
+
return EventsManagerApiFp(this.configuration).checkEventConflicts(requestParameters.eventConflictCheckRequest, options).then((request) => request(this.axios, this.basePath));
|
|
7525
|
+
}
|
|
7870
7526
|
/**
|
|
7871
7527
|
* Create a new event (manager)
|
|
7872
7528
|
* @param {EventsManagerApiCreateEventRequest} requestParameters Request parameters.
|
|
@@ -7917,6 +7573,16 @@ export class EventsManagerApi extends BaseAPI {
|
|
|
7917
7573
|
updateEvent(requestParameters, options) {
|
|
7918
7574
|
return EventsManagerApiFp(this.configuration).updateEvent(requestParameters.eventId, requestParameters.updateEventRequest, options).then((request) => request(this.axios, this.basePath));
|
|
7919
7575
|
}
|
|
7576
|
+
/**
|
|
7577
|
+
* Update a published event (manager) and propagate slot changes and conflicts
|
|
7578
|
+
* @param {EventsManagerApiUpdatePublishedEventRequest} requestParameters Request parameters.
|
|
7579
|
+
* @param {*} [options] Override http request option.
|
|
7580
|
+
* @throws {RequiredError}
|
|
7581
|
+
* @memberof EventsManagerApi
|
|
7582
|
+
*/
|
|
7583
|
+
updatePublishedEvent(requestParameters, options) {
|
|
7584
|
+
return EventsManagerApiFp(this.configuration).updatePublishedEvent(requestParameters.eventId, requestParameters.updateEventRequest, options).then((request) => request(this.axios, this.basePath));
|
|
7585
|
+
}
|
|
7920
7586
|
}
|
|
7921
7587
|
/**
|
|
7922
7588
|
* EventsStaffApi - axios parameter creator
|
|
@@ -7925,47 +7591,36 @@ export class EventsManagerApi extends BaseAPI {
|
|
|
7925
7591
|
export const EventsStaffApiAxiosParamCreator = function (configuration) {
|
|
7926
7592
|
return {
|
|
7927
7593
|
/**
|
|
7928
|
-
*
|
|
7929
|
-
* @param {string}
|
|
7930
|
-
* @param {
|
|
7931
|
-
* @param {GetDailyEventsVisibilityTypeEnum} [visibilityType]
|
|
7932
|
-
* @param {GetDailyEventsTypeEnum} [type]
|
|
7933
|
-
* @param {string} [sportId]
|
|
7594
|
+
* Check-in des participants d\'un EventBooking (clubs avec paiements)
|
|
7595
|
+
* @param {string} eventBookingId
|
|
7596
|
+
* @param {CheckInEventParticipantsRequest} checkInEventParticipantsRequest
|
|
7934
7597
|
* @param {*} [options] Override http request option.
|
|
7935
7598
|
* @throws {RequiredError}
|
|
7936
7599
|
*/
|
|
7937
|
-
|
|
7938
|
-
|
|
7600
|
+
checkInEventParticipants: (eventBookingId_1, checkInEventParticipantsRequest_1, ...args_1) => __awaiter(this, [eventBookingId_1, checkInEventParticipantsRequest_1, ...args_1], void 0, function* (eventBookingId, checkInEventParticipantsRequest, options = {}) {
|
|
7601
|
+
// verify required parameter 'eventBookingId' is not null or undefined
|
|
7602
|
+
assertParamExists('checkInEventParticipants', 'eventBookingId', eventBookingId);
|
|
7603
|
+
// verify required parameter 'checkInEventParticipantsRequest' is not null or undefined
|
|
7604
|
+
assertParamExists('checkInEventParticipants', 'checkInEventParticipantsRequest', checkInEventParticipantsRequest);
|
|
7605
|
+
const localVarPath = `/api/events/{eventBookingId}/check-in`
|
|
7606
|
+
.replace(`{${"eventBookingId"}}`, encodeURIComponent(String(eventBookingId)));
|
|
7939
7607
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7940
7608
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7941
7609
|
let baseOptions;
|
|
7942
7610
|
if (configuration) {
|
|
7943
7611
|
baseOptions = configuration.baseOptions;
|
|
7944
7612
|
}
|
|
7945
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
7613
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
7946
7614
|
const localVarHeaderParameter = {};
|
|
7947
7615
|
const localVarQueryParameter = {};
|
|
7948
7616
|
// authentication bearerAuth required
|
|
7949
7617
|
// http bearer authentication required
|
|
7950
7618
|
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
|
-
}
|
|
7619
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
7966
7620
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7967
7621
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7968
7622
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7623
|
+
localVarRequestOptions.data = serializeDataIfNeeded(checkInEventParticipantsRequest, localVarRequestOptions, configuration);
|
|
7969
7624
|
return {
|
|
7970
7625
|
url: toPathString(localVarUrlObj),
|
|
7971
7626
|
options: localVarRequestOptions,
|
|
@@ -7998,100 +7653,6 @@ export const EventsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
7998
7653
|
options: localVarRequestOptions,
|
|
7999
7654
|
};
|
|
8000
7655
|
}),
|
|
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
7656
|
};
|
|
8096
7657
|
};
|
|
8097
7658
|
/**
|
|
@@ -8102,21 +7663,18 @@ export const EventsStaffApiFp = function (configuration) {
|
|
|
8102
7663
|
const localVarAxiosParamCreator = EventsStaffApiAxiosParamCreator(configuration);
|
|
8103
7664
|
return {
|
|
8104
7665
|
/**
|
|
8105
|
-
*
|
|
8106
|
-
* @param {string}
|
|
8107
|
-
* @param {
|
|
8108
|
-
* @param {GetDailyEventsVisibilityTypeEnum} [visibilityType]
|
|
8109
|
-
* @param {GetDailyEventsTypeEnum} [type]
|
|
8110
|
-
* @param {string} [sportId]
|
|
7666
|
+
* Check-in des participants d\'un EventBooking (clubs avec paiements)
|
|
7667
|
+
* @param {string} eventBookingId
|
|
7668
|
+
* @param {CheckInEventParticipantsRequest} checkInEventParticipantsRequest
|
|
8111
7669
|
* @param {*} [options] Override http request option.
|
|
8112
7670
|
* @throws {RequiredError}
|
|
8113
7671
|
*/
|
|
8114
|
-
|
|
7672
|
+
checkInEventParticipants(eventBookingId, checkInEventParticipantsRequest, options) {
|
|
8115
7673
|
return __awaiter(this, void 0, void 0, function* () {
|
|
8116
7674
|
var _a, _b, _c;
|
|
8117
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
7675
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.checkInEventParticipants(eventBookingId, checkInEventParticipantsRequest, options);
|
|
8118
7676
|
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.
|
|
7677
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsStaffApi.checkInEventParticipants']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8120
7678
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8121
7679
|
});
|
|
8122
7680
|
},
|
|
@@ -8134,44 +7692,6 @@ export const EventsStaffApiFp = function (configuration) {
|
|
|
8134
7692
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8135
7693
|
});
|
|
8136
7694
|
},
|
|
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
7695
|
};
|
|
8176
7696
|
};
|
|
8177
7697
|
/**
|
|
@@ -8182,13 +7702,13 @@ export const EventsStaffApiFactory = function (configuration, basePath, axios) {
|
|
|
8182
7702
|
const localVarFp = EventsStaffApiFp(configuration);
|
|
8183
7703
|
return {
|
|
8184
7704
|
/**
|
|
8185
|
-
*
|
|
8186
|
-
* @param {
|
|
7705
|
+
* Check-in des participants d\'un EventBooking (clubs avec paiements)
|
|
7706
|
+
* @param {EventsStaffApiCheckInEventParticipantsRequest} requestParameters Request parameters.
|
|
8187
7707
|
* @param {*} [options] Override http request option.
|
|
8188
7708
|
* @throws {RequiredError}
|
|
8189
7709
|
*/
|
|
8190
|
-
|
|
8191
|
-
return localVarFp.
|
|
7710
|
+
checkInEventParticipants(requestParameters, options) {
|
|
7711
|
+
return localVarFp.checkInEventParticipants(requestParameters.eventBookingId, requestParameters.checkInEventParticipantsRequest, options).then((request) => request(axios, basePath));
|
|
8192
7712
|
},
|
|
8193
7713
|
/**
|
|
8194
7714
|
* Get all events for a club (staff only)
|
|
@@ -8198,24 +7718,6 @@ export const EventsStaffApiFactory = function (configuration, basePath, axios) {
|
|
|
8198
7718
|
getEventsByClub(options) {
|
|
8199
7719
|
return localVarFp.getEventsByClub(options).then((request) => request(axios, basePath));
|
|
8200
7720
|
},
|
|
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
7721
|
};
|
|
8220
7722
|
};
|
|
8221
7723
|
/**
|
|
@@ -8226,14 +7728,14 @@ export const EventsStaffApiFactory = function (configuration, basePath, axios) {
|
|
|
8226
7728
|
*/
|
|
8227
7729
|
export class EventsStaffApi extends BaseAPI {
|
|
8228
7730
|
/**
|
|
8229
|
-
*
|
|
8230
|
-
* @param {
|
|
7731
|
+
* Check-in des participants d\'un EventBooking (clubs avec paiements)
|
|
7732
|
+
* @param {EventsStaffApiCheckInEventParticipantsRequest} requestParameters Request parameters.
|
|
8231
7733
|
* @param {*} [options] Override http request option.
|
|
8232
7734
|
* @throws {RequiredError}
|
|
8233
7735
|
* @memberof EventsStaffApi
|
|
8234
7736
|
*/
|
|
8235
|
-
|
|
8236
|
-
return EventsStaffApiFp(this.configuration).
|
|
7737
|
+
checkInEventParticipants(requestParameters, options) {
|
|
7738
|
+
return EventsStaffApiFp(this.configuration).checkInEventParticipants(requestParameters.eventBookingId, requestParameters.checkInEventParticipantsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
8237
7739
|
}
|
|
8238
7740
|
/**
|
|
8239
7741
|
* Get all events for a club (staff only)
|
|
@@ -8244,72 +7746,7 @@ export class EventsStaffApi extends BaseAPI {
|
|
|
8244
7746
|
getEventsByClub(options) {
|
|
8245
7747
|
return EventsStaffApiFp(this.configuration).getEventsByClub(options).then((request) => request(this.axios, this.basePath));
|
|
8246
7748
|
}
|
|
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
7749
|
}
|
|
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
7750
|
/**
|
|
8314
7751
|
* SportsManagerApi - axios parameter creator
|
|
8315
7752
|
* @export
|