@tennac-booking/sdk 1.0.110 → 1.0.111
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 +296 -292
- package/README.md +30 -20
- package/api.ts +1991 -1063
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +1222 -662
- package/dist/api.js +1140 -511
- 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 +1222 -662
- package/dist/esm/api.js +1126 -501
- 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/ActiveSubscriptionResponse.md +22 -0
- package/docs/AgendaBooking.md +30 -0
- package/docs/{JoinEventRequestPlayersPaymentMethodsInner.md → AgendaBookingPlayer.md} +9 -5
- package/docs/AgendaBookingSlot.md +30 -0
- package/docs/AgendaPaymentStatus.md +12 -0
- package/docs/BookingsWithTimeBoundsResponse.md +1 -1
- package/docs/ClientAccountOnboardingRequest.md +29 -0
- package/docs/{ClientFullOnboardingResponse.md → ClientAccountOnboardingResponse.md} +11 -7
- package/docs/ClientAccountResponse.md +44 -0
- package/docs/ClientAccountsApi.md +408 -0
- package/docs/ClientApi.md +4 -59
- package/docs/ClientMeResponse.md +28 -0
- package/docs/ClientOnboardingResponse.md +27 -0
- package/docs/{ClientRegisterRequest.md → ClientRegisterRequestBody.md} +7 -7
- package/docs/{CheckInEventParticipantsRequest.md → ClientRegisterResponse.md} +7 -5
- package/docs/ClientSubscriptionResponse.md +34 -0
- package/docs/ClubPlayerDetailResponse.md +2 -0
- package/docs/ClubSummary.md +8 -2
- package/docs/ClubsManagerApi.md +56 -0
- package/docs/ClubsStaffApi.md +55 -59
- package/docs/CreateEventRequest.md +3 -1
- package/docs/EventsManagerApi.md +0 -114
- package/docs/EventsStaffApi.md +159 -20
- package/docs/GetSubscriptionsHistory200Response.md +22 -0
- package/docs/JoinEventRequest.md +0 -8
- package/docs/PaymentMethod.md +0 -4
- package/docs/PublishEventResponse.md +0 -2
- package/docs/UpdateUserCreditsRequest.md +20 -0
- package/index.ts +1 -1
- package/package.json +1 -1
- package/docs/CheckInEventParticipants200Response.md +0 -22
- package/docs/CheckInEventParticipants200ResponseInvoicesInner.md +0 -28
- package/docs/ClientFullOnboardingResponseClub.md +0 -24
- package/docs/ClientRegister201Response.md +0 -26
- package/docs/CreateOnsiteInvoiceRequest.md +0 -28
- package/docs/CreateOnsiteInvoiceResponse.md +0 -22
- package/docs/CreateOnsiteInvoiceResponseInvoice.md +0 -31
- package/docs/EventConflictCheckRequest.md +0 -28
- package/docs/EventConflictCheckResponse.md +0 -26
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.104
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -26,6 +26,16 @@ 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
|
+
};
|
|
29
39
|
export const BookingHistoryPopulatedPerformedByTypeEnum = {
|
|
30
40
|
User: 'user',
|
|
31
41
|
Manager: 'manager',
|
|
@@ -53,6 +63,14 @@ export const CaptureResultStatusEnum = {
|
|
|
53
63
|
Captured: 'captured',
|
|
54
64
|
Failed: 'failed'
|
|
55
65
|
};
|
|
66
|
+
export const ClientAccountOnboardingRequestBusinessTypeEnum = {
|
|
67
|
+
Individual: 'individual',
|
|
68
|
+
Company: 'company'
|
|
69
|
+
};
|
|
70
|
+
export const ClientAccountOnboardingRequestSubscriptionTypeEnum = {
|
|
71
|
+
Basic: 'basic',
|
|
72
|
+
PlatformWithConnect: 'platform_with_connect'
|
|
73
|
+
};
|
|
56
74
|
export const ClubRoleResponseRoleEnum = {
|
|
57
75
|
Admin: 'admin',
|
|
58
76
|
Manager: 'manager',
|
|
@@ -157,8 +175,6 @@ export const InvoiceStatus = {
|
|
|
157
175
|
export const PaymentMethod = {
|
|
158
176
|
Online: 'online',
|
|
159
177
|
Onsite: 'onsite',
|
|
160
|
-
OnsiteCard: 'onsite_card',
|
|
161
|
-
OnsiteCash: 'onsite_cash',
|
|
162
178
|
Free: 'free'
|
|
163
179
|
};
|
|
164
180
|
/**
|
|
@@ -1397,35 +1413,6 @@ export class BookingsUserApi extends BaseAPI {
|
|
|
1397
1413
|
*/
|
|
1398
1414
|
export const ClientApiAxiosParamCreator = function (configuration) {
|
|
1399
1415
|
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
|
-
}),
|
|
1429
1416
|
/**
|
|
1430
1417
|
* Récupère la liste des clubs gérés par l\'utilisateur authentifié
|
|
1431
1418
|
* @param {*} [options] Override http request option.
|
|
@@ -1454,7 +1441,7 @@ export const ClientApiAxiosParamCreator = function (configuration) {
|
|
|
1454
1441
|
};
|
|
1455
1442
|
}),
|
|
1456
1443
|
/**
|
|
1457
|
-
* Enregistre un nouveau club pour la plateforme
|
|
1444
|
+
* Enregistre un nouveau club pour la plateforme - Crée un compte Stripe Connect Express - Crée le club dans la base de données - Assigne l\'utilisateur comme manager du club - Crée les paramètres par défaut du club - Envoie le lien d\'onboarding Stripe par email
|
|
1458
1445
|
* @param {ClientOnboardingRequestBody} clientOnboardingRequestBody Les données du club à créer
|
|
1459
1446
|
* @param {*} [options] Override http request option.
|
|
1460
1447
|
* @throws {RequiredError}
|
|
@@ -1472,9 +1459,6 @@ export const ClientApiAxiosParamCreator = function (configuration) {
|
|
|
1472
1459
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1473
1460
|
const localVarHeaderParameter = {};
|
|
1474
1461
|
const localVarQueryParameter = {};
|
|
1475
|
-
// authentication clientAuth required
|
|
1476
|
-
// http bearer authentication required
|
|
1477
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1478
1462
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1479
1463
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1480
1464
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -1494,21 +1478,6 @@ export const ClientApiAxiosParamCreator = function (configuration) {
|
|
|
1494
1478
|
export const ClientApiFp = function (configuration) {
|
|
1495
1479
|
const localVarAxiosParamCreator = ClientApiAxiosParamCreator(configuration);
|
|
1496
1480
|
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
|
-
},
|
|
1512
1481
|
/**
|
|
1513
1482
|
* Récupère la liste des clubs gérés par l\'utilisateur authentifié
|
|
1514
1483
|
* @param {*} [options] Override http request option.
|
|
@@ -1524,7 +1493,7 @@ export const ClientApiFp = function (configuration) {
|
|
|
1524
1493
|
});
|
|
1525
1494
|
},
|
|
1526
1495
|
/**
|
|
1527
|
-
* Enregistre un nouveau club pour la plateforme
|
|
1496
|
+
* Enregistre un nouveau club pour la plateforme - Crée un compte Stripe Connect Express - Crée le club dans la base de données - Assigne l\'utilisateur comme manager du club - Crée les paramètres par défaut du club - Envoie le lien d\'onboarding Stripe par email
|
|
1528
1497
|
* @param {ClientOnboardingRequestBody} clientOnboardingRequestBody Les données du club à créer
|
|
1529
1498
|
* @param {*} [options] Override http request option.
|
|
1530
1499
|
* @throws {RequiredError}
|
|
@@ -1547,15 +1516,6 @@ export const ClientApiFp = function (configuration) {
|
|
|
1547
1516
|
export const ClientApiFactory = function (configuration, basePath, axios) {
|
|
1548
1517
|
const localVarFp = ClientApiFp(configuration);
|
|
1549
1518
|
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
|
-
},
|
|
1559
1519
|
/**
|
|
1560
1520
|
* Récupère la liste des clubs gérés par l\'utilisateur authentifié
|
|
1561
1521
|
* @param {*} [options] Override http request option.
|
|
@@ -1565,7 +1525,7 @@ export const ClientApiFactory = function (configuration, basePath, axios) {
|
|
|
1565
1525
|
return localVarFp.getManagedClubs(options).then((request) => request(axios, basePath));
|
|
1566
1526
|
},
|
|
1567
1527
|
/**
|
|
1568
|
-
* Enregistre un nouveau club pour la plateforme
|
|
1528
|
+
* Enregistre un nouveau club pour la plateforme - Crée un compte Stripe Connect Express - Crée le club dans la base de données - Assigne l\'utilisateur comme manager du club - Crée les paramètres par défaut du club - Envoie le lien d\'onboarding Stripe par email
|
|
1569
1529
|
* @param {ClientApiOnboardClubRequest} requestParameters Request parameters.
|
|
1570
1530
|
* @param {*} [options] Override http request option.
|
|
1571
1531
|
* @throws {RequiredError}
|
|
@@ -1582,16 +1542,6 @@ export const ClientApiFactory = function (configuration, basePath, axios) {
|
|
|
1582
1542
|
* @extends {BaseAPI}
|
|
1583
1543
|
*/
|
|
1584
1544
|
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
|
-
}
|
|
1595
1545
|
/**
|
|
1596
1546
|
* Récupère la liste des clubs gérés par l\'utilisateur authentifié
|
|
1597
1547
|
* @param {*} [options] Override http request option.
|
|
@@ -1602,7 +1552,7 @@ export class ClientApi extends BaseAPI {
|
|
|
1602
1552
|
return ClientApiFp(this.configuration).getManagedClubs(options).then((request) => request(this.axios, this.basePath));
|
|
1603
1553
|
}
|
|
1604
1554
|
/**
|
|
1605
|
-
* Enregistre un nouveau club pour la plateforme
|
|
1555
|
+
* Enregistre un nouveau club pour la plateforme - Crée un compte Stripe Connect Express - Crée le club dans la base de données - Assigne l\'utilisateur comme manager du club - Crée les paramètres par défaut du club - Envoie le lien d\'onboarding Stripe par email
|
|
1606
1556
|
* @param {ClientApiOnboardClubRequest} requestParameters Request parameters.
|
|
1607
1557
|
* @param {*} [options] Override http request option.
|
|
1608
1558
|
* @throws {RequiredError}
|
|
@@ -1613,18 +1563,18 @@ export class ClientApi extends BaseAPI {
|
|
|
1613
1563
|
}
|
|
1614
1564
|
}
|
|
1615
1565
|
/**
|
|
1616
|
-
*
|
|
1566
|
+
* ClientAccountsApi - axios parameter creator
|
|
1617
1567
|
* @export
|
|
1618
1568
|
*/
|
|
1619
|
-
export const
|
|
1569
|
+
export const ClientAccountsApiAxiosParamCreator = function (configuration) {
|
|
1620
1570
|
return {
|
|
1621
1571
|
/**
|
|
1622
|
-
*
|
|
1572
|
+
* Informations de l\'utilisateur client authentifié (token clientAuth)
|
|
1623
1573
|
* @param {*} [options] Override http request option.
|
|
1624
1574
|
* @throws {RequiredError}
|
|
1625
1575
|
*/
|
|
1626
|
-
|
|
1627
|
-
const localVarPath = `/
|
|
1576
|
+
clientAuthMe: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
1577
|
+
const localVarPath = `/client-accounts/client-auth/me`;
|
|
1628
1578
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1629
1579
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1630
1580
|
let baseOptions;
|
|
@@ -1634,7 +1584,7 @@ export const ClubAnalyticsApiAxiosParamCreator = function (configuration) {
|
|
|
1634
1584
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1635
1585
|
const localVarHeaderParameter = {};
|
|
1636
1586
|
const localVarQueryParameter = {};
|
|
1637
|
-
// authentication
|
|
1587
|
+
// authentication clientAuth required
|
|
1638
1588
|
// http bearer authentication required
|
|
1639
1589
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1640
1590
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -1646,12 +1596,16 @@ export const ClubAnalyticsApiAxiosParamCreator = function (configuration) {
|
|
|
1646
1596
|
};
|
|
1647
1597
|
}),
|
|
1648
1598
|
/**
|
|
1649
|
-
* Récupère
|
|
1599
|
+
* Récupère le compte client par son ID
|
|
1600
|
+
* @param {string} accountId L\'ID du compte client
|
|
1650
1601
|
* @param {*} [options] Override http request option.
|
|
1651
1602
|
* @throws {RequiredError}
|
|
1652
1603
|
*/
|
|
1653
|
-
|
|
1654
|
-
|
|
1604
|
+
getClientAccountById: (accountId_1, ...args_1) => __awaiter(this, [accountId_1, ...args_1], void 0, function* (accountId, options = {}) {
|
|
1605
|
+
// verify required parameter 'accountId' is not null or undefined
|
|
1606
|
+
assertParamExists('getClientAccountById', 'accountId', accountId);
|
|
1607
|
+
const localVarPath = `/client-accounts/{accountId}`
|
|
1608
|
+
.replace(`{${"accountId"}}`, encodeURIComponent(String(accountId)));
|
|
1655
1609
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1656
1610
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1657
1611
|
let baseOptions;
|
|
@@ -1672,113 +1626,13 @@ export const ClubAnalyticsApiAxiosParamCreator = function (configuration) {
|
|
|
1672
1626
|
options: localVarRequestOptions,
|
|
1673
1627
|
};
|
|
1674
1628
|
}),
|
|
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 {
|
|
1771
1629
|
/**
|
|
1772
|
-
* Récupère
|
|
1773
|
-
* @param {string} sportId
|
|
1630
|
+
* Récupère l\'abonnement actif du compte client authentifié
|
|
1774
1631
|
* @param {*} [options] Override http request option.
|
|
1775
1632
|
* @throws {RequiredError}
|
|
1776
1633
|
*/
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
assertParamExists('getAnalyticsBySport', 'sportId', sportId);
|
|
1780
|
-
const localVarPath = `/api/club-analytics/sport/{sportId}/analytics`
|
|
1781
|
-
.replace(`{${"sportId"}}`, encodeURIComponent(String(sportId)));
|
|
1634
|
+
getMyActiveSubscription: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
1635
|
+
const localVarPath = `/client-accounts/me/subscription`;
|
|
1782
1636
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1783
1637
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1784
1638
|
let baseOptions;
|
|
@@ -1800,18 +1654,12 @@ export const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
1800
1654
|
};
|
|
1801
1655
|
}),
|
|
1802
1656
|
/**
|
|
1803
|
-
* Récupère
|
|
1804
|
-
* @param {string} playerId
|
|
1805
|
-
* @param {number} [page]
|
|
1806
|
-
* @param {number} [pageSize]
|
|
1657
|
+
* Récupère le compte client de l\'utilisateur authentifié
|
|
1807
1658
|
* @param {*} [options] Override http request option.
|
|
1808
1659
|
* @throws {RequiredError}
|
|
1809
1660
|
*/
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
assertParamExists('getClubPlayerBookingsById', 'playerId', playerId);
|
|
1813
|
-
const localVarPath = `/api/club-analytics/players/{playerId}/bookings`
|
|
1814
|
-
.replace(`{${"playerId"}}`, encodeURIComponent(String(playerId)));
|
|
1661
|
+
getMyClientAccount: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
1662
|
+
const localVarPath = `/client-accounts/me`;
|
|
1815
1663
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1816
1664
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1817
1665
|
let baseOptions;
|
|
@@ -1824,12 +1672,6 @@ export const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
1824
1672
|
// authentication bearerAuth required
|
|
1825
1673
|
// http bearer authentication required
|
|
1826
1674
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1827
|
-
if (page !== undefined) {
|
|
1828
|
-
localVarQueryParameter['page'] = page;
|
|
1829
|
-
}
|
|
1830
|
-
if (pageSize !== undefined) {
|
|
1831
|
-
localVarQueryParameter['pageSize'] = pageSize;
|
|
1832
|
-
}
|
|
1833
1675
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1834
1676
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1835
1677
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -1839,16 +1681,12 @@ export const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
1839
1681
|
};
|
|
1840
1682
|
}),
|
|
1841
1683
|
/**
|
|
1842
|
-
* Récupère
|
|
1843
|
-
* @param {string} playerId
|
|
1684
|
+
* Récupère l\'historique des abonnements du compte client authentifié
|
|
1844
1685
|
* @param {*} [options] Override http request option.
|
|
1845
1686
|
* @throws {RequiredError}
|
|
1846
1687
|
*/
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
assertParamExists('getClubPlayerById', 'playerId', playerId);
|
|
1850
|
-
const localVarPath = `/api/club-analytics/players/{playerId}`
|
|
1851
|
-
.replace(`{${"playerId"}}`, encodeURIComponent(String(playerId)));
|
|
1688
|
+
getSubscriptionsHistory: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
1689
|
+
const localVarPath = `/client-accounts/me/subscriptions-history`;
|
|
1852
1690
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1853
1691
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1854
1692
|
let baseOptions;
|
|
@@ -1870,16 +1708,12 @@ export const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
1870
1708
|
};
|
|
1871
1709
|
}),
|
|
1872
1710
|
/**
|
|
1873
|
-
*
|
|
1874
|
-
* @param {string} playerId
|
|
1711
|
+
* Liste les prix Stripe disponibles pour les abonnements client
|
|
1875
1712
|
* @param {*} [options] Override http request option.
|
|
1876
1713
|
* @throws {RequiredError}
|
|
1877
1714
|
*/
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
assertParamExists('getClubPlayerStatisticsById', 'playerId', playerId);
|
|
1881
|
-
const localVarPath = `/api/club-analytics/players/{playerId}/statistics`
|
|
1882
|
-
.replace(`{${"playerId"}}`, encodeURIComponent(String(playerId)));
|
|
1715
|
+
listAvailablePrices: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
1716
|
+
const localVarPath = `/client-accounts/plans/available-prices`;
|
|
1883
1717
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1884
1718
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1885
1719
|
let baseOptions;
|
|
@@ -1901,95 +1735,729 @@ export const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
1901
1735
|
};
|
|
1902
1736
|
}),
|
|
1903
1737
|
/**
|
|
1904
|
-
*
|
|
1738
|
+
* Crée un nouveau compte client avec onboarding Stripe
|
|
1739
|
+
* @param {ClientAccountOnboardingRequest} clientAccountOnboardingRequest Les données du compte à créer
|
|
1905
1740
|
* @param {*} [options] Override http request option.
|
|
1906
1741
|
* @throws {RequiredError}
|
|
1907
1742
|
*/
|
|
1908
|
-
|
|
1909
|
-
|
|
1743
|
+
onboardClientAccount: (clientAccountOnboardingRequest_1, ...args_1) => __awaiter(this, [clientAccountOnboardingRequest_1, ...args_1], void 0, function* (clientAccountOnboardingRequest, options = {}) {
|
|
1744
|
+
// verify required parameter 'clientAccountOnboardingRequest' is not null or undefined
|
|
1745
|
+
assertParamExists('onboardClientAccount', 'clientAccountOnboardingRequest', clientAccountOnboardingRequest);
|
|
1746
|
+
const localVarPath = `/client-accounts/onboarding`;
|
|
1910
1747
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1911
1748
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1912
1749
|
let baseOptions;
|
|
1913
1750
|
if (configuration) {
|
|
1914
1751
|
baseOptions = configuration.baseOptions;
|
|
1915
1752
|
}
|
|
1916
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
1753
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1917
1754
|
const localVarHeaderParameter = {};
|
|
1918
1755
|
const localVarQueryParameter = {};
|
|
1919
|
-
// authentication
|
|
1756
|
+
// authentication clientAuth required
|
|
1920
1757
|
// http bearer authentication required
|
|
1921
1758
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1759
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1922
1760
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1923
1761
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1924
1762
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1763
|
+
localVarRequestOptions.data = serializeDataIfNeeded(clientAccountOnboardingRequest, localVarRequestOptions, configuration);
|
|
1925
1764
|
return {
|
|
1926
1765
|
url: toPathString(localVarUrlObj),
|
|
1927
1766
|
options: localVarRequestOptions,
|
|
1928
1767
|
};
|
|
1929
1768
|
}),
|
|
1930
1769
|
/**
|
|
1931
|
-
*
|
|
1932
|
-
* @param {
|
|
1770
|
+
* Route d\'inscription d\'un utilisateur client (publique)
|
|
1771
|
+
* @param {ClientRegisterRequestBody} clientRegisterRequestBody
|
|
1933
1772
|
* @param {*} [options] Override http request option.
|
|
1934
1773
|
* @throws {RequiredError}
|
|
1935
1774
|
*/
|
|
1936
|
-
|
|
1937
|
-
// verify required parameter '
|
|
1938
|
-
assertParamExists('
|
|
1939
|
-
const localVarPath = `/
|
|
1775
|
+
registerClientUser: (clientRegisterRequestBody_1, ...args_1) => __awaiter(this, [clientRegisterRequestBody_1, ...args_1], void 0, function* (clientRegisterRequestBody, options = {}) {
|
|
1776
|
+
// verify required parameter 'clientRegisterRequestBody' is not null or undefined
|
|
1777
|
+
assertParamExists('registerClientUser', 'clientRegisterRequestBody', clientRegisterRequestBody);
|
|
1778
|
+
const localVarPath = `/client-accounts/register-client-user`;
|
|
1940
1779
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1941
1780
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1942
1781
|
let baseOptions;
|
|
1943
1782
|
if (configuration) {
|
|
1944
1783
|
baseOptions = configuration.baseOptions;
|
|
1945
1784
|
}
|
|
1946
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
1785
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1947
1786
|
const localVarHeaderParameter = {};
|
|
1948
1787
|
const localVarQueryParameter = {};
|
|
1949
|
-
|
|
1950
|
-
// http bearer authentication required
|
|
1951
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1952
|
-
if (date !== undefined) {
|
|
1953
|
-
localVarQueryParameter['date'] = date;
|
|
1954
|
-
}
|
|
1788
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1955
1789
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1956
1790
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1957
1791
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1792
|
+
localVarRequestOptions.data = serializeDataIfNeeded(clientRegisterRequestBody, localVarRequestOptions, configuration);
|
|
1958
1793
|
return {
|
|
1959
1794
|
url: toPathString(localVarUrlObj),
|
|
1960
1795
|
options: localVarRequestOptions,
|
|
1961
1796
|
};
|
|
1962
1797
|
}),
|
|
1798
|
+
};
|
|
1799
|
+
};
|
|
1800
|
+
/**
|
|
1801
|
+
* ClientAccountsApi - functional programming interface
|
|
1802
|
+
* @export
|
|
1803
|
+
*/
|
|
1804
|
+
export const ClientAccountsApiFp = function (configuration) {
|
|
1805
|
+
const localVarAxiosParamCreator = ClientAccountsApiAxiosParamCreator(configuration);
|
|
1806
|
+
return {
|
|
1963
1807
|
/**
|
|
1964
|
-
*
|
|
1808
|
+
* Informations de l\'utilisateur client authentifié (token clientAuth)
|
|
1965
1809
|
* @param {*} [options] Override http request option.
|
|
1966
1810
|
* @throws {RequiredError}
|
|
1967
1811
|
*/
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
}
|
|
1976
|
-
|
|
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
|
-
}),
|
|
1812
|
+
clientAuthMe(options) {
|
|
1813
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1814
|
+
var _a, _b, _c;
|
|
1815
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.clientAuthMe(options);
|
|
1816
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1817
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClientAccountsApi.clientAuthMe']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1818
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1819
|
+
});
|
|
1820
|
+
},
|
|
1990
1821
|
/**
|
|
1991
|
-
* Récupère le
|
|
1992
|
-
* @param {string}
|
|
1822
|
+
* Récupère le compte client par son ID
|
|
1823
|
+
* @param {string} accountId L\'ID du compte client
|
|
1824
|
+
* @param {*} [options] Override http request option.
|
|
1825
|
+
* @throws {RequiredError}
|
|
1826
|
+
*/
|
|
1827
|
+
getClientAccountById(accountId, options) {
|
|
1828
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1829
|
+
var _a, _b, _c;
|
|
1830
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClientAccountById(accountId, options);
|
|
1831
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1832
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClientAccountsApi.getClientAccountById']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1833
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
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
|
+
}),
|
|
2458
|
+
/**
|
|
2459
|
+
* Récupère le taux de remplissage (infill) pour une période donnée
|
|
2460
|
+
* @param {string} [startDate]
|
|
1993
2461
|
* @param {string} [endDate]
|
|
1994
2462
|
* @param {*} [options] Override http request option.
|
|
1995
2463
|
* @throws {RequiredError}
|
|
@@ -4890,6 +5358,37 @@ export const ClubsManagerApiAxiosParamCreator = function (configuration) {
|
|
|
4890
5358
|
options: localVarRequestOptions,
|
|
4891
5359
|
};
|
|
4892
5360
|
}),
|
|
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
|
+
}),
|
|
4893
5392
|
/**
|
|
4894
5393
|
* Supprime un terrain et ses créneaux futurs
|
|
4895
5394
|
* @param {string} courtId
|
|
@@ -5427,6 +5926,21 @@ export const ClubsManagerApiFp = function (configuration) {
|
|
|
5427
5926
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5428
5927
|
});
|
|
5429
5928
|
},
|
|
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
|
+
},
|
|
5430
5944
|
/**
|
|
5431
5945
|
* Supprime un terrain et ses créneaux futurs
|
|
5432
5946
|
* @param {string} courtId
|
|
@@ -5697,6 +6211,15 @@ export const ClubsManagerApiFactory = function (configuration, basePath, axios)
|
|
|
5697
6211
|
deleteActuality(requestParameters, options) {
|
|
5698
6212
|
return localVarFp.deleteActuality(requestParameters.actualityId, options).then((request) => request(axios, basePath));
|
|
5699
6213
|
},
|
|
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
|
+
},
|
|
5700
6223
|
/**
|
|
5701
6224
|
* Supprime un terrain et ses créneaux futurs
|
|
5702
6225
|
* @param {ClubsManagerApiDeleteCourtRequest} requestParameters Request parameters.
|
|
@@ -5892,6 +6415,16 @@ export class ClubsManagerApi extends BaseAPI {
|
|
|
5892
6415
|
deleteActuality(requestParameters, options) {
|
|
5893
6416
|
return ClubsManagerApiFp(this.configuration).deleteActuality(requestParameters.actualityId, options).then((request) => request(this.axios, this.basePath));
|
|
5894
6417
|
}
|
|
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
|
+
}
|
|
5895
6428
|
/**
|
|
5896
6429
|
* Supprime un terrain et ses créneaux futurs
|
|
5897
6430
|
* @param {ClubsManagerApiDeleteCourtRequest} requestParameters Request parameters.
|
|
@@ -6028,42 +6561,6 @@ export class ClubsManagerApi extends BaseAPI {
|
|
|
6028
6561
|
*/
|
|
6029
6562
|
export const ClubsStaffApiAxiosParamCreator = function (configuration) {
|
|
6030
6563
|
return {
|
|
6031
|
-
/**
|
|
6032
|
-
* Crée une facture manuelle (on-site) et l\'associe à une réservation
|
|
6033
|
-
* @param {string} bookingId
|
|
6034
|
-
* @param {CreateOnsiteInvoiceRequest} createOnsiteInvoiceRequest
|
|
6035
|
-
* @param {*} [options] Override http request option.
|
|
6036
|
-
* @throws {RequiredError}
|
|
6037
|
-
*/
|
|
6038
|
-
createOnsiteInvoiceForBooking: (bookingId_1, createOnsiteInvoiceRequest_1, ...args_1) => __awaiter(this, [bookingId_1, createOnsiteInvoiceRequest_1, ...args_1], void 0, function* (bookingId, createOnsiteInvoiceRequest, options = {}) {
|
|
6039
|
-
// verify required parameter 'bookingId' is not null or undefined
|
|
6040
|
-
assertParamExists('createOnsiteInvoiceForBooking', 'bookingId', bookingId);
|
|
6041
|
-
// verify required parameter 'createOnsiteInvoiceRequest' is not null or undefined
|
|
6042
|
-
assertParamExists('createOnsiteInvoiceForBooking', 'createOnsiteInvoiceRequest', createOnsiteInvoiceRequest);
|
|
6043
|
-
const localVarPath = `/api/clubs/staff/bookings/{bookingId}/invoices`
|
|
6044
|
-
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
6045
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6046
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6047
|
-
let baseOptions;
|
|
6048
|
-
if (configuration) {
|
|
6049
|
-
baseOptions = configuration.baseOptions;
|
|
6050
|
-
}
|
|
6051
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
6052
|
-
const localVarHeaderParameter = {};
|
|
6053
|
-
const localVarQueryParameter = {};
|
|
6054
|
-
// authentication bearerAuth required
|
|
6055
|
-
// http bearer authentication required
|
|
6056
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
6057
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6058
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6059
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6060
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6061
|
-
localVarRequestOptions.data = serializeDataIfNeeded(createOnsiteInvoiceRequest, localVarRequestOptions, configuration);
|
|
6062
|
-
return {
|
|
6063
|
-
url: toPathString(localVarUrlObj),
|
|
6064
|
-
options: localVarRequestOptions,
|
|
6065
|
-
};
|
|
6066
|
-
}),
|
|
6067
6564
|
/**
|
|
6068
6565
|
*
|
|
6069
6566
|
* @param {*} [options] Override http request option.
|
|
@@ -6284,6 +6781,42 @@ export const ClubsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
6284
6781
|
options: localVarRequestOptions,
|
|
6285
6782
|
};
|
|
6286
6783
|
}),
|
|
6784
|
+
/**
|
|
6785
|
+
*
|
|
6786
|
+
* @param {string} id
|
|
6787
|
+
* @param {UpdateUserCreditsRequest} updateUserCreditsRequest
|
|
6788
|
+
* @param {*} [options] Override http request option.
|
|
6789
|
+
* @throws {RequiredError}
|
|
6790
|
+
*/
|
|
6791
|
+
updateUserCreditsStaff: (id_1, updateUserCreditsRequest_1, ...args_1) => __awaiter(this, [id_1, updateUserCreditsRequest_1, ...args_1], void 0, function* (id, updateUserCreditsRequest, options = {}) {
|
|
6792
|
+
// verify required parameter 'id' is not null or undefined
|
|
6793
|
+
assertParamExists('updateUserCreditsStaff', 'id', id);
|
|
6794
|
+
// verify required parameter 'updateUserCreditsRequest' is not null or undefined
|
|
6795
|
+
assertParamExists('updateUserCreditsStaff', 'updateUserCreditsRequest', updateUserCreditsRequest);
|
|
6796
|
+
const localVarPath = `/api/clubs/staff/user-credits/{id}`
|
|
6797
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
6798
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6799
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6800
|
+
let baseOptions;
|
|
6801
|
+
if (configuration) {
|
|
6802
|
+
baseOptions = configuration.baseOptions;
|
|
6803
|
+
}
|
|
6804
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
6805
|
+
const localVarHeaderParameter = {};
|
|
6806
|
+
const localVarQueryParameter = {};
|
|
6807
|
+
// authentication bearerAuth required
|
|
6808
|
+
// http bearer authentication required
|
|
6809
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
6810
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6811
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6812
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6813
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6814
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateUserCreditsRequest, localVarRequestOptions, configuration);
|
|
6815
|
+
return {
|
|
6816
|
+
url: toPathString(localVarUrlObj),
|
|
6817
|
+
options: localVarRequestOptions,
|
|
6818
|
+
};
|
|
6819
|
+
}),
|
|
6287
6820
|
};
|
|
6288
6821
|
};
|
|
6289
6822
|
/**
|
|
@@ -6293,22 +6826,6 @@ export const ClubsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
6293
6826
|
export const ClubsStaffApiFp = function (configuration) {
|
|
6294
6827
|
const localVarAxiosParamCreator = ClubsStaffApiAxiosParamCreator(configuration);
|
|
6295
6828
|
return {
|
|
6296
|
-
/**
|
|
6297
|
-
* Crée une facture manuelle (on-site) et l\'associe à une réservation
|
|
6298
|
-
* @param {string} bookingId
|
|
6299
|
-
* @param {CreateOnsiteInvoiceRequest} createOnsiteInvoiceRequest
|
|
6300
|
-
* @param {*} [options] Override http request option.
|
|
6301
|
-
* @throws {RequiredError}
|
|
6302
|
-
*/
|
|
6303
|
-
createOnsiteInvoiceForBooking(bookingId, createOnsiteInvoiceRequest, options) {
|
|
6304
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
6305
|
-
var _a, _b, _c;
|
|
6306
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.createOnsiteInvoiceForBooking(bookingId, createOnsiteInvoiceRequest, options);
|
|
6307
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
6308
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubsStaffApi.createOnsiteInvoiceForBooking']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
6309
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6310
|
-
});
|
|
6311
|
-
},
|
|
6312
6829
|
/**
|
|
6313
6830
|
*
|
|
6314
6831
|
* @param {*} [options] Override http request option.
|
|
@@ -6422,6 +6939,22 @@ export const ClubsStaffApiFp = function (configuration) {
|
|
|
6422
6939
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6423
6940
|
});
|
|
6424
6941
|
},
|
|
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
|
+
},
|
|
6425
6958
|
};
|
|
6426
6959
|
};
|
|
6427
6960
|
/**
|
|
@@ -6431,15 +6964,6 @@ export const ClubsStaffApiFp = function (configuration) {
|
|
|
6431
6964
|
export const ClubsStaffApiFactory = function (configuration, basePath, axios) {
|
|
6432
6965
|
const localVarFp = ClubsStaffApiFp(configuration);
|
|
6433
6966
|
return {
|
|
6434
|
-
/**
|
|
6435
|
-
* Crée une facture manuelle (on-site) et l\'associe à une réservation
|
|
6436
|
-
* @param {ClubsStaffApiCreateOnsiteInvoiceForBookingRequest} requestParameters Request parameters.
|
|
6437
|
-
* @param {*} [options] Override http request option.
|
|
6438
|
-
* @throws {RequiredError}
|
|
6439
|
-
*/
|
|
6440
|
-
createOnsiteInvoiceForBooking(requestParameters, options) {
|
|
6441
|
-
return localVarFp.createOnsiteInvoiceForBooking(requestParameters.bookingId, requestParameters.createOnsiteInvoiceRequest, options).then((request) => request(axios, basePath));
|
|
6442
|
-
},
|
|
6443
6967
|
/**
|
|
6444
6968
|
*
|
|
6445
6969
|
* @param {*} [options] Override http request option.
|
|
@@ -6505,6 +7029,15 @@ export const ClubsStaffApiFactory = function (configuration, basePath, axios) {
|
|
|
6505
7029
|
getUserProfileStaff(requestParameters, options) {
|
|
6506
7030
|
return localVarFp.getUserProfileStaff(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
6507
7031
|
},
|
|
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
|
+
},
|
|
6508
7041
|
};
|
|
6509
7042
|
};
|
|
6510
7043
|
/**
|
|
@@ -6514,16 +7047,6 @@ export const ClubsStaffApiFactory = function (configuration, basePath, axios) {
|
|
|
6514
7047
|
* @extends {BaseAPI}
|
|
6515
7048
|
*/
|
|
6516
7049
|
export class ClubsStaffApi extends BaseAPI {
|
|
6517
|
-
/**
|
|
6518
|
-
* Crée une facture manuelle (on-site) et l\'associe à une réservation
|
|
6519
|
-
* @param {ClubsStaffApiCreateOnsiteInvoiceForBookingRequest} requestParameters Request parameters.
|
|
6520
|
-
* @param {*} [options] Override http request option.
|
|
6521
|
-
* @throws {RequiredError}
|
|
6522
|
-
* @memberof ClubsStaffApi
|
|
6523
|
-
*/
|
|
6524
|
-
createOnsiteInvoiceForBooking(requestParameters, options) {
|
|
6525
|
-
return ClubsStaffApiFp(this.configuration).createOnsiteInvoiceForBooking(requestParameters.bookingId, requestParameters.createOnsiteInvoiceRequest, options).then((request) => request(this.axios, this.basePath));
|
|
6526
|
-
}
|
|
6527
7050
|
/**
|
|
6528
7051
|
*
|
|
6529
7052
|
* @param {*} [options] Override http request option.
|
|
@@ -6597,6 +7120,16 @@ export class ClubsStaffApi extends BaseAPI {
|
|
|
6597
7120
|
getUserProfileStaff(requestParameters, options) {
|
|
6598
7121
|
return ClubsStaffApiFp(this.configuration).getUserProfileStaff(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
6599
7122
|
}
|
|
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
|
+
}
|
|
6600
7133
|
}
|
|
6601
7134
|
/**
|
|
6602
7135
|
* DefaultApi - axios parameter creator
|
|
@@ -7025,38 +7558,6 @@ export const GetPublishedEventsByClubIdTypeEnum = {
|
|
|
7025
7558
|
*/
|
|
7026
7559
|
export const EventsManagerApiAxiosParamCreator = function (configuration) {
|
|
7027
7560
|
return {
|
|
7028
|
-
/**
|
|
7029
|
-
* Check if there are bookings overlapping an event window (for create/update/delete)
|
|
7030
|
-
* @param {EventConflictCheckRequest} eventConflictCheckRequest
|
|
7031
|
-
* @param {*} [options] Override http request option.
|
|
7032
|
-
* @throws {RequiredError}
|
|
7033
|
-
*/
|
|
7034
|
-
checkEventConflicts: (eventConflictCheckRequest_1, ...args_1) => __awaiter(this, [eventConflictCheckRequest_1, ...args_1], void 0, function* (eventConflictCheckRequest, options = {}) {
|
|
7035
|
-
// verify required parameter 'eventConflictCheckRequest' is not null or undefined
|
|
7036
|
-
assertParamExists('checkEventConflicts', 'eventConflictCheckRequest', eventConflictCheckRequest);
|
|
7037
|
-
const localVarPath = `/api/events/manager/checkConflicts`;
|
|
7038
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7039
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7040
|
-
let baseOptions;
|
|
7041
|
-
if (configuration) {
|
|
7042
|
-
baseOptions = configuration.baseOptions;
|
|
7043
|
-
}
|
|
7044
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
7045
|
-
const localVarHeaderParameter = {};
|
|
7046
|
-
const localVarQueryParameter = {};
|
|
7047
|
-
// authentication bearerAuth required
|
|
7048
|
-
// http bearer authentication required
|
|
7049
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
7050
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
7051
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7052
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7053
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7054
|
-
localVarRequestOptions.data = serializeDataIfNeeded(eventConflictCheckRequest, localVarRequestOptions, configuration);
|
|
7055
|
-
return {
|
|
7056
|
-
url: toPathString(localVarUrlObj),
|
|
7057
|
-
options: localVarRequestOptions,
|
|
7058
|
-
};
|
|
7059
|
-
}),
|
|
7060
7561
|
/**
|
|
7061
7562
|
* Create a new event (manager)
|
|
7062
7563
|
* @param {CreateEventRequest} createEventRequest
|
|
@@ -7152,49 +7653,15 @@ export const EventsManagerApiAxiosParamCreator = function (configuration) {
|
|
|
7152
7653
|
};
|
|
7153
7654
|
}),
|
|
7154
7655
|
/**
|
|
7155
|
-
* Unpublish an event (manager)
|
|
7156
|
-
* @param {string} eventId
|
|
7157
|
-
* @param {*} [options] Override http request option.
|
|
7158
|
-
* @throws {RequiredError}
|
|
7159
|
-
*/
|
|
7160
|
-
unpublishEvent: (eventId_1, ...args_1) => __awaiter(this, [eventId_1, ...args_1], void 0, function* (eventId, options = {}) {
|
|
7161
|
-
// verify required parameter 'eventId' is not null or undefined
|
|
7162
|
-
assertParamExists('unpublishEvent', 'eventId', eventId);
|
|
7163
|
-
const localVarPath = `/api/events/manager/unpublishEvent/{eventId}`
|
|
7164
|
-
.replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
|
|
7165
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7166
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7167
|
-
let baseOptions;
|
|
7168
|
-
if (configuration) {
|
|
7169
|
-
baseOptions = configuration.baseOptions;
|
|
7170
|
-
}
|
|
7171
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
7172
|
-
const localVarHeaderParameter = {};
|
|
7173
|
-
const localVarQueryParameter = {};
|
|
7174
|
-
// authentication bearerAuth required
|
|
7175
|
-
// http bearer authentication required
|
|
7176
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
7177
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7178
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7179
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7180
|
-
return {
|
|
7181
|
-
url: toPathString(localVarUrlObj),
|
|
7182
|
-
options: localVarRequestOptions,
|
|
7183
|
-
};
|
|
7184
|
-
}),
|
|
7185
|
-
/**
|
|
7186
|
-
* Update an event (manager)
|
|
7656
|
+
* Unpublish an event (manager)
|
|
7187
7657
|
* @param {string} eventId
|
|
7188
|
-
* @param {UpdateEventRequest} updateEventRequest
|
|
7189
7658
|
* @param {*} [options] Override http request option.
|
|
7190
7659
|
* @throws {RequiredError}
|
|
7191
7660
|
*/
|
|
7192
|
-
|
|
7661
|
+
unpublishEvent: (eventId_1, ...args_1) => __awaiter(this, [eventId_1, ...args_1], void 0, function* (eventId, options = {}) {
|
|
7193
7662
|
// verify required parameter 'eventId' is not null or undefined
|
|
7194
|
-
assertParamExists('
|
|
7195
|
-
|
|
7196
|
-
assertParamExists('updateEvent', 'updateEventRequest', updateEventRequest);
|
|
7197
|
-
const localVarPath = `/api/events/manager/updateEvent/{eventId}`
|
|
7663
|
+
assertParamExists('unpublishEvent', 'eventId', eventId);
|
|
7664
|
+
const localVarPath = `/api/events/manager/unpublishEvent/{eventId}`
|
|
7198
7665
|
.replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
|
|
7199
7666
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7200
7667
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -7208,29 +7675,27 @@ export const EventsManagerApiAxiosParamCreator = function (configuration) {
|
|
|
7208
7675
|
// authentication bearerAuth required
|
|
7209
7676
|
// http bearer authentication required
|
|
7210
7677
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
7211
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
7212
7678
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7213
7679
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7214
7680
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7215
|
-
localVarRequestOptions.data = serializeDataIfNeeded(updateEventRequest, localVarRequestOptions, configuration);
|
|
7216
7681
|
return {
|
|
7217
7682
|
url: toPathString(localVarUrlObj),
|
|
7218
7683
|
options: localVarRequestOptions,
|
|
7219
7684
|
};
|
|
7220
7685
|
}),
|
|
7221
7686
|
/**
|
|
7222
|
-
* Update
|
|
7687
|
+
* Update an event (manager)
|
|
7223
7688
|
* @param {string} eventId
|
|
7224
7689
|
* @param {UpdateEventRequest} updateEventRequest
|
|
7225
7690
|
* @param {*} [options] Override http request option.
|
|
7226
7691
|
* @throws {RequiredError}
|
|
7227
7692
|
*/
|
|
7228
|
-
|
|
7693
|
+
updateEvent: (eventId_1, updateEventRequest_1, ...args_1) => __awaiter(this, [eventId_1, updateEventRequest_1, ...args_1], void 0, function* (eventId, updateEventRequest, options = {}) {
|
|
7229
7694
|
// verify required parameter 'eventId' is not null or undefined
|
|
7230
|
-
assertParamExists('
|
|
7695
|
+
assertParamExists('updateEvent', 'eventId', eventId);
|
|
7231
7696
|
// verify required parameter 'updateEventRequest' is not null or undefined
|
|
7232
|
-
assertParamExists('
|
|
7233
|
-
const localVarPath = `/api/events/manager/
|
|
7697
|
+
assertParamExists('updateEvent', 'updateEventRequest', updateEventRequest);
|
|
7698
|
+
const localVarPath = `/api/events/manager/updateEvent/{eventId}`
|
|
7234
7699
|
.replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
|
|
7235
7700
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7236
7701
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -7263,21 +7728,6 @@ export const EventsManagerApiAxiosParamCreator = function (configuration) {
|
|
|
7263
7728
|
export const EventsManagerApiFp = function (configuration) {
|
|
7264
7729
|
const localVarAxiosParamCreator = EventsManagerApiAxiosParamCreator(configuration);
|
|
7265
7730
|
return {
|
|
7266
|
-
/**
|
|
7267
|
-
* Check if there are bookings overlapping an event window (for create/update/delete)
|
|
7268
|
-
* @param {EventConflictCheckRequest} eventConflictCheckRequest
|
|
7269
|
-
* @param {*} [options] Override http request option.
|
|
7270
|
-
* @throws {RequiredError}
|
|
7271
|
-
*/
|
|
7272
|
-
checkEventConflicts(eventConflictCheckRequest, options) {
|
|
7273
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
7274
|
-
var _a, _b, _c;
|
|
7275
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.checkEventConflicts(eventConflictCheckRequest, options);
|
|
7276
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7277
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsManagerApi.checkEventConflicts']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7278
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7279
|
-
});
|
|
7280
|
-
},
|
|
7281
7731
|
/**
|
|
7282
7732
|
* Create a new event (manager)
|
|
7283
7733
|
* @param {CreateEventRequest} createEventRequest
|
|
@@ -7354,22 +7804,6 @@ export const EventsManagerApiFp = function (configuration) {
|
|
|
7354
7804
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7355
7805
|
});
|
|
7356
7806
|
},
|
|
7357
|
-
/**
|
|
7358
|
-
* Update a published event (manager) and propagate slot changes and conflicts
|
|
7359
|
-
* @param {string} eventId
|
|
7360
|
-
* @param {UpdateEventRequest} updateEventRequest
|
|
7361
|
-
* @param {*} [options] Override http request option.
|
|
7362
|
-
* @throws {RequiredError}
|
|
7363
|
-
*/
|
|
7364
|
-
updatePublishedEvent(eventId, updateEventRequest, options) {
|
|
7365
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
7366
|
-
var _a, _b, _c;
|
|
7367
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.updatePublishedEvent(eventId, updateEventRequest, options);
|
|
7368
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7369
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsManagerApi.updatePublishedEvent']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7370
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7371
|
-
});
|
|
7372
|
-
},
|
|
7373
7807
|
};
|
|
7374
7808
|
};
|
|
7375
7809
|
/**
|
|
@@ -7379,15 +7813,6 @@ export const EventsManagerApiFp = function (configuration) {
|
|
|
7379
7813
|
export const EventsManagerApiFactory = function (configuration, basePath, axios) {
|
|
7380
7814
|
const localVarFp = EventsManagerApiFp(configuration);
|
|
7381
7815
|
return {
|
|
7382
|
-
/**
|
|
7383
|
-
* Check if there are bookings overlapping an event window (for create/update/delete)
|
|
7384
|
-
* @param {EventsManagerApiCheckEventConflictsRequest} requestParameters Request parameters.
|
|
7385
|
-
* @param {*} [options] Override http request option.
|
|
7386
|
-
* @throws {RequiredError}
|
|
7387
|
-
*/
|
|
7388
|
-
checkEventConflicts(requestParameters, options) {
|
|
7389
|
-
return localVarFp.checkEventConflicts(requestParameters.eventConflictCheckRequest, options).then((request) => request(axios, basePath));
|
|
7390
|
-
},
|
|
7391
7816
|
/**
|
|
7392
7817
|
* Create a new event (manager)
|
|
7393
7818
|
* @param {EventsManagerApiCreateEventRequest} requestParameters Request parameters.
|
|
@@ -7433,15 +7858,6 @@ export const EventsManagerApiFactory = function (configuration, basePath, axios)
|
|
|
7433
7858
|
updateEvent(requestParameters, options) {
|
|
7434
7859
|
return localVarFp.updateEvent(requestParameters.eventId, requestParameters.updateEventRequest, options).then((request) => request(axios, basePath));
|
|
7435
7860
|
},
|
|
7436
|
-
/**
|
|
7437
|
-
* Update a published event (manager) and propagate slot changes and conflicts
|
|
7438
|
-
* @param {EventsManagerApiUpdatePublishedEventRequest} requestParameters Request parameters.
|
|
7439
|
-
* @param {*} [options] Override http request option.
|
|
7440
|
-
* @throws {RequiredError}
|
|
7441
|
-
*/
|
|
7442
|
-
updatePublishedEvent(requestParameters, options) {
|
|
7443
|
-
return localVarFp.updatePublishedEvent(requestParameters.eventId, requestParameters.updateEventRequest, options).then((request) => request(axios, basePath));
|
|
7444
|
-
},
|
|
7445
7861
|
};
|
|
7446
7862
|
};
|
|
7447
7863
|
/**
|
|
@@ -7451,16 +7867,6 @@ export const EventsManagerApiFactory = function (configuration, basePath, axios)
|
|
|
7451
7867
|
* @extends {BaseAPI}
|
|
7452
7868
|
*/
|
|
7453
7869
|
export class EventsManagerApi extends BaseAPI {
|
|
7454
|
-
/**
|
|
7455
|
-
* Check if there are bookings overlapping an event window (for create/update/delete)
|
|
7456
|
-
* @param {EventsManagerApiCheckEventConflictsRequest} requestParameters Request parameters.
|
|
7457
|
-
* @param {*} [options] Override http request option.
|
|
7458
|
-
* @throws {RequiredError}
|
|
7459
|
-
* @memberof EventsManagerApi
|
|
7460
|
-
*/
|
|
7461
|
-
checkEventConflicts(requestParameters, options) {
|
|
7462
|
-
return EventsManagerApiFp(this.configuration).checkEventConflicts(requestParameters.eventConflictCheckRequest, options).then((request) => request(this.axios, this.basePath));
|
|
7463
|
-
}
|
|
7464
7870
|
/**
|
|
7465
7871
|
* Create a new event (manager)
|
|
7466
7872
|
* @param {EventsManagerApiCreateEventRequest} requestParameters Request parameters.
|
|
@@ -7511,16 +7917,6 @@ export class EventsManagerApi extends BaseAPI {
|
|
|
7511
7917
|
updateEvent(requestParameters, options) {
|
|
7512
7918
|
return EventsManagerApiFp(this.configuration).updateEvent(requestParameters.eventId, requestParameters.updateEventRequest, options).then((request) => request(this.axios, this.basePath));
|
|
7513
7919
|
}
|
|
7514
|
-
/**
|
|
7515
|
-
* Update a published event (manager) and propagate slot changes and conflicts
|
|
7516
|
-
* @param {EventsManagerApiUpdatePublishedEventRequest} requestParameters Request parameters.
|
|
7517
|
-
* @param {*} [options] Override http request option.
|
|
7518
|
-
* @throws {RequiredError}
|
|
7519
|
-
* @memberof EventsManagerApi
|
|
7520
|
-
*/
|
|
7521
|
-
updatePublishedEvent(requestParameters, options) {
|
|
7522
|
-
return EventsManagerApiFp(this.configuration).updatePublishedEvent(requestParameters.eventId, requestParameters.updateEventRequest, options).then((request) => request(this.axios, this.basePath));
|
|
7523
|
-
}
|
|
7524
7920
|
}
|
|
7525
7921
|
/**
|
|
7526
7922
|
* EventsStaffApi - axios parameter creator
|
|
@@ -7529,36 +7925,47 @@ export class EventsManagerApi extends BaseAPI {
|
|
|
7529
7925
|
export const EventsStaffApiAxiosParamCreator = function (configuration) {
|
|
7530
7926
|
return {
|
|
7531
7927
|
/**
|
|
7532
|
-
*
|
|
7533
|
-
* @param {string}
|
|
7534
|
-
* @param {
|
|
7928
|
+
* Get events for the day view (entire week)
|
|
7929
|
+
* @param {string} [clubId]
|
|
7930
|
+
* @param {string} [date]
|
|
7931
|
+
* @param {GetDailyEventsVisibilityTypeEnum} [visibilityType]
|
|
7932
|
+
* @param {GetDailyEventsTypeEnum} [type]
|
|
7933
|
+
* @param {string} [sportId]
|
|
7535
7934
|
* @param {*} [options] Override http request option.
|
|
7536
7935
|
* @throws {RequiredError}
|
|
7537
7936
|
*/
|
|
7538
|
-
|
|
7539
|
-
|
|
7540
|
-
assertParamExists('checkInEventParticipants', 'eventBookingId', eventBookingId);
|
|
7541
|
-
// verify required parameter 'checkInEventParticipantsRequest' is not null or undefined
|
|
7542
|
-
assertParamExists('checkInEventParticipants', 'checkInEventParticipantsRequest', checkInEventParticipantsRequest);
|
|
7543
|
-
const localVarPath = `/api/events/{eventBookingId}/check-in`
|
|
7544
|
-
.replace(`{${"eventBookingId"}}`, encodeURIComponent(String(eventBookingId)));
|
|
7937
|
+
getDailyEvents: (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 = {}) {
|
|
7938
|
+
const localVarPath = `/api/events/calendar/daily`;
|
|
7545
7939
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7546
7940
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7547
7941
|
let baseOptions;
|
|
7548
7942
|
if (configuration) {
|
|
7549
7943
|
baseOptions = configuration.baseOptions;
|
|
7550
7944
|
}
|
|
7551
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
7945
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
7552
7946
|
const localVarHeaderParameter = {};
|
|
7553
7947
|
const localVarQueryParameter = {};
|
|
7554
7948
|
// authentication bearerAuth required
|
|
7555
7949
|
// http bearer authentication required
|
|
7556
7950
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
7557
|
-
|
|
7951
|
+
if (clubId !== undefined) {
|
|
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
|
+
}
|
|
7558
7966
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7559
7967
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7560
7968
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7561
|
-
localVarRequestOptions.data = serializeDataIfNeeded(checkInEventParticipantsRequest, localVarRequestOptions, configuration);
|
|
7562
7969
|
return {
|
|
7563
7970
|
url: toPathString(localVarUrlObj),
|
|
7564
7971
|
options: localVarRequestOptions,
|
|
@@ -7591,6 +7998,100 @@ export const EventsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
7591
7998
|
options: localVarRequestOptions,
|
|
7592
7999
|
};
|
|
7593
8000
|
}),
|
|
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
|
+
}),
|
|
7594
8095
|
};
|
|
7595
8096
|
};
|
|
7596
8097
|
/**
|
|
@@ -7601,18 +8102,21 @@ export const EventsStaffApiFp = function (configuration) {
|
|
|
7601
8102
|
const localVarAxiosParamCreator = EventsStaffApiAxiosParamCreator(configuration);
|
|
7602
8103
|
return {
|
|
7603
8104
|
/**
|
|
7604
|
-
*
|
|
7605
|
-
* @param {string}
|
|
7606
|
-
* @param {
|
|
8105
|
+
* Get events for the day view (entire week)
|
|
8106
|
+
* @param {string} [clubId]
|
|
8107
|
+
* @param {string} [date]
|
|
8108
|
+
* @param {GetDailyEventsVisibilityTypeEnum} [visibilityType]
|
|
8109
|
+
* @param {GetDailyEventsTypeEnum} [type]
|
|
8110
|
+
* @param {string} [sportId]
|
|
7607
8111
|
* @param {*} [options] Override http request option.
|
|
7608
8112
|
* @throws {RequiredError}
|
|
7609
8113
|
*/
|
|
7610
|
-
|
|
8114
|
+
getDailyEvents(clubId, date, visibilityType, type, sportId, options) {
|
|
7611
8115
|
return __awaiter(this, void 0, void 0, function* () {
|
|
7612
8116
|
var _a, _b, _c;
|
|
7613
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
8117
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getDailyEvents(clubId, date, visibilityType, type, sportId, options);
|
|
7614
8118
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7615
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsStaffApi.
|
|
8119
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsStaffApi.getDailyEvents']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7616
8120
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7617
8121
|
});
|
|
7618
8122
|
},
|
|
@@ -7630,6 +8134,44 @@ export const EventsStaffApiFp = function (configuration) {
|
|
|
7630
8134
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7631
8135
|
});
|
|
7632
8136
|
},
|
|
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
|
+
},
|
|
7633
8175
|
};
|
|
7634
8176
|
};
|
|
7635
8177
|
/**
|
|
@@ -7640,13 +8182,13 @@ export const EventsStaffApiFactory = function (configuration, basePath, axios) {
|
|
|
7640
8182
|
const localVarFp = EventsStaffApiFp(configuration);
|
|
7641
8183
|
return {
|
|
7642
8184
|
/**
|
|
7643
|
-
*
|
|
7644
|
-
* @param {
|
|
8185
|
+
* Get events for the day view (entire week)
|
|
8186
|
+
* @param {EventsStaffApiGetDailyEventsRequest} requestParameters Request parameters.
|
|
7645
8187
|
* @param {*} [options] Override http request option.
|
|
7646
8188
|
* @throws {RequiredError}
|
|
7647
8189
|
*/
|
|
7648
|
-
|
|
7649
|
-
return localVarFp.
|
|
8190
|
+
getDailyEvents(requestParameters = {}, options) {
|
|
8191
|
+
return localVarFp.getDailyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(axios, basePath));
|
|
7650
8192
|
},
|
|
7651
8193
|
/**
|
|
7652
8194
|
* Get all events for a club (staff only)
|
|
@@ -7656,6 +8198,24 @@ export const EventsStaffApiFactory = function (configuration, basePath, axios) {
|
|
|
7656
8198
|
getEventsByClub(options) {
|
|
7657
8199
|
return localVarFp.getEventsByClub(options).then((request) => request(axios, basePath));
|
|
7658
8200
|
},
|
|
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
|
+
},
|
|
7659
8219
|
};
|
|
7660
8220
|
};
|
|
7661
8221
|
/**
|
|
@@ -7666,14 +8226,14 @@ export const EventsStaffApiFactory = function (configuration, basePath, axios) {
|
|
|
7666
8226
|
*/
|
|
7667
8227
|
export class EventsStaffApi extends BaseAPI {
|
|
7668
8228
|
/**
|
|
7669
|
-
*
|
|
7670
|
-
* @param {
|
|
8229
|
+
* Get events for the day view (entire week)
|
|
8230
|
+
* @param {EventsStaffApiGetDailyEventsRequest} requestParameters Request parameters.
|
|
7671
8231
|
* @param {*} [options] Override http request option.
|
|
7672
8232
|
* @throws {RequiredError}
|
|
7673
8233
|
* @memberof EventsStaffApi
|
|
7674
8234
|
*/
|
|
7675
|
-
|
|
7676
|
-
return EventsStaffApiFp(this.configuration).
|
|
8235
|
+
getDailyEvents(requestParameters = {}, options) {
|
|
8236
|
+
return EventsStaffApiFp(this.configuration).getDailyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
|
|
7677
8237
|
}
|
|
7678
8238
|
/**
|
|
7679
8239
|
* Get all events for a club (staff only)
|
|
@@ -7684,7 +8244,72 @@ export class EventsStaffApi extends BaseAPI {
|
|
|
7684
8244
|
getEventsByClub(options) {
|
|
7685
8245
|
return EventsStaffApiFp(this.configuration).getEventsByClub(options).then((request) => request(this.axios, this.basePath));
|
|
7686
8246
|
}
|
|
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
|
+
}
|
|
7687
8267
|
}
|
|
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
|
+
};
|
|
7688
8313
|
/**
|
|
7689
8314
|
* SportsManagerApi - axios parameter creator
|
|
7690
8315
|
* @export
|