@tennac-booking/sdk 1.0.108 → 1.0.109
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 +292 -284
- package/README.md +25 -7
- package/api.ts +1721 -339
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +961 -94
- package/dist/api.js +1104 -271
- 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 +961 -94
- package/dist/esm/api.js +1096 -267
- 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/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/ClientRegisterResponse.md +22 -0
- package/docs/ClientSubscriptionResponse.md +34 -0
- package/docs/ClubPlayerDetailResponse.md +2 -0
- package/docs/ClubSummary.md +8 -2
- package/docs/ClubsStaffApi.md +55 -0
- package/docs/CreateEventRequest.md +3 -1
- package/docs/EventsStaffApi.md +198 -0
- package/docs/GetSubscriptionsHistory200Response.md +22 -0
- package/docs/PaymentMethod.md +0 -4
- package/docs/UpdateUserCreditsRequest.md +20 -0
- package/index.ts +1 -1
- package/package.json +1 -1
- package/docs/ClientFullOnboardingResponseClub.md +0 -24
- package/docs/ClientRegister201Response.md +0 -26
package/dist/api.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* openapi.json
|
|
6
6
|
* Pandook API Documentation
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.
|
|
8
|
+
* The version of the OpenAPI document: 1.0.104
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -22,10 +22,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.
|
|
26
|
-
exports.
|
|
27
|
-
exports.
|
|
28
|
-
exports.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = exports.UserApi = void 0;
|
|
25
|
+
exports.UpdateEventRequestVisibilityTypeEnum = exports.UpdateEventRequestParticipationTypeEnum = exports.UpdateEventRequestRecurringTypeEnum = exports.UpdateEventRequestTypeEnum = exports.UpdateClubRoleRequestRoleEnum = exports.UpdateClubMemberRequestRoleEnum = exports.SurfaceType = exports.StripeStripeTaxCodeObjectEnum = exports.StripeStripeResponseStripeStripePriceObjectEnum = exports.StripeStripeProductType = exports.StripeStripeProductTaxCodeObjectEnum = exports.StripeStripeProductDefaultPriceObjectEnum = exports.StripeStripeProductObjectEnum = exports.StripeStripePriceType = exports.StripeStripePriceTransformQuantityRound = exports.StripeStripePriceTiersMode = exports.StripeStripePriceTaxBehavior = exports.StripeStripePriceRecurringUsageType = exports.StripeStripePriceRecurringInterval = exports.StripeStripePriceProductObjectEnum = exports.StripeStripePriceCurrencyOptionsTaxBehavior = exports.StripeStripePriceBillingScheme = exports.StripeStripePriceObjectEnum = exports.StripeStripeDeletedProductObjectEnum = exports.SportKey = exports.RegisterRequestBodyLocationTypeEnum = exports.PlayerCategoryId = exports.PlanInterval = exports.PaymentMethod = exports.InvoiceStatus = exports.IUserLocationTypeEnum = exports.Gender = exports.EventResponseVisibilityTypeEnum = exports.EventResponseParticipationTypeEnum = exports.EventResponseRecurringTypeEnum = exports.EventResponseTypeEnum = exports.DiscountType = exports.CreateEventRequestVisibilityTypeEnum = exports.CreateEventRequestParticipationTypeEnum = exports.CreateEventRequestRecurringTypeEnum = exports.CreateEventRequestTypeEnum = exports.CreateClubRoleRequestRoleEnum = exports.CourtStatus = exports.ClubRoleResponseRoleEnum = exports.ClientAccountOnboardingRequestSubscriptionTypeEnum = exports.ClientAccountOnboardingRequestBusinessTypeEnum = exports.CaptureResultStatusEnum = exports.CaptureResultTypeEnum = exports.BookingStatus = exports.BookingHistoryPopulatedPerformedByTypeEnum = void 0;
|
|
26
|
+
exports.ClubsApiAxiosParamCreator = exports.ClubSettingsStaffApi = exports.ClubSettingsStaffApiFactory = exports.ClubSettingsStaffApiFp = exports.ClubSettingsStaffApiAxiosParamCreator = exports.ClubSettingsManagerApi = exports.ClubSettingsManagerApiFactory = exports.ClubSettingsManagerApiFp = exports.ClubSettingsManagerApiAxiosParamCreator = exports.ClubRolesStaffApi = exports.ClubRolesStaffApiFactory = exports.ClubRolesStaffApiFp = exports.ClubRolesStaffApiAxiosParamCreator = exports.ClubRolesManagerApi = exports.ClubRolesManagerApiFactory = exports.ClubRolesManagerApiFp = exports.ClubRolesManagerApiAxiosParamCreator = exports.ClubAnalyticsStaffApi = exports.ClubAnalyticsStaffApiFactory = exports.ClubAnalyticsStaffApiFp = exports.ClubAnalyticsStaffApiAxiosParamCreator = exports.ClubAnalyticsApi = exports.ClubAnalyticsApiFactory = exports.ClubAnalyticsApiFp = exports.ClubAnalyticsApiAxiosParamCreator = exports.ClientAccountsApi = exports.ClientAccountsApiFactory = exports.ClientAccountsApiFp = exports.ClientAccountsApiAxiosParamCreator = exports.ClientApi = exports.ClientApiFactory = exports.ClientApiFp = exports.ClientApiAxiosParamCreator = exports.BookingsUserApi = exports.BookingsUserApiFactory = exports.BookingsUserApiFp = exports.BookingsUserApiAxiosParamCreator = exports.BookingsStaffApi = exports.BookingsStaffApiFactory = exports.BookingsStaffApiFp = exports.BookingsStaffApiAxiosParamCreator = exports.BookingsManagerApi = exports.BookingsManagerApiFactory = exports.BookingsManagerApiFp = exports.BookingsManagerApiAxiosParamCreator = exports.BookingsApi = exports.BookingsApiFactory = exports.BookingsApiFp = exports.BookingsApiAxiosParamCreator = exports.UserLocationSummaryTypeEnum = void 0;
|
|
27
|
+
exports.SubscriptionsPublicApiFactory = exports.SubscriptionsPublicApiFp = exports.SubscriptionsPublicApiAxiosParamCreator = exports.SubscriptionsManagerApi = exports.SubscriptionsManagerApiFactory = exports.SubscriptionsManagerApiFp = exports.SubscriptionsManagerApiAxiosParamCreator = exports.SportsPublicApi = exports.SportsPublicApiFactory = exports.SportsPublicApiFp = exports.SportsPublicApiAxiosParamCreator = exports.SportsManagerApi = exports.SportsManagerApiFactory = exports.SportsManagerApiFp = exports.SportsManagerApiAxiosParamCreator = exports.GetWeeklyEventsTypeEnum = exports.GetWeeklyEventsVisibilityTypeEnum = exports.GetMonthlyEventsTypeEnum = exports.GetMonthlyEventsVisibilityTypeEnum = exports.GetDailyEventsTypeEnum = exports.GetDailyEventsVisibilityTypeEnum = exports.EventsStaffApi = exports.EventsStaffApiFactory = exports.EventsStaffApiFp = exports.EventsStaffApiAxiosParamCreator = exports.EventsManagerApi = exports.EventsManagerApiFactory = exports.EventsManagerApiFp = exports.EventsManagerApiAxiosParamCreator = exports.GetPublishedEventsByClubIdTypeEnum = exports.GetPublishedEventsByClubIdVisibilityTypeEnum = exports.EventsApi = exports.EventsApiFactory = exports.EventsApiFp = exports.EventsApiAxiosParamCreator = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.ClubsStaffApi = exports.ClubsStaffApiFactory = exports.ClubsStaffApiFp = exports.ClubsStaffApiAxiosParamCreator = exports.ClubsManagerApi = exports.ClubsManagerApiFactory = exports.ClubsManagerApiFp = exports.ClubsManagerApiAxiosParamCreator = exports.ClubsApi = exports.ClubsApiFactory = exports.ClubsApiFp = void 0;
|
|
28
|
+
exports.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.SubscriptionsUserApi = exports.SubscriptionsUserApiFactory = exports.SubscriptionsUserApiFp = exports.SubscriptionsUserApiAxiosParamCreator = exports.SubscriptionsStaffApi = exports.SubscriptionsStaffApiFactory = exports.SubscriptionsStaffApiFp = exports.SubscriptionsStaffApiAxiosParamCreator = exports.SubscriptionsPublicApi = void 0;
|
|
29
29
|
const axios_1 = require("axios");
|
|
30
30
|
// Some imports not used depending on template conditions
|
|
31
31
|
// @ts-ignore
|
|
@@ -59,6 +59,14 @@ exports.CaptureResultStatusEnum = {
|
|
|
59
59
|
Captured: 'captured',
|
|
60
60
|
Failed: 'failed'
|
|
61
61
|
};
|
|
62
|
+
exports.ClientAccountOnboardingRequestBusinessTypeEnum = {
|
|
63
|
+
Individual: 'individual',
|
|
64
|
+
Company: 'company'
|
|
65
|
+
};
|
|
66
|
+
exports.ClientAccountOnboardingRequestSubscriptionTypeEnum = {
|
|
67
|
+
Basic: 'basic',
|
|
68
|
+
PlatformWithConnect: 'platform_with_connect'
|
|
69
|
+
};
|
|
62
70
|
exports.ClubRoleResponseRoleEnum = {
|
|
63
71
|
Admin: 'admin',
|
|
64
72
|
Manager: 'manager',
|
|
@@ -163,8 +171,6 @@ exports.InvoiceStatus = {
|
|
|
163
171
|
exports.PaymentMethod = {
|
|
164
172
|
Online: 'online',
|
|
165
173
|
Onsite: 'onsite',
|
|
166
|
-
OnsiteCard: 'onsite_card',
|
|
167
|
-
OnsiteCash: 'onsite_cash',
|
|
168
174
|
Free: 'free'
|
|
169
175
|
};
|
|
170
176
|
/**
|
|
@@ -1419,35 +1425,6 @@ exports.BookingsUserApi = BookingsUserApi;
|
|
|
1419
1425
|
*/
|
|
1420
1426
|
const ClientApiAxiosParamCreator = function (configuration) {
|
|
1421
1427
|
return {
|
|
1422
|
-
/**
|
|
1423
|
-
* Enregistre un nouvel utilisateur client - Crée l\'utilisateur avec un Stripe Customer
|
|
1424
|
-
* @param {ClientRegisterRequest} clientRegisterRequest
|
|
1425
|
-
* @param {*} [options] Override http request option.
|
|
1426
|
-
* @throws {RequiredError}
|
|
1427
|
-
*/
|
|
1428
|
-
clientRegister: (clientRegisterRequest_1, ...args_1) => __awaiter(this, [clientRegisterRequest_1, ...args_1], void 0, function* (clientRegisterRequest, options = {}) {
|
|
1429
|
-
// verify required parameter 'clientRegisterRequest' is not null or undefined
|
|
1430
|
-
(0, common_1.assertParamExists)('clientRegister', 'clientRegisterRequest', clientRegisterRequest);
|
|
1431
|
-
const localVarPath = `/clients/register`;
|
|
1432
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1433
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1434
|
-
let baseOptions;
|
|
1435
|
-
if (configuration) {
|
|
1436
|
-
baseOptions = configuration.baseOptions;
|
|
1437
|
-
}
|
|
1438
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1439
|
-
const localVarHeaderParameter = {};
|
|
1440
|
-
const localVarQueryParameter = {};
|
|
1441
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1442
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1443
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1444
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1445
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(clientRegisterRequest, localVarRequestOptions, configuration);
|
|
1446
|
-
return {
|
|
1447
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1448
|
-
options: localVarRequestOptions,
|
|
1449
|
-
};
|
|
1450
|
-
}),
|
|
1451
1428
|
/**
|
|
1452
1429
|
* Récupère la liste des clubs gérés par l\'utilisateur authentifié
|
|
1453
1430
|
* @param {*} [options] Override http request option.
|
|
@@ -1476,7 +1453,7 @@ const ClientApiAxiosParamCreator = function (configuration) {
|
|
|
1476
1453
|
};
|
|
1477
1454
|
}),
|
|
1478
1455
|
/**
|
|
1479
|
-
* Enregistre un nouveau club pour la plateforme
|
|
1456
|
+
* 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
|
|
1480
1457
|
* @param {ClientOnboardingRequestBody} clientOnboardingRequestBody Les données du club à créer
|
|
1481
1458
|
* @param {*} [options] Override http request option.
|
|
1482
1459
|
* @throws {RequiredError}
|
|
@@ -1494,9 +1471,6 @@ const ClientApiAxiosParamCreator = function (configuration) {
|
|
|
1494
1471
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1495
1472
|
const localVarHeaderParameter = {};
|
|
1496
1473
|
const localVarQueryParameter = {};
|
|
1497
|
-
// authentication clientAuth required
|
|
1498
|
-
// http bearer authentication required
|
|
1499
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1500
1474
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1501
1475
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1502
1476
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -1517,21 +1491,6 @@ exports.ClientApiAxiosParamCreator = ClientApiAxiosParamCreator;
|
|
|
1517
1491
|
const ClientApiFp = function (configuration) {
|
|
1518
1492
|
const localVarAxiosParamCreator = (0, exports.ClientApiAxiosParamCreator)(configuration);
|
|
1519
1493
|
return {
|
|
1520
|
-
/**
|
|
1521
|
-
* Enregistre un nouvel utilisateur client - Crée l\'utilisateur avec un Stripe Customer
|
|
1522
|
-
* @param {ClientRegisterRequest} clientRegisterRequest
|
|
1523
|
-
* @param {*} [options] Override http request option.
|
|
1524
|
-
* @throws {RequiredError}
|
|
1525
|
-
*/
|
|
1526
|
-
clientRegister(clientRegisterRequest, options) {
|
|
1527
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1528
|
-
var _a, _b, _c;
|
|
1529
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.clientRegister(clientRegisterRequest, options);
|
|
1530
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1531
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClientApi.clientRegister']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1532
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1533
|
-
});
|
|
1534
|
-
},
|
|
1535
1494
|
/**
|
|
1536
1495
|
* Récupère la liste des clubs gérés par l\'utilisateur authentifié
|
|
1537
1496
|
* @param {*} [options] Override http request option.
|
|
@@ -1547,7 +1506,7 @@ const ClientApiFp = function (configuration) {
|
|
|
1547
1506
|
});
|
|
1548
1507
|
},
|
|
1549
1508
|
/**
|
|
1550
|
-
* Enregistre un nouveau club pour la plateforme
|
|
1509
|
+
* 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
|
|
1551
1510
|
* @param {ClientOnboardingRequestBody} clientOnboardingRequestBody Les données du club à créer
|
|
1552
1511
|
* @param {*} [options] Override http request option.
|
|
1553
1512
|
* @throws {RequiredError}
|
|
@@ -1571,15 +1530,6 @@ exports.ClientApiFp = ClientApiFp;
|
|
|
1571
1530
|
const ClientApiFactory = function (configuration, basePath, axios) {
|
|
1572
1531
|
const localVarFp = (0, exports.ClientApiFp)(configuration);
|
|
1573
1532
|
return {
|
|
1574
|
-
/**
|
|
1575
|
-
* Enregistre un nouvel utilisateur client - Crée l\'utilisateur avec un Stripe Customer
|
|
1576
|
-
* @param {ClientApiClientRegisterRequest} requestParameters Request parameters.
|
|
1577
|
-
* @param {*} [options] Override http request option.
|
|
1578
|
-
* @throws {RequiredError}
|
|
1579
|
-
*/
|
|
1580
|
-
clientRegister(requestParameters, options) {
|
|
1581
|
-
return localVarFp.clientRegister(requestParameters.clientRegisterRequest, options).then((request) => request(axios, basePath));
|
|
1582
|
-
},
|
|
1583
1533
|
/**
|
|
1584
1534
|
* Récupère la liste des clubs gérés par l\'utilisateur authentifié
|
|
1585
1535
|
* @param {*} [options] Override http request option.
|
|
@@ -1589,7 +1539,7 @@ const ClientApiFactory = function (configuration, basePath, axios) {
|
|
|
1589
1539
|
return localVarFp.getManagedClubs(options).then((request) => request(axios, basePath));
|
|
1590
1540
|
},
|
|
1591
1541
|
/**
|
|
1592
|
-
* Enregistre un nouveau club pour la plateforme
|
|
1542
|
+
* 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
|
|
1593
1543
|
* @param {ClientApiOnboardClubRequest} requestParameters Request parameters.
|
|
1594
1544
|
* @param {*} [options] Override http request option.
|
|
1595
1545
|
* @throws {RequiredError}
|
|
@@ -1607,16 +1557,6 @@ exports.ClientApiFactory = ClientApiFactory;
|
|
|
1607
1557
|
* @extends {BaseAPI}
|
|
1608
1558
|
*/
|
|
1609
1559
|
class ClientApi extends base_1.BaseAPI {
|
|
1610
|
-
/**
|
|
1611
|
-
* Enregistre un nouvel utilisateur client - Crée l\'utilisateur avec un Stripe Customer
|
|
1612
|
-
* @param {ClientApiClientRegisterRequest} requestParameters Request parameters.
|
|
1613
|
-
* @param {*} [options] Override http request option.
|
|
1614
|
-
* @throws {RequiredError}
|
|
1615
|
-
* @memberof ClientApi
|
|
1616
|
-
*/
|
|
1617
|
-
clientRegister(requestParameters, options) {
|
|
1618
|
-
return (0, exports.ClientApiFp)(this.configuration).clientRegister(requestParameters.clientRegisterRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1619
|
-
}
|
|
1620
1560
|
/**
|
|
1621
1561
|
* Récupère la liste des clubs gérés par l\'utilisateur authentifié
|
|
1622
1562
|
* @param {*} [options] Override http request option.
|
|
@@ -1627,7 +1567,7 @@ class ClientApi extends base_1.BaseAPI {
|
|
|
1627
1567
|
return (0, exports.ClientApiFp)(this.configuration).getManagedClubs(options).then((request) => request(this.axios, this.basePath));
|
|
1628
1568
|
}
|
|
1629
1569
|
/**
|
|
1630
|
-
* Enregistre un nouveau club pour la plateforme
|
|
1570
|
+
* 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
|
|
1631
1571
|
* @param {ClientApiOnboardClubRequest} requestParameters Request parameters.
|
|
1632
1572
|
* @param {*} [options] Override http request option.
|
|
1633
1573
|
* @throws {RequiredError}
|
|
@@ -1639,18 +1579,18 @@ class ClientApi extends base_1.BaseAPI {
|
|
|
1639
1579
|
}
|
|
1640
1580
|
exports.ClientApi = ClientApi;
|
|
1641
1581
|
/**
|
|
1642
|
-
*
|
|
1582
|
+
* ClientAccountsApi - axios parameter creator
|
|
1643
1583
|
* @export
|
|
1644
1584
|
*/
|
|
1645
|
-
const
|
|
1585
|
+
const ClientAccountsApiAxiosParamCreator = function (configuration) {
|
|
1646
1586
|
return {
|
|
1647
1587
|
/**
|
|
1648
|
-
*
|
|
1588
|
+
* Informations de l\'utilisateur client authentifié (token clientAuth)
|
|
1649
1589
|
* @param {*} [options] Override http request option.
|
|
1650
1590
|
* @throws {RequiredError}
|
|
1651
1591
|
*/
|
|
1652
|
-
|
|
1653
|
-
const localVarPath = `/
|
|
1592
|
+
clientAuthMe: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
1593
|
+
const localVarPath = `/client-accounts/client-auth/me`;
|
|
1654
1594
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1655
1595
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1656
1596
|
let baseOptions;
|
|
@@ -1660,7 +1600,7 @@ const ClubAnalyticsApiAxiosParamCreator = function (configuration) {
|
|
|
1660
1600
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1661
1601
|
const localVarHeaderParameter = {};
|
|
1662
1602
|
const localVarQueryParameter = {};
|
|
1663
|
-
// authentication
|
|
1603
|
+
// authentication clientAuth required
|
|
1664
1604
|
// http bearer authentication required
|
|
1665
1605
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1666
1606
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -1672,12 +1612,16 @@ const ClubAnalyticsApiAxiosParamCreator = function (configuration) {
|
|
|
1672
1612
|
};
|
|
1673
1613
|
}),
|
|
1674
1614
|
/**
|
|
1675
|
-
* Récupère
|
|
1615
|
+
* Récupère le compte client par son ID
|
|
1616
|
+
* @param {string} accountId L\'ID du compte client
|
|
1676
1617
|
* @param {*} [options] Override http request option.
|
|
1677
1618
|
* @throws {RequiredError}
|
|
1678
1619
|
*/
|
|
1679
|
-
|
|
1680
|
-
|
|
1620
|
+
getClientAccountById: (accountId_1, ...args_1) => __awaiter(this, [accountId_1, ...args_1], void 0, function* (accountId, options = {}) {
|
|
1621
|
+
// verify required parameter 'accountId' is not null or undefined
|
|
1622
|
+
(0, common_1.assertParamExists)('getClientAccountById', 'accountId', accountId);
|
|
1623
|
+
const localVarPath = `/client-accounts/{accountId}`
|
|
1624
|
+
.replace(`{${"accountId"}}`, encodeURIComponent(String(accountId)));
|
|
1681
1625
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1682
1626
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1683
1627
|
let baseOptions;
|
|
@@ -1698,117 +1642,13 @@ const ClubAnalyticsApiAxiosParamCreator = function (configuration) {
|
|
|
1698
1642
|
options: localVarRequestOptions,
|
|
1699
1643
|
};
|
|
1700
1644
|
}),
|
|
1701
|
-
};
|
|
1702
|
-
};
|
|
1703
|
-
exports.ClubAnalyticsApiAxiosParamCreator = ClubAnalyticsApiAxiosParamCreator;
|
|
1704
|
-
/**
|
|
1705
|
-
* ClubAnalyticsApi - functional programming interface
|
|
1706
|
-
* @export
|
|
1707
|
-
*/
|
|
1708
|
-
const ClubAnalyticsApiFp = function (configuration) {
|
|
1709
|
-
const localVarAxiosParamCreator = (0, exports.ClubAnalyticsApiAxiosParamCreator)(configuration);
|
|
1710
|
-
return {
|
|
1711
|
-
/**
|
|
1712
|
-
* Récupère les clubs les plus aimés
|
|
1713
|
-
* @param {*} [options] Override http request option.
|
|
1714
|
-
* @throws {RequiredError}
|
|
1715
|
-
*/
|
|
1716
|
-
getMostLikedClub(options) {
|
|
1717
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1718
|
-
var _a, _b, _c;
|
|
1719
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getMostLikedClub(options);
|
|
1720
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1721
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubAnalyticsApi.getMostLikedClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1722
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1723
|
-
});
|
|
1724
|
-
},
|
|
1725
|
-
/**
|
|
1726
|
-
* Récupère les clubs populaires
|
|
1727
|
-
* @param {*} [options] Override http request option.
|
|
1728
|
-
* @throws {RequiredError}
|
|
1729
|
-
*/
|
|
1730
|
-
getPopularClubs(options) {
|
|
1731
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1732
|
-
var _a, _b, _c;
|
|
1733
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getPopularClubs(options);
|
|
1734
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1735
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubAnalyticsApi.getPopularClubs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1736
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1737
|
-
});
|
|
1738
|
-
},
|
|
1739
|
-
};
|
|
1740
|
-
};
|
|
1741
|
-
exports.ClubAnalyticsApiFp = ClubAnalyticsApiFp;
|
|
1742
|
-
/**
|
|
1743
|
-
* ClubAnalyticsApi - factory interface
|
|
1744
|
-
* @export
|
|
1745
|
-
*/
|
|
1746
|
-
const ClubAnalyticsApiFactory = function (configuration, basePath, axios) {
|
|
1747
|
-
const localVarFp = (0, exports.ClubAnalyticsApiFp)(configuration);
|
|
1748
|
-
return {
|
|
1749
|
-
/**
|
|
1750
|
-
* Récupère les clubs les plus aimés
|
|
1751
|
-
* @param {*} [options] Override http request option.
|
|
1752
|
-
* @throws {RequiredError}
|
|
1753
|
-
*/
|
|
1754
|
-
getMostLikedClub(options) {
|
|
1755
|
-
return localVarFp.getMostLikedClub(options).then((request) => request(axios, basePath));
|
|
1756
|
-
},
|
|
1757
|
-
/**
|
|
1758
|
-
* Récupère les clubs populaires
|
|
1759
|
-
* @param {*} [options] Override http request option.
|
|
1760
|
-
* @throws {RequiredError}
|
|
1761
|
-
*/
|
|
1762
|
-
getPopularClubs(options) {
|
|
1763
|
-
return localVarFp.getPopularClubs(options).then((request) => request(axios, basePath));
|
|
1764
|
-
},
|
|
1765
|
-
};
|
|
1766
|
-
};
|
|
1767
|
-
exports.ClubAnalyticsApiFactory = ClubAnalyticsApiFactory;
|
|
1768
|
-
/**
|
|
1769
|
-
* ClubAnalyticsApi - object-oriented interface
|
|
1770
|
-
* @export
|
|
1771
|
-
* @class ClubAnalyticsApi
|
|
1772
|
-
* @extends {BaseAPI}
|
|
1773
|
-
*/
|
|
1774
|
-
class ClubAnalyticsApi extends base_1.BaseAPI {
|
|
1775
|
-
/**
|
|
1776
|
-
* Récupère les clubs les plus aimés
|
|
1777
|
-
* @param {*} [options] Override http request option.
|
|
1778
|
-
* @throws {RequiredError}
|
|
1779
|
-
* @memberof ClubAnalyticsApi
|
|
1780
|
-
*/
|
|
1781
|
-
getMostLikedClub(options) {
|
|
1782
|
-
return (0, exports.ClubAnalyticsApiFp)(this.configuration).getMostLikedClub(options).then((request) => request(this.axios, this.basePath));
|
|
1783
|
-
}
|
|
1784
|
-
/**
|
|
1785
|
-
* Récupère les clubs populaires
|
|
1786
|
-
* @param {*} [options] Override http request option.
|
|
1787
|
-
* @throws {RequiredError}
|
|
1788
|
-
* @memberof ClubAnalyticsApi
|
|
1789
|
-
*/
|
|
1790
|
-
getPopularClubs(options) {
|
|
1791
|
-
return (0, exports.ClubAnalyticsApiFp)(this.configuration).getPopularClubs(options).then((request) => request(this.axios, this.basePath));
|
|
1792
|
-
}
|
|
1793
|
-
}
|
|
1794
|
-
exports.ClubAnalyticsApi = ClubAnalyticsApi;
|
|
1795
|
-
/**
|
|
1796
|
-
* ClubAnalyticsStaffApi - axios parameter creator
|
|
1797
|
-
* @export
|
|
1798
|
-
*/
|
|
1799
|
-
const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration) {
|
|
1800
|
-
return {
|
|
1801
1645
|
/**
|
|
1802
|
-
* Récupère
|
|
1803
|
-
* @param {string} sportId
|
|
1646
|
+
* Récupère l\'abonnement actif du compte client authentifié
|
|
1804
1647
|
* @param {*} [options] Override http request option.
|
|
1805
1648
|
* @throws {RequiredError}
|
|
1806
1649
|
*/
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
(0, common_1.assertParamExists)('getAnalyticsBySport', 'sportId', sportId);
|
|
1810
|
-
const localVarPath = `/api/club-analytics/sport/{sportId}/analytics`
|
|
1811
|
-
.replace(`{${"sportId"}}`, encodeURIComponent(String(sportId)));
|
|
1650
|
+
getMyActiveSubscription: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
1651
|
+
const localVarPath = `/client-accounts/me/subscription`;
|
|
1812
1652
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1813
1653
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1814
1654
|
let baseOptions;
|
|
@@ -1830,18 +1670,12 @@ const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
1830
1670
|
};
|
|
1831
1671
|
}),
|
|
1832
1672
|
/**
|
|
1833
|
-
* Récupère
|
|
1834
|
-
* @param {string} playerId
|
|
1835
|
-
* @param {number} [page]
|
|
1836
|
-
* @param {number} [pageSize]
|
|
1673
|
+
* Récupère le compte client de l\'utilisateur authentifié
|
|
1837
1674
|
* @param {*} [options] Override http request option.
|
|
1838
1675
|
* @throws {RequiredError}
|
|
1839
1676
|
*/
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
(0, common_1.assertParamExists)('getClubPlayerBookingsById', 'playerId', playerId);
|
|
1843
|
-
const localVarPath = `/api/club-analytics/players/{playerId}/bookings`
|
|
1844
|
-
.replace(`{${"playerId"}}`, encodeURIComponent(String(playerId)));
|
|
1677
|
+
getMyClientAccount: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
1678
|
+
const localVarPath = `/client-accounts/me`;
|
|
1845
1679
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1846
1680
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1847
1681
|
let baseOptions;
|
|
@@ -1854,12 +1688,6 @@ const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
1854
1688
|
// authentication bearerAuth required
|
|
1855
1689
|
// http bearer authentication required
|
|
1856
1690
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1857
|
-
if (page !== undefined) {
|
|
1858
|
-
localVarQueryParameter['page'] = page;
|
|
1859
|
-
}
|
|
1860
|
-
if (pageSize !== undefined) {
|
|
1861
|
-
localVarQueryParameter['pageSize'] = pageSize;
|
|
1862
|
-
}
|
|
1863
1691
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1864
1692
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1865
1693
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -1869,16 +1697,12 @@ const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
1869
1697
|
};
|
|
1870
1698
|
}),
|
|
1871
1699
|
/**
|
|
1872
|
-
* Récupère
|
|
1873
|
-
* @param {string} playerId
|
|
1700
|
+
* Récupère l\'historique des abonnements du compte client authentifié
|
|
1874
1701
|
* @param {*} [options] Override http request option.
|
|
1875
1702
|
* @throws {RequiredError}
|
|
1876
1703
|
*/
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
(0, common_1.assertParamExists)('getClubPlayerById', 'playerId', playerId);
|
|
1880
|
-
const localVarPath = `/api/club-analytics/players/{playerId}`
|
|
1881
|
-
.replace(`{${"playerId"}}`, encodeURIComponent(String(playerId)));
|
|
1704
|
+
getSubscriptionsHistory: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
1705
|
+
const localVarPath = `/client-accounts/me/subscriptions-history`;
|
|
1882
1706
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1883
1707
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1884
1708
|
let baseOptions;
|
|
@@ -1900,16 +1724,12 @@ const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
1900
1724
|
};
|
|
1901
1725
|
}),
|
|
1902
1726
|
/**
|
|
1903
|
-
*
|
|
1904
|
-
* @param {string} playerId
|
|
1727
|
+
* Liste les prix Stripe disponibles pour les abonnements client
|
|
1905
1728
|
* @param {*} [options] Override http request option.
|
|
1906
1729
|
* @throws {RequiredError}
|
|
1907
1730
|
*/
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
(0, common_1.assertParamExists)('getClubPlayerStatisticsById', 'playerId', playerId);
|
|
1911
|
-
const localVarPath = `/api/club-analytics/players/{playerId}/statistics`
|
|
1912
|
-
.replace(`{${"playerId"}}`, encodeURIComponent(String(playerId)));
|
|
1731
|
+
listAvailablePrices: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
1732
|
+
const localVarPath = `/client-accounts/plans/available-prices`;
|
|
1913
1733
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1914
1734
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1915
1735
|
let baseOptions;
|
|
@@ -1931,100 +1751,742 @@ const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
1931
1751
|
};
|
|
1932
1752
|
}),
|
|
1933
1753
|
/**
|
|
1934
|
-
*
|
|
1754
|
+
* Crée un nouveau compte client avec onboarding Stripe
|
|
1755
|
+
* @param {ClientAccountOnboardingRequest} clientAccountOnboardingRequest Les données du compte à créer
|
|
1935
1756
|
* @param {*} [options] Override http request option.
|
|
1936
1757
|
* @throws {RequiredError}
|
|
1937
1758
|
*/
|
|
1938
|
-
|
|
1939
|
-
|
|
1759
|
+
onboardClientAccount: (clientAccountOnboardingRequest_1, ...args_1) => __awaiter(this, [clientAccountOnboardingRequest_1, ...args_1], void 0, function* (clientAccountOnboardingRequest, options = {}) {
|
|
1760
|
+
// verify required parameter 'clientAccountOnboardingRequest' is not null or undefined
|
|
1761
|
+
(0, common_1.assertParamExists)('onboardClientAccount', 'clientAccountOnboardingRequest', clientAccountOnboardingRequest);
|
|
1762
|
+
const localVarPath = `/client-accounts/onboarding`;
|
|
1940
1763
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1941
1764
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1942
1765
|
let baseOptions;
|
|
1943
1766
|
if (configuration) {
|
|
1944
1767
|
baseOptions = configuration.baseOptions;
|
|
1945
1768
|
}
|
|
1946
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
1769
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1947
1770
|
const localVarHeaderParameter = {};
|
|
1948
1771
|
const localVarQueryParameter = {};
|
|
1949
|
-
// authentication
|
|
1772
|
+
// authentication clientAuth required
|
|
1950
1773
|
// http bearer authentication required
|
|
1951
1774
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1775
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1952
1776
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1953
1777
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1954
1778
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1779
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(clientAccountOnboardingRequest, localVarRequestOptions, configuration);
|
|
1955
1780
|
return {
|
|
1956
1781
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1957
1782
|
options: localVarRequestOptions,
|
|
1958
1783
|
};
|
|
1959
1784
|
}),
|
|
1960
1785
|
/**
|
|
1961
|
-
*
|
|
1962
|
-
* @param {
|
|
1786
|
+
* Route d\'inscription d\'un utilisateur client (publique)
|
|
1787
|
+
* @param {ClientRegisterRequestBody} clientRegisterRequestBody
|
|
1963
1788
|
* @param {*} [options] Override http request option.
|
|
1964
1789
|
* @throws {RequiredError}
|
|
1965
1790
|
*/
|
|
1966
|
-
|
|
1967
|
-
// verify required parameter '
|
|
1968
|
-
(0, common_1.assertParamExists)('
|
|
1969
|
-
const localVarPath = `/
|
|
1791
|
+
registerClientUser: (clientRegisterRequestBody_1, ...args_1) => __awaiter(this, [clientRegisterRequestBody_1, ...args_1], void 0, function* (clientRegisterRequestBody, options = {}) {
|
|
1792
|
+
// verify required parameter 'clientRegisterRequestBody' is not null or undefined
|
|
1793
|
+
(0, common_1.assertParamExists)('registerClientUser', 'clientRegisterRequestBody', clientRegisterRequestBody);
|
|
1794
|
+
const localVarPath = `/client-accounts/register-client-user`;
|
|
1970
1795
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1971
1796
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1972
1797
|
let baseOptions;
|
|
1973
1798
|
if (configuration) {
|
|
1974
1799
|
baseOptions = configuration.baseOptions;
|
|
1975
1800
|
}
|
|
1976
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
1801
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1977
1802
|
const localVarHeaderParameter = {};
|
|
1978
1803
|
const localVarQueryParameter = {};
|
|
1979
|
-
|
|
1980
|
-
// http bearer authentication required
|
|
1981
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1982
|
-
if (date !== undefined) {
|
|
1983
|
-
localVarQueryParameter['date'] = date;
|
|
1984
|
-
}
|
|
1804
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1985
1805
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1986
1806
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1987
1807
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1808
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(clientRegisterRequestBody, localVarRequestOptions, configuration);
|
|
1988
1809
|
return {
|
|
1989
1810
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1990
1811
|
options: localVarRequestOptions,
|
|
1991
1812
|
};
|
|
1992
1813
|
}),
|
|
1814
|
+
};
|
|
1815
|
+
};
|
|
1816
|
+
exports.ClientAccountsApiAxiosParamCreator = ClientAccountsApiAxiosParamCreator;
|
|
1817
|
+
/**
|
|
1818
|
+
* ClientAccountsApi - functional programming interface
|
|
1819
|
+
* @export
|
|
1820
|
+
*/
|
|
1821
|
+
const ClientAccountsApiFp = function (configuration) {
|
|
1822
|
+
const localVarAxiosParamCreator = (0, exports.ClientAccountsApiAxiosParamCreator)(configuration);
|
|
1823
|
+
return {
|
|
1993
1824
|
/**
|
|
1994
|
-
*
|
|
1825
|
+
* Informations de l\'utilisateur client authentifié (token clientAuth)
|
|
1995
1826
|
* @param {*} [options] Override http request option.
|
|
1996
1827
|
* @throws {RequiredError}
|
|
1997
1828
|
*/
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
}
|
|
2006
|
-
|
|
2007
|
-
const localVarHeaderParameter = {};
|
|
2008
|
-
const localVarQueryParameter = {};
|
|
2009
|
-
// authentication bearerAuth required
|
|
2010
|
-
// http bearer authentication required
|
|
2011
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2012
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2013
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2014
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2015
|
-
return {
|
|
2016
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2017
|
-
options: localVarRequestOptions,
|
|
2018
|
-
};
|
|
2019
|
-
}),
|
|
1829
|
+
clientAuthMe(options) {
|
|
1830
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1831
|
+
var _a, _b, _c;
|
|
1832
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.clientAuthMe(options);
|
|
1833
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1834
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClientAccountsApi.clientAuthMe']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1835
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1836
|
+
});
|
|
1837
|
+
},
|
|
2020
1838
|
/**
|
|
2021
|
-
* Récupère le
|
|
2022
|
-
* @param {string}
|
|
2023
|
-
* @param {string} [endDate]
|
|
1839
|
+
* Récupère le compte client par son ID
|
|
1840
|
+
* @param {string} accountId L\'ID du compte client
|
|
2024
1841
|
* @param {*} [options] Override http request option.
|
|
2025
1842
|
* @throws {RequiredError}
|
|
2026
1843
|
*/
|
|
2027
|
-
|
|
1844
|
+
getClientAccountById(accountId, options) {
|
|
1845
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1846
|
+
var _a, _b, _c;
|
|
1847
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClientAccountById(accountId, options);
|
|
1848
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1849
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClientAccountsApi.getClientAccountById']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1850
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1851
|
+
});
|
|
1852
|
+
},
|
|
1853
|
+
/**
|
|
1854
|
+
* Récupère l\'abonnement actif du compte client authentifié
|
|
1855
|
+
* @param {*} [options] Override http request option.
|
|
1856
|
+
* @throws {RequiredError}
|
|
1857
|
+
*/
|
|
1858
|
+
getMyActiveSubscription(options) {
|
|
1859
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1860
|
+
var _a, _b, _c;
|
|
1861
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getMyActiveSubscription(options);
|
|
1862
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1863
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClientAccountsApi.getMyActiveSubscription']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1864
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1865
|
+
});
|
|
1866
|
+
},
|
|
1867
|
+
/**
|
|
1868
|
+
* Récupère le compte client de l\'utilisateur authentifié
|
|
1869
|
+
* @param {*} [options] Override http request option.
|
|
1870
|
+
* @throws {RequiredError}
|
|
1871
|
+
*/
|
|
1872
|
+
getMyClientAccount(options) {
|
|
1873
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1874
|
+
var _a, _b, _c;
|
|
1875
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getMyClientAccount(options);
|
|
1876
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1877
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClientAccountsApi.getMyClientAccount']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1878
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1879
|
+
});
|
|
1880
|
+
},
|
|
1881
|
+
/**
|
|
1882
|
+
* Récupère l\'historique des abonnements du compte client authentifié
|
|
1883
|
+
* @param {*} [options] Override http request option.
|
|
1884
|
+
* @throws {RequiredError}
|
|
1885
|
+
*/
|
|
1886
|
+
getSubscriptionsHistory(options) {
|
|
1887
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1888
|
+
var _a, _b, _c;
|
|
1889
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getSubscriptionsHistory(options);
|
|
1890
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1891
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClientAccountsApi.getSubscriptionsHistory']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1892
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1893
|
+
});
|
|
1894
|
+
},
|
|
1895
|
+
/**
|
|
1896
|
+
* Liste les prix Stripe disponibles pour les abonnements client
|
|
1897
|
+
* @param {*} [options] Override http request option.
|
|
1898
|
+
* @throws {RequiredError}
|
|
1899
|
+
*/
|
|
1900
|
+
listAvailablePrices(options) {
|
|
1901
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1902
|
+
var _a, _b, _c;
|
|
1903
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listAvailablePrices(options);
|
|
1904
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1905
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClientAccountsApi.listAvailablePrices']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1906
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1907
|
+
});
|
|
1908
|
+
},
|
|
1909
|
+
/**
|
|
1910
|
+
* Crée un nouveau compte client avec onboarding Stripe
|
|
1911
|
+
* @param {ClientAccountOnboardingRequest} clientAccountOnboardingRequest Les données du compte à créer
|
|
1912
|
+
* @param {*} [options] Override http request option.
|
|
1913
|
+
* @throws {RequiredError}
|
|
1914
|
+
*/
|
|
1915
|
+
onboardClientAccount(clientAccountOnboardingRequest, options) {
|
|
1916
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1917
|
+
var _a, _b, _c;
|
|
1918
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.onboardClientAccount(clientAccountOnboardingRequest, options);
|
|
1919
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1920
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClientAccountsApi.onboardClientAccount']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1921
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1922
|
+
});
|
|
1923
|
+
},
|
|
1924
|
+
/**
|
|
1925
|
+
* Route d\'inscription d\'un utilisateur client (publique)
|
|
1926
|
+
* @param {ClientRegisterRequestBody} clientRegisterRequestBody
|
|
1927
|
+
* @param {*} [options] Override http request option.
|
|
1928
|
+
* @throws {RequiredError}
|
|
1929
|
+
*/
|
|
1930
|
+
registerClientUser(clientRegisterRequestBody, options) {
|
|
1931
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1932
|
+
var _a, _b, _c;
|
|
1933
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.registerClientUser(clientRegisterRequestBody, options);
|
|
1934
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1935
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClientAccountsApi.registerClientUser']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1936
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1937
|
+
});
|
|
1938
|
+
},
|
|
1939
|
+
};
|
|
1940
|
+
};
|
|
1941
|
+
exports.ClientAccountsApiFp = ClientAccountsApiFp;
|
|
1942
|
+
/**
|
|
1943
|
+
* ClientAccountsApi - factory interface
|
|
1944
|
+
* @export
|
|
1945
|
+
*/
|
|
1946
|
+
const ClientAccountsApiFactory = function (configuration, basePath, axios) {
|
|
1947
|
+
const localVarFp = (0, exports.ClientAccountsApiFp)(configuration);
|
|
1948
|
+
return {
|
|
1949
|
+
/**
|
|
1950
|
+
* Informations de l\'utilisateur client authentifié (token clientAuth)
|
|
1951
|
+
* @param {*} [options] Override http request option.
|
|
1952
|
+
* @throws {RequiredError}
|
|
1953
|
+
*/
|
|
1954
|
+
clientAuthMe(options) {
|
|
1955
|
+
return localVarFp.clientAuthMe(options).then((request) => request(axios, basePath));
|
|
1956
|
+
},
|
|
1957
|
+
/**
|
|
1958
|
+
* Récupère le compte client par son ID
|
|
1959
|
+
* @param {ClientAccountsApiGetClientAccountByIdRequest} requestParameters Request parameters.
|
|
1960
|
+
* @param {*} [options] Override http request option.
|
|
1961
|
+
* @throws {RequiredError}
|
|
1962
|
+
*/
|
|
1963
|
+
getClientAccountById(requestParameters, options) {
|
|
1964
|
+
return localVarFp.getClientAccountById(requestParameters.accountId, options).then((request) => request(axios, basePath));
|
|
1965
|
+
},
|
|
1966
|
+
/**
|
|
1967
|
+
* Récupère l\'abonnement actif du compte client authentifié
|
|
1968
|
+
* @param {*} [options] Override http request option.
|
|
1969
|
+
* @throws {RequiredError}
|
|
1970
|
+
*/
|
|
1971
|
+
getMyActiveSubscription(options) {
|
|
1972
|
+
return localVarFp.getMyActiveSubscription(options).then((request) => request(axios, basePath));
|
|
1973
|
+
},
|
|
1974
|
+
/**
|
|
1975
|
+
* Récupère le compte client de l\'utilisateur authentifié
|
|
1976
|
+
* @param {*} [options] Override http request option.
|
|
1977
|
+
* @throws {RequiredError}
|
|
1978
|
+
*/
|
|
1979
|
+
getMyClientAccount(options) {
|
|
1980
|
+
return localVarFp.getMyClientAccount(options).then((request) => request(axios, basePath));
|
|
1981
|
+
},
|
|
1982
|
+
/**
|
|
1983
|
+
* Récupère l\'historique des abonnements du compte client authentifié
|
|
1984
|
+
* @param {*} [options] Override http request option.
|
|
1985
|
+
* @throws {RequiredError}
|
|
1986
|
+
*/
|
|
1987
|
+
getSubscriptionsHistory(options) {
|
|
1988
|
+
return localVarFp.getSubscriptionsHistory(options).then((request) => request(axios, basePath));
|
|
1989
|
+
},
|
|
1990
|
+
/**
|
|
1991
|
+
* Liste les prix Stripe disponibles pour les abonnements client
|
|
1992
|
+
* @param {*} [options] Override http request option.
|
|
1993
|
+
* @throws {RequiredError}
|
|
1994
|
+
*/
|
|
1995
|
+
listAvailablePrices(options) {
|
|
1996
|
+
return localVarFp.listAvailablePrices(options).then((request) => request(axios, basePath));
|
|
1997
|
+
},
|
|
1998
|
+
/**
|
|
1999
|
+
* Crée un nouveau compte client avec onboarding Stripe
|
|
2000
|
+
* @param {ClientAccountsApiOnboardClientAccountRequest} requestParameters Request parameters.
|
|
2001
|
+
* @param {*} [options] Override http request option.
|
|
2002
|
+
* @throws {RequiredError}
|
|
2003
|
+
*/
|
|
2004
|
+
onboardClientAccount(requestParameters, options) {
|
|
2005
|
+
return localVarFp.onboardClientAccount(requestParameters.clientAccountOnboardingRequest, options).then((request) => request(axios, basePath));
|
|
2006
|
+
},
|
|
2007
|
+
/**
|
|
2008
|
+
* Route d\'inscription d\'un utilisateur client (publique)
|
|
2009
|
+
* @param {ClientAccountsApiRegisterClientUserRequest} requestParameters Request parameters.
|
|
2010
|
+
* @param {*} [options] Override http request option.
|
|
2011
|
+
* @throws {RequiredError}
|
|
2012
|
+
*/
|
|
2013
|
+
registerClientUser(requestParameters, options) {
|
|
2014
|
+
return localVarFp.registerClientUser(requestParameters.clientRegisterRequestBody, options).then((request) => request(axios, basePath));
|
|
2015
|
+
},
|
|
2016
|
+
};
|
|
2017
|
+
};
|
|
2018
|
+
exports.ClientAccountsApiFactory = ClientAccountsApiFactory;
|
|
2019
|
+
/**
|
|
2020
|
+
* ClientAccountsApi - object-oriented interface
|
|
2021
|
+
* @export
|
|
2022
|
+
* @class ClientAccountsApi
|
|
2023
|
+
* @extends {BaseAPI}
|
|
2024
|
+
*/
|
|
2025
|
+
class ClientAccountsApi extends base_1.BaseAPI {
|
|
2026
|
+
/**
|
|
2027
|
+
* Informations de l\'utilisateur client authentifié (token clientAuth)
|
|
2028
|
+
* @param {*} [options] Override http request option.
|
|
2029
|
+
* @throws {RequiredError}
|
|
2030
|
+
* @memberof ClientAccountsApi
|
|
2031
|
+
*/
|
|
2032
|
+
clientAuthMe(options) {
|
|
2033
|
+
return (0, exports.ClientAccountsApiFp)(this.configuration).clientAuthMe(options).then((request) => request(this.axios, this.basePath));
|
|
2034
|
+
}
|
|
2035
|
+
/**
|
|
2036
|
+
* Récupère le compte client par son ID
|
|
2037
|
+
* @param {ClientAccountsApiGetClientAccountByIdRequest} requestParameters Request parameters.
|
|
2038
|
+
* @param {*} [options] Override http request option.
|
|
2039
|
+
* @throws {RequiredError}
|
|
2040
|
+
* @memberof ClientAccountsApi
|
|
2041
|
+
*/
|
|
2042
|
+
getClientAccountById(requestParameters, options) {
|
|
2043
|
+
return (0, exports.ClientAccountsApiFp)(this.configuration).getClientAccountById(requestParameters.accountId, options).then((request) => request(this.axios, this.basePath));
|
|
2044
|
+
}
|
|
2045
|
+
/**
|
|
2046
|
+
* Récupère l\'abonnement actif du compte client authentifié
|
|
2047
|
+
* @param {*} [options] Override http request option.
|
|
2048
|
+
* @throws {RequiredError}
|
|
2049
|
+
* @memberof ClientAccountsApi
|
|
2050
|
+
*/
|
|
2051
|
+
getMyActiveSubscription(options) {
|
|
2052
|
+
return (0, exports.ClientAccountsApiFp)(this.configuration).getMyActiveSubscription(options).then((request) => request(this.axios, this.basePath));
|
|
2053
|
+
}
|
|
2054
|
+
/**
|
|
2055
|
+
* Récupère le compte client de l\'utilisateur authentifié
|
|
2056
|
+
* @param {*} [options] Override http request option.
|
|
2057
|
+
* @throws {RequiredError}
|
|
2058
|
+
* @memberof ClientAccountsApi
|
|
2059
|
+
*/
|
|
2060
|
+
getMyClientAccount(options) {
|
|
2061
|
+
return (0, exports.ClientAccountsApiFp)(this.configuration).getMyClientAccount(options).then((request) => request(this.axios, this.basePath));
|
|
2062
|
+
}
|
|
2063
|
+
/**
|
|
2064
|
+
* Récupère l\'historique des abonnements du compte client authentifié
|
|
2065
|
+
* @param {*} [options] Override http request option.
|
|
2066
|
+
* @throws {RequiredError}
|
|
2067
|
+
* @memberof ClientAccountsApi
|
|
2068
|
+
*/
|
|
2069
|
+
getSubscriptionsHistory(options) {
|
|
2070
|
+
return (0, exports.ClientAccountsApiFp)(this.configuration).getSubscriptionsHistory(options).then((request) => request(this.axios, this.basePath));
|
|
2071
|
+
}
|
|
2072
|
+
/**
|
|
2073
|
+
* Liste les prix Stripe disponibles pour les abonnements client
|
|
2074
|
+
* @param {*} [options] Override http request option.
|
|
2075
|
+
* @throws {RequiredError}
|
|
2076
|
+
* @memberof ClientAccountsApi
|
|
2077
|
+
*/
|
|
2078
|
+
listAvailablePrices(options) {
|
|
2079
|
+
return (0, exports.ClientAccountsApiFp)(this.configuration).listAvailablePrices(options).then((request) => request(this.axios, this.basePath));
|
|
2080
|
+
}
|
|
2081
|
+
/**
|
|
2082
|
+
* Crée un nouveau compte client avec onboarding Stripe
|
|
2083
|
+
* @param {ClientAccountsApiOnboardClientAccountRequest} requestParameters Request parameters.
|
|
2084
|
+
* @param {*} [options] Override http request option.
|
|
2085
|
+
* @throws {RequiredError}
|
|
2086
|
+
* @memberof ClientAccountsApi
|
|
2087
|
+
*/
|
|
2088
|
+
onboardClientAccount(requestParameters, options) {
|
|
2089
|
+
return (0, exports.ClientAccountsApiFp)(this.configuration).onboardClientAccount(requestParameters.clientAccountOnboardingRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2090
|
+
}
|
|
2091
|
+
/**
|
|
2092
|
+
* Route d\'inscription d\'un utilisateur client (publique)
|
|
2093
|
+
* @param {ClientAccountsApiRegisterClientUserRequest} requestParameters Request parameters.
|
|
2094
|
+
* @param {*} [options] Override http request option.
|
|
2095
|
+
* @throws {RequiredError}
|
|
2096
|
+
* @memberof ClientAccountsApi
|
|
2097
|
+
*/
|
|
2098
|
+
registerClientUser(requestParameters, options) {
|
|
2099
|
+
return (0, exports.ClientAccountsApiFp)(this.configuration).registerClientUser(requestParameters.clientRegisterRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
2100
|
+
}
|
|
2101
|
+
}
|
|
2102
|
+
exports.ClientAccountsApi = ClientAccountsApi;
|
|
2103
|
+
/**
|
|
2104
|
+
* ClubAnalyticsApi - axios parameter creator
|
|
2105
|
+
* @export
|
|
2106
|
+
*/
|
|
2107
|
+
const ClubAnalyticsApiAxiosParamCreator = function (configuration) {
|
|
2108
|
+
return {
|
|
2109
|
+
/**
|
|
2110
|
+
* Récupère les clubs les plus aimés
|
|
2111
|
+
* @param {*} [options] Override http request option.
|
|
2112
|
+
* @throws {RequiredError}
|
|
2113
|
+
*/
|
|
2114
|
+
getMostLikedClub: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
2115
|
+
const localVarPath = `/api/club-analytics/most-liked-clubs`;
|
|
2116
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2117
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2118
|
+
let baseOptions;
|
|
2119
|
+
if (configuration) {
|
|
2120
|
+
baseOptions = configuration.baseOptions;
|
|
2121
|
+
}
|
|
2122
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2123
|
+
const localVarHeaderParameter = {};
|
|
2124
|
+
const localVarQueryParameter = {};
|
|
2125
|
+
// authentication bearerAuth required
|
|
2126
|
+
// http bearer authentication required
|
|
2127
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2128
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2129
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2130
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2131
|
+
return {
|
|
2132
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2133
|
+
options: localVarRequestOptions,
|
|
2134
|
+
};
|
|
2135
|
+
}),
|
|
2136
|
+
/**
|
|
2137
|
+
* Récupère les clubs populaires
|
|
2138
|
+
* @param {*} [options] Override http request option.
|
|
2139
|
+
* @throws {RequiredError}
|
|
2140
|
+
*/
|
|
2141
|
+
getPopularClubs: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
2142
|
+
const localVarPath = `/api/club-analytics/popular-clubs`;
|
|
2143
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2144
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2145
|
+
let baseOptions;
|
|
2146
|
+
if (configuration) {
|
|
2147
|
+
baseOptions = configuration.baseOptions;
|
|
2148
|
+
}
|
|
2149
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2150
|
+
const localVarHeaderParameter = {};
|
|
2151
|
+
const localVarQueryParameter = {};
|
|
2152
|
+
// authentication bearerAuth required
|
|
2153
|
+
// http bearer authentication required
|
|
2154
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2155
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2156
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2157
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2158
|
+
return {
|
|
2159
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2160
|
+
options: localVarRequestOptions,
|
|
2161
|
+
};
|
|
2162
|
+
}),
|
|
2163
|
+
};
|
|
2164
|
+
};
|
|
2165
|
+
exports.ClubAnalyticsApiAxiosParamCreator = ClubAnalyticsApiAxiosParamCreator;
|
|
2166
|
+
/**
|
|
2167
|
+
* ClubAnalyticsApi - functional programming interface
|
|
2168
|
+
* @export
|
|
2169
|
+
*/
|
|
2170
|
+
const ClubAnalyticsApiFp = function (configuration) {
|
|
2171
|
+
const localVarAxiosParamCreator = (0, exports.ClubAnalyticsApiAxiosParamCreator)(configuration);
|
|
2172
|
+
return {
|
|
2173
|
+
/**
|
|
2174
|
+
* Récupère les clubs les plus aimés
|
|
2175
|
+
* @param {*} [options] Override http request option.
|
|
2176
|
+
* @throws {RequiredError}
|
|
2177
|
+
*/
|
|
2178
|
+
getMostLikedClub(options) {
|
|
2179
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2180
|
+
var _a, _b, _c;
|
|
2181
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getMostLikedClub(options);
|
|
2182
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2183
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubAnalyticsApi.getMostLikedClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2184
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2185
|
+
});
|
|
2186
|
+
},
|
|
2187
|
+
/**
|
|
2188
|
+
* Récupère les clubs populaires
|
|
2189
|
+
* @param {*} [options] Override http request option.
|
|
2190
|
+
* @throws {RequiredError}
|
|
2191
|
+
*/
|
|
2192
|
+
getPopularClubs(options) {
|
|
2193
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2194
|
+
var _a, _b, _c;
|
|
2195
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getPopularClubs(options);
|
|
2196
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2197
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubAnalyticsApi.getPopularClubs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2198
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2199
|
+
});
|
|
2200
|
+
},
|
|
2201
|
+
};
|
|
2202
|
+
};
|
|
2203
|
+
exports.ClubAnalyticsApiFp = ClubAnalyticsApiFp;
|
|
2204
|
+
/**
|
|
2205
|
+
* ClubAnalyticsApi - factory interface
|
|
2206
|
+
* @export
|
|
2207
|
+
*/
|
|
2208
|
+
const ClubAnalyticsApiFactory = function (configuration, basePath, axios) {
|
|
2209
|
+
const localVarFp = (0, exports.ClubAnalyticsApiFp)(configuration);
|
|
2210
|
+
return {
|
|
2211
|
+
/**
|
|
2212
|
+
* Récupère les clubs les plus aimés
|
|
2213
|
+
* @param {*} [options] Override http request option.
|
|
2214
|
+
* @throws {RequiredError}
|
|
2215
|
+
*/
|
|
2216
|
+
getMostLikedClub(options) {
|
|
2217
|
+
return localVarFp.getMostLikedClub(options).then((request) => request(axios, basePath));
|
|
2218
|
+
},
|
|
2219
|
+
/**
|
|
2220
|
+
* Récupère les clubs populaires
|
|
2221
|
+
* @param {*} [options] Override http request option.
|
|
2222
|
+
* @throws {RequiredError}
|
|
2223
|
+
*/
|
|
2224
|
+
getPopularClubs(options) {
|
|
2225
|
+
return localVarFp.getPopularClubs(options).then((request) => request(axios, basePath));
|
|
2226
|
+
},
|
|
2227
|
+
};
|
|
2228
|
+
};
|
|
2229
|
+
exports.ClubAnalyticsApiFactory = ClubAnalyticsApiFactory;
|
|
2230
|
+
/**
|
|
2231
|
+
* ClubAnalyticsApi - object-oriented interface
|
|
2232
|
+
* @export
|
|
2233
|
+
* @class ClubAnalyticsApi
|
|
2234
|
+
* @extends {BaseAPI}
|
|
2235
|
+
*/
|
|
2236
|
+
class ClubAnalyticsApi extends base_1.BaseAPI {
|
|
2237
|
+
/**
|
|
2238
|
+
* Récupère les clubs les plus aimés
|
|
2239
|
+
* @param {*} [options] Override http request option.
|
|
2240
|
+
* @throws {RequiredError}
|
|
2241
|
+
* @memberof ClubAnalyticsApi
|
|
2242
|
+
*/
|
|
2243
|
+
getMostLikedClub(options) {
|
|
2244
|
+
return (0, exports.ClubAnalyticsApiFp)(this.configuration).getMostLikedClub(options).then((request) => request(this.axios, this.basePath));
|
|
2245
|
+
}
|
|
2246
|
+
/**
|
|
2247
|
+
* Récupère les clubs populaires
|
|
2248
|
+
* @param {*} [options] Override http request option.
|
|
2249
|
+
* @throws {RequiredError}
|
|
2250
|
+
* @memberof ClubAnalyticsApi
|
|
2251
|
+
*/
|
|
2252
|
+
getPopularClubs(options) {
|
|
2253
|
+
return (0, exports.ClubAnalyticsApiFp)(this.configuration).getPopularClubs(options).then((request) => request(this.axios, this.basePath));
|
|
2254
|
+
}
|
|
2255
|
+
}
|
|
2256
|
+
exports.ClubAnalyticsApi = ClubAnalyticsApi;
|
|
2257
|
+
/**
|
|
2258
|
+
* ClubAnalyticsStaffApi - axios parameter creator
|
|
2259
|
+
* @export
|
|
2260
|
+
*/
|
|
2261
|
+
const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration) {
|
|
2262
|
+
return {
|
|
2263
|
+
/**
|
|
2264
|
+
* Récupère les analytics par sport
|
|
2265
|
+
* @param {string} sportId
|
|
2266
|
+
* @param {*} [options] Override http request option.
|
|
2267
|
+
* @throws {RequiredError}
|
|
2268
|
+
*/
|
|
2269
|
+
getAnalyticsBySport: (sportId_1, ...args_1) => __awaiter(this, [sportId_1, ...args_1], void 0, function* (sportId, options = {}) {
|
|
2270
|
+
// verify required parameter 'sportId' is not null or undefined
|
|
2271
|
+
(0, common_1.assertParamExists)('getAnalyticsBySport', 'sportId', sportId);
|
|
2272
|
+
const localVarPath = `/api/club-analytics/sport/{sportId}/analytics`
|
|
2273
|
+
.replace(`{${"sportId"}}`, encodeURIComponent(String(sportId)));
|
|
2274
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2275
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2276
|
+
let baseOptions;
|
|
2277
|
+
if (configuration) {
|
|
2278
|
+
baseOptions = configuration.baseOptions;
|
|
2279
|
+
}
|
|
2280
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2281
|
+
const localVarHeaderParameter = {};
|
|
2282
|
+
const localVarQueryParameter = {};
|
|
2283
|
+
// authentication bearerAuth required
|
|
2284
|
+
// http bearer authentication required
|
|
2285
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2286
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2287
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2288
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2289
|
+
return {
|
|
2290
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2291
|
+
options: localVarRequestOptions,
|
|
2292
|
+
};
|
|
2293
|
+
}),
|
|
2294
|
+
/**
|
|
2295
|
+
* Récupère les réservations d\'un joueur par son ID (à venir et passées)
|
|
2296
|
+
* @param {string} playerId
|
|
2297
|
+
* @param {number} [page]
|
|
2298
|
+
* @param {number} [pageSize]
|
|
2299
|
+
* @param {*} [options] Override http request option.
|
|
2300
|
+
* @throws {RequiredError}
|
|
2301
|
+
*/
|
|
2302
|
+
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 = {}) {
|
|
2303
|
+
// verify required parameter 'playerId' is not null or undefined
|
|
2304
|
+
(0, common_1.assertParamExists)('getClubPlayerBookingsById', 'playerId', playerId);
|
|
2305
|
+
const localVarPath = `/api/club-analytics/players/{playerId}/bookings`
|
|
2306
|
+
.replace(`{${"playerId"}}`, encodeURIComponent(String(playerId)));
|
|
2307
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2308
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2309
|
+
let baseOptions;
|
|
2310
|
+
if (configuration) {
|
|
2311
|
+
baseOptions = configuration.baseOptions;
|
|
2312
|
+
}
|
|
2313
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2314
|
+
const localVarHeaderParameter = {};
|
|
2315
|
+
const localVarQueryParameter = {};
|
|
2316
|
+
// authentication bearerAuth required
|
|
2317
|
+
// http bearer authentication required
|
|
2318
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2319
|
+
if (page !== undefined) {
|
|
2320
|
+
localVarQueryParameter['page'] = page;
|
|
2321
|
+
}
|
|
2322
|
+
if (pageSize !== undefined) {
|
|
2323
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
2324
|
+
}
|
|
2325
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2326
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2327
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2328
|
+
return {
|
|
2329
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2330
|
+
options: localVarRequestOptions,
|
|
2331
|
+
};
|
|
2332
|
+
}),
|
|
2333
|
+
/**
|
|
2334
|
+
* Récupère les informations détaillées d\'un joueur par son ID
|
|
2335
|
+
* @param {string} playerId
|
|
2336
|
+
* @param {*} [options] Override http request option.
|
|
2337
|
+
* @throws {RequiredError}
|
|
2338
|
+
*/
|
|
2339
|
+
getClubPlayerById: (playerId_1, ...args_1) => __awaiter(this, [playerId_1, ...args_1], void 0, function* (playerId, options = {}) {
|
|
2340
|
+
// verify required parameter 'playerId' is not null or undefined
|
|
2341
|
+
(0, common_1.assertParamExists)('getClubPlayerById', 'playerId', playerId);
|
|
2342
|
+
const localVarPath = `/api/club-analytics/players/{playerId}`
|
|
2343
|
+
.replace(`{${"playerId"}}`, encodeURIComponent(String(playerId)));
|
|
2344
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2345
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2346
|
+
let baseOptions;
|
|
2347
|
+
if (configuration) {
|
|
2348
|
+
baseOptions = configuration.baseOptions;
|
|
2349
|
+
}
|
|
2350
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2351
|
+
const localVarHeaderParameter = {};
|
|
2352
|
+
const localVarQueryParameter = {};
|
|
2353
|
+
// authentication bearerAuth required
|
|
2354
|
+
// http bearer authentication required
|
|
2355
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2356
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2357
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2358
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2359
|
+
return {
|
|
2360
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2361
|
+
options: localVarRequestOptions,
|
|
2362
|
+
};
|
|
2363
|
+
}),
|
|
2364
|
+
/**
|
|
2365
|
+
* Récupère les statistiques d\'un joueur pour le staff
|
|
2366
|
+
* @param {string} playerId
|
|
2367
|
+
* @param {*} [options] Override http request option.
|
|
2368
|
+
* @throws {RequiredError}
|
|
2369
|
+
*/
|
|
2370
|
+
getClubPlayerStatisticsById: (playerId_1, ...args_1) => __awaiter(this, [playerId_1, ...args_1], void 0, function* (playerId, options = {}) {
|
|
2371
|
+
// verify required parameter 'playerId' is not null or undefined
|
|
2372
|
+
(0, common_1.assertParamExists)('getClubPlayerStatisticsById', 'playerId', playerId);
|
|
2373
|
+
const localVarPath = `/api/club-analytics/players/{playerId}/statistics`
|
|
2374
|
+
.replace(`{${"playerId"}}`, encodeURIComponent(String(playerId)));
|
|
2375
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2376
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2377
|
+
let baseOptions;
|
|
2378
|
+
if (configuration) {
|
|
2379
|
+
baseOptions = configuration.baseOptions;
|
|
2380
|
+
}
|
|
2381
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2382
|
+
const localVarHeaderParameter = {};
|
|
2383
|
+
const localVarQueryParameter = {};
|
|
2384
|
+
// authentication bearerAuth required
|
|
2385
|
+
// http bearer authentication required
|
|
2386
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2387
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2388
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2389
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2390
|
+
return {
|
|
2391
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2392
|
+
options: localVarRequestOptions,
|
|
2393
|
+
};
|
|
2394
|
+
}),
|
|
2395
|
+
/**
|
|
2396
|
+
* Récupère la liste des joueurs du club
|
|
2397
|
+
* @param {*} [options] Override http request option.
|
|
2398
|
+
* @throws {RequiredError}
|
|
2399
|
+
*/
|
|
2400
|
+
getClubPlayers: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
2401
|
+
const localVarPath = `/api/club-analytics/players`;
|
|
2402
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2403
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2404
|
+
let baseOptions;
|
|
2405
|
+
if (configuration) {
|
|
2406
|
+
baseOptions = configuration.baseOptions;
|
|
2407
|
+
}
|
|
2408
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2409
|
+
const localVarHeaderParameter = {};
|
|
2410
|
+
const localVarQueryParameter = {};
|
|
2411
|
+
// authentication bearerAuth required
|
|
2412
|
+
// http bearer authentication required
|
|
2413
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2414
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2415
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2416
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2417
|
+
return {
|
|
2418
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2419
|
+
options: localVarRequestOptions,
|
|
2420
|
+
};
|
|
2421
|
+
}),
|
|
2422
|
+
/**
|
|
2423
|
+
* Récupère le chiffre d\'affaires quotidien
|
|
2424
|
+
* @param {string} date
|
|
2425
|
+
* @param {*} [options] Override http request option.
|
|
2426
|
+
* @throws {RequiredError}
|
|
2427
|
+
*/
|
|
2428
|
+
getDailyTurnOver: (date_1, ...args_1) => __awaiter(this, [date_1, ...args_1], void 0, function* (date, options = {}) {
|
|
2429
|
+
// verify required parameter 'date' is not null or undefined
|
|
2430
|
+
(0, common_1.assertParamExists)('getDailyTurnOver', 'date', date);
|
|
2431
|
+
const localVarPath = `/api/club-analytics/daily-turnover`;
|
|
2432
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2433
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2434
|
+
let baseOptions;
|
|
2435
|
+
if (configuration) {
|
|
2436
|
+
baseOptions = configuration.baseOptions;
|
|
2437
|
+
}
|
|
2438
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2439
|
+
const localVarHeaderParameter = {};
|
|
2440
|
+
const localVarQueryParameter = {};
|
|
2441
|
+
// authentication bearerAuth required
|
|
2442
|
+
// http bearer authentication required
|
|
2443
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2444
|
+
if (date !== undefined) {
|
|
2445
|
+
localVarQueryParameter['date'] = date;
|
|
2446
|
+
}
|
|
2447
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2448
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2449
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2450
|
+
return {
|
|
2451
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2452
|
+
options: localVarRequestOptions,
|
|
2453
|
+
};
|
|
2454
|
+
}),
|
|
2455
|
+
/**
|
|
2456
|
+
* Récupère les pourcentages par genre
|
|
2457
|
+
* @param {*} [options] Override http request option.
|
|
2458
|
+
* @throws {RequiredError}
|
|
2459
|
+
*/
|
|
2460
|
+
getGenderPercentage: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
2461
|
+
const localVarPath = `/api/club-analytics/gender-percentage`;
|
|
2462
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2463
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2464
|
+
let baseOptions;
|
|
2465
|
+
if (configuration) {
|
|
2466
|
+
baseOptions = configuration.baseOptions;
|
|
2467
|
+
}
|
|
2468
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2469
|
+
const localVarHeaderParameter = {};
|
|
2470
|
+
const localVarQueryParameter = {};
|
|
2471
|
+
// authentication bearerAuth required
|
|
2472
|
+
// http bearer authentication required
|
|
2473
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2474
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2475
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2476
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2477
|
+
return {
|
|
2478
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2479
|
+
options: localVarRequestOptions,
|
|
2480
|
+
};
|
|
2481
|
+
}),
|
|
2482
|
+
/**
|
|
2483
|
+
* Récupère le taux de remplissage (infill) pour une période donnée
|
|
2484
|
+
* @param {string} [startDate]
|
|
2485
|
+
* @param {string} [endDate]
|
|
2486
|
+
* @param {*} [options] Override http request option.
|
|
2487
|
+
* @throws {RequiredError}
|
|
2488
|
+
*/
|
|
2489
|
+
getInfillPercentagePerPeriod: (startDate_1, endDate_1, ...args_1) => __awaiter(this, [startDate_1, endDate_1, ...args_1], void 0, function* (startDate, endDate, options = {}) {
|
|
2028
2490
|
const localVarPath = `/api/club-analytics/infill-percentage`;
|
|
2029
2491
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2030
2492
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -6306,6 +6768,42 @@ const ClubsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
6306
6768
|
options: localVarRequestOptions,
|
|
6307
6769
|
};
|
|
6308
6770
|
}),
|
|
6771
|
+
/**
|
|
6772
|
+
*
|
|
6773
|
+
* @param {string} id
|
|
6774
|
+
* @param {UpdateUserCreditsRequest} updateUserCreditsRequest
|
|
6775
|
+
* @param {*} [options] Override http request option.
|
|
6776
|
+
* @throws {RequiredError}
|
|
6777
|
+
*/
|
|
6778
|
+
updateUserCreditsStaff: (id_1, updateUserCreditsRequest_1, ...args_1) => __awaiter(this, [id_1, updateUserCreditsRequest_1, ...args_1], void 0, function* (id, updateUserCreditsRequest, options = {}) {
|
|
6779
|
+
// verify required parameter 'id' is not null or undefined
|
|
6780
|
+
(0, common_1.assertParamExists)('updateUserCreditsStaff', 'id', id);
|
|
6781
|
+
// verify required parameter 'updateUserCreditsRequest' is not null or undefined
|
|
6782
|
+
(0, common_1.assertParamExists)('updateUserCreditsStaff', 'updateUserCreditsRequest', updateUserCreditsRequest);
|
|
6783
|
+
const localVarPath = `/api/clubs/staff/user-credits/{id}`
|
|
6784
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
6785
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6786
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6787
|
+
let baseOptions;
|
|
6788
|
+
if (configuration) {
|
|
6789
|
+
baseOptions = configuration.baseOptions;
|
|
6790
|
+
}
|
|
6791
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
6792
|
+
const localVarHeaderParameter = {};
|
|
6793
|
+
const localVarQueryParameter = {};
|
|
6794
|
+
// authentication bearerAuth required
|
|
6795
|
+
// http bearer authentication required
|
|
6796
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6797
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6798
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6799
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6800
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6801
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateUserCreditsRequest, localVarRequestOptions, configuration);
|
|
6802
|
+
return {
|
|
6803
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6804
|
+
options: localVarRequestOptions,
|
|
6805
|
+
};
|
|
6806
|
+
}),
|
|
6309
6807
|
};
|
|
6310
6808
|
};
|
|
6311
6809
|
exports.ClubsStaffApiAxiosParamCreator = ClubsStaffApiAxiosParamCreator;
|
|
@@ -6410,22 +6908,38 @@ const ClubsStaffApiFp = function (configuration) {
|
|
|
6410
6908
|
var _a, _b, _c;
|
|
6411
6909
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.getInvoices(options);
|
|
6412
6910
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
6413
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubsStaffApi.getInvoices']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
6911
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubsStaffApi.getInvoices']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
6912
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6913
|
+
});
|
|
6914
|
+
},
|
|
6915
|
+
/**
|
|
6916
|
+
*
|
|
6917
|
+
* @param {string} id
|
|
6918
|
+
* @param {*} [options] Override http request option.
|
|
6919
|
+
* @throws {RequiredError}
|
|
6920
|
+
*/
|
|
6921
|
+
getUserProfileStaff(id, options) {
|
|
6922
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6923
|
+
var _a, _b, _c;
|
|
6924
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserProfileStaff(id, options);
|
|
6925
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
6926
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubsStaffApi.getUserProfileStaff']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
6414
6927
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6415
6928
|
});
|
|
6416
6929
|
},
|
|
6417
6930
|
/**
|
|
6418
6931
|
*
|
|
6419
6932
|
* @param {string} id
|
|
6933
|
+
* @param {UpdateUserCreditsRequest} updateUserCreditsRequest
|
|
6420
6934
|
* @param {*} [options] Override http request option.
|
|
6421
6935
|
* @throws {RequiredError}
|
|
6422
6936
|
*/
|
|
6423
|
-
|
|
6937
|
+
updateUserCreditsStaff(id, updateUserCreditsRequest, options) {
|
|
6424
6938
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6425
6939
|
var _a, _b, _c;
|
|
6426
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
6940
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateUserCreditsStaff(id, updateUserCreditsRequest, options);
|
|
6427
6941
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
6428
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubsStaffApi.
|
|
6942
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubsStaffApi.updateUserCreditsStaff']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
6429
6943
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6430
6944
|
});
|
|
6431
6945
|
},
|
|
@@ -6504,6 +7018,15 @@ const ClubsStaffApiFactory = function (configuration, basePath, axios) {
|
|
|
6504
7018
|
getUserProfileStaff(requestParameters, options) {
|
|
6505
7019
|
return localVarFp.getUserProfileStaff(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
6506
7020
|
},
|
|
7021
|
+
/**
|
|
7022
|
+
*
|
|
7023
|
+
* @param {ClubsStaffApiUpdateUserCreditsStaffRequest} requestParameters Request parameters.
|
|
7024
|
+
* @param {*} [options] Override http request option.
|
|
7025
|
+
* @throws {RequiredError}
|
|
7026
|
+
*/
|
|
7027
|
+
updateUserCreditsStaff(requestParameters, options) {
|
|
7028
|
+
return localVarFp.updateUserCreditsStaff(requestParameters.id, requestParameters.updateUserCreditsRequest, options).then((request) => request(axios, basePath));
|
|
7029
|
+
},
|
|
6507
7030
|
};
|
|
6508
7031
|
};
|
|
6509
7032
|
exports.ClubsStaffApiFactory = ClubsStaffApiFactory;
|
|
@@ -6587,6 +7110,16 @@ class ClubsStaffApi extends base_1.BaseAPI {
|
|
|
6587
7110
|
getUserProfileStaff(requestParameters, options) {
|
|
6588
7111
|
return (0, exports.ClubsStaffApiFp)(this.configuration).getUserProfileStaff(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
6589
7112
|
}
|
|
7113
|
+
/**
|
|
7114
|
+
*
|
|
7115
|
+
* @param {ClubsStaffApiUpdateUserCreditsStaffRequest} requestParameters Request parameters.
|
|
7116
|
+
* @param {*} [options] Override http request option.
|
|
7117
|
+
* @throws {RequiredError}
|
|
7118
|
+
* @memberof ClubsStaffApi
|
|
7119
|
+
*/
|
|
7120
|
+
updateUserCreditsStaff(requestParameters, options) {
|
|
7121
|
+
return (0, exports.ClubsStaffApiFp)(this.configuration).updateUserCreditsStaff(requestParameters.id, requestParameters.updateUserCreditsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
7122
|
+
}
|
|
6590
7123
|
}
|
|
6591
7124
|
exports.ClubsStaffApi = ClubsStaffApi;
|
|
6592
7125
|
/**
|
|
@@ -7394,6 +7927,53 @@ exports.EventsManagerApi = EventsManagerApi;
|
|
|
7394
7927
|
*/
|
|
7395
7928
|
const EventsStaffApiAxiosParamCreator = function (configuration) {
|
|
7396
7929
|
return {
|
|
7930
|
+
/**
|
|
7931
|
+
* Get events for the day view (entire week)
|
|
7932
|
+
* @param {string} [clubId]
|
|
7933
|
+
* @param {string} [date]
|
|
7934
|
+
* @param {GetDailyEventsVisibilityTypeEnum} [visibilityType]
|
|
7935
|
+
* @param {GetDailyEventsTypeEnum} [type]
|
|
7936
|
+
* @param {string} [sportId]
|
|
7937
|
+
* @param {*} [options] Override http request option.
|
|
7938
|
+
* @throws {RequiredError}
|
|
7939
|
+
*/
|
|
7940
|
+
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 = {}) {
|
|
7941
|
+
const localVarPath = `/api/events/calendar/daily`;
|
|
7942
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7943
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7944
|
+
let baseOptions;
|
|
7945
|
+
if (configuration) {
|
|
7946
|
+
baseOptions = configuration.baseOptions;
|
|
7947
|
+
}
|
|
7948
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
7949
|
+
const localVarHeaderParameter = {};
|
|
7950
|
+
const localVarQueryParameter = {};
|
|
7951
|
+
// authentication bearerAuth required
|
|
7952
|
+
// http bearer authentication required
|
|
7953
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
7954
|
+
if (clubId !== undefined) {
|
|
7955
|
+
localVarQueryParameter['clubId'] = clubId;
|
|
7956
|
+
}
|
|
7957
|
+
if (date !== undefined) {
|
|
7958
|
+
localVarQueryParameter['date'] = date;
|
|
7959
|
+
}
|
|
7960
|
+
if (visibilityType !== undefined) {
|
|
7961
|
+
localVarQueryParameter['visibilityType'] = visibilityType;
|
|
7962
|
+
}
|
|
7963
|
+
if (type !== undefined) {
|
|
7964
|
+
localVarQueryParameter['type'] = type;
|
|
7965
|
+
}
|
|
7966
|
+
if (sportId !== undefined) {
|
|
7967
|
+
localVarQueryParameter['sportId'] = sportId;
|
|
7968
|
+
}
|
|
7969
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7970
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7971
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7972
|
+
return {
|
|
7973
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
7974
|
+
options: localVarRequestOptions,
|
|
7975
|
+
};
|
|
7976
|
+
}),
|
|
7397
7977
|
/**
|
|
7398
7978
|
* Get all events for a club (staff only)
|
|
7399
7979
|
* @param {*} [options] Override http request option.
|
|
@@ -7421,6 +8001,100 @@ const EventsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
7421
8001
|
options: localVarRequestOptions,
|
|
7422
8002
|
};
|
|
7423
8003
|
}),
|
|
8004
|
+
/**
|
|
8005
|
+
* Get events for the entire month view (including recurring occurrences)
|
|
8006
|
+
* @param {string} [clubId]
|
|
8007
|
+
* @param {string} [date]
|
|
8008
|
+
* @param {GetMonthlyEventsVisibilityTypeEnum} [visibilityType]
|
|
8009
|
+
* @param {GetMonthlyEventsTypeEnum} [type]
|
|
8010
|
+
* @param {string} [sportId]
|
|
8011
|
+
* @param {*} [options] Override http request option.
|
|
8012
|
+
* @throws {RequiredError}
|
|
8013
|
+
*/
|
|
8014
|
+
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 = {}) {
|
|
8015
|
+
const localVarPath = `/api/events/calendar/monthly`;
|
|
8016
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8017
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
8018
|
+
let baseOptions;
|
|
8019
|
+
if (configuration) {
|
|
8020
|
+
baseOptions = configuration.baseOptions;
|
|
8021
|
+
}
|
|
8022
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
8023
|
+
const localVarHeaderParameter = {};
|
|
8024
|
+
const localVarQueryParameter = {};
|
|
8025
|
+
// authentication bearerAuth required
|
|
8026
|
+
// http bearer authentication required
|
|
8027
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
8028
|
+
if (clubId !== undefined) {
|
|
8029
|
+
localVarQueryParameter['clubId'] = clubId;
|
|
8030
|
+
}
|
|
8031
|
+
if (date !== undefined) {
|
|
8032
|
+
localVarQueryParameter['date'] = date;
|
|
8033
|
+
}
|
|
8034
|
+
if (visibilityType !== undefined) {
|
|
8035
|
+
localVarQueryParameter['visibilityType'] = visibilityType;
|
|
8036
|
+
}
|
|
8037
|
+
if (type !== undefined) {
|
|
8038
|
+
localVarQueryParameter['type'] = type;
|
|
8039
|
+
}
|
|
8040
|
+
if (sportId !== undefined) {
|
|
8041
|
+
localVarQueryParameter['sportId'] = sportId;
|
|
8042
|
+
}
|
|
8043
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
8044
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8045
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8046
|
+
return {
|
|
8047
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
8048
|
+
options: localVarRequestOptions,
|
|
8049
|
+
};
|
|
8050
|
+
}),
|
|
8051
|
+
/**
|
|
8052
|
+
* Get events for the week view (30 day sliding window)
|
|
8053
|
+
* @param {string} [clubId]
|
|
8054
|
+
* @param {string} [date]
|
|
8055
|
+
* @param {GetWeeklyEventsVisibilityTypeEnum} [visibilityType]
|
|
8056
|
+
* @param {GetWeeklyEventsTypeEnum} [type]
|
|
8057
|
+
* @param {string} [sportId]
|
|
8058
|
+
* @param {*} [options] Override http request option.
|
|
8059
|
+
* @throws {RequiredError}
|
|
8060
|
+
*/
|
|
8061
|
+
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 = {}) {
|
|
8062
|
+
const localVarPath = `/api/events/calendar/weekly`;
|
|
8063
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8064
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
8065
|
+
let baseOptions;
|
|
8066
|
+
if (configuration) {
|
|
8067
|
+
baseOptions = configuration.baseOptions;
|
|
8068
|
+
}
|
|
8069
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
8070
|
+
const localVarHeaderParameter = {};
|
|
8071
|
+
const localVarQueryParameter = {};
|
|
8072
|
+
// authentication bearerAuth required
|
|
8073
|
+
// http bearer authentication required
|
|
8074
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
8075
|
+
if (clubId !== undefined) {
|
|
8076
|
+
localVarQueryParameter['clubId'] = clubId;
|
|
8077
|
+
}
|
|
8078
|
+
if (date !== undefined) {
|
|
8079
|
+
localVarQueryParameter['date'] = date;
|
|
8080
|
+
}
|
|
8081
|
+
if (visibilityType !== undefined) {
|
|
8082
|
+
localVarQueryParameter['visibilityType'] = visibilityType;
|
|
8083
|
+
}
|
|
8084
|
+
if (type !== undefined) {
|
|
8085
|
+
localVarQueryParameter['type'] = type;
|
|
8086
|
+
}
|
|
8087
|
+
if (sportId !== undefined) {
|
|
8088
|
+
localVarQueryParameter['sportId'] = sportId;
|
|
8089
|
+
}
|
|
8090
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
8091
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8092
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8093
|
+
return {
|
|
8094
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
8095
|
+
options: localVarRequestOptions,
|
|
8096
|
+
};
|
|
8097
|
+
}),
|
|
7424
8098
|
};
|
|
7425
8099
|
};
|
|
7426
8100
|
exports.EventsStaffApiAxiosParamCreator = EventsStaffApiAxiosParamCreator;
|
|
@@ -7431,6 +8105,25 @@ exports.EventsStaffApiAxiosParamCreator = EventsStaffApiAxiosParamCreator;
|
|
|
7431
8105
|
const EventsStaffApiFp = function (configuration) {
|
|
7432
8106
|
const localVarAxiosParamCreator = (0, exports.EventsStaffApiAxiosParamCreator)(configuration);
|
|
7433
8107
|
return {
|
|
8108
|
+
/**
|
|
8109
|
+
* Get events for the day view (entire week)
|
|
8110
|
+
* @param {string} [clubId]
|
|
8111
|
+
* @param {string} [date]
|
|
8112
|
+
* @param {GetDailyEventsVisibilityTypeEnum} [visibilityType]
|
|
8113
|
+
* @param {GetDailyEventsTypeEnum} [type]
|
|
8114
|
+
* @param {string} [sportId]
|
|
8115
|
+
* @param {*} [options] Override http request option.
|
|
8116
|
+
* @throws {RequiredError}
|
|
8117
|
+
*/
|
|
8118
|
+
getDailyEvents(clubId, date, visibilityType, type, sportId, options) {
|
|
8119
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8120
|
+
var _a, _b, _c;
|
|
8121
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getDailyEvents(clubId, date, visibilityType, type, sportId, options);
|
|
8122
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8123
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EventsStaffApi.getDailyEvents']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8124
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8125
|
+
});
|
|
8126
|
+
},
|
|
7434
8127
|
/**
|
|
7435
8128
|
* Get all events for a club (staff only)
|
|
7436
8129
|
* @param {*} [options] Override http request option.
|
|
@@ -7445,6 +8138,44 @@ const EventsStaffApiFp = function (configuration) {
|
|
|
7445
8138
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7446
8139
|
});
|
|
7447
8140
|
},
|
|
8141
|
+
/**
|
|
8142
|
+
* Get events for the entire month view (including recurring occurrences)
|
|
8143
|
+
* @param {string} [clubId]
|
|
8144
|
+
* @param {string} [date]
|
|
8145
|
+
* @param {GetMonthlyEventsVisibilityTypeEnum} [visibilityType]
|
|
8146
|
+
* @param {GetMonthlyEventsTypeEnum} [type]
|
|
8147
|
+
* @param {string} [sportId]
|
|
8148
|
+
* @param {*} [options] Override http request option.
|
|
8149
|
+
* @throws {RequiredError}
|
|
8150
|
+
*/
|
|
8151
|
+
getMonthlyEvents(clubId, date, visibilityType, type, sportId, options) {
|
|
8152
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8153
|
+
var _a, _b, _c;
|
|
8154
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getMonthlyEvents(clubId, date, visibilityType, type, sportId, options);
|
|
8155
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8156
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EventsStaffApi.getMonthlyEvents']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8157
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8158
|
+
});
|
|
8159
|
+
},
|
|
8160
|
+
/**
|
|
8161
|
+
* Get events for the week view (30 day sliding window)
|
|
8162
|
+
* @param {string} [clubId]
|
|
8163
|
+
* @param {string} [date]
|
|
8164
|
+
* @param {GetWeeklyEventsVisibilityTypeEnum} [visibilityType]
|
|
8165
|
+
* @param {GetWeeklyEventsTypeEnum} [type]
|
|
8166
|
+
* @param {string} [sportId]
|
|
8167
|
+
* @param {*} [options] Override http request option.
|
|
8168
|
+
* @throws {RequiredError}
|
|
8169
|
+
*/
|
|
8170
|
+
getWeeklyEvents(clubId, date, visibilityType, type, sportId, options) {
|
|
8171
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8172
|
+
var _a, _b, _c;
|
|
8173
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getWeeklyEvents(clubId, date, visibilityType, type, sportId, options);
|
|
8174
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8175
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EventsStaffApi.getWeeklyEvents']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8176
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8177
|
+
});
|
|
8178
|
+
},
|
|
7448
8179
|
};
|
|
7449
8180
|
};
|
|
7450
8181
|
exports.EventsStaffApiFp = EventsStaffApiFp;
|
|
@@ -7455,6 +8186,15 @@ exports.EventsStaffApiFp = EventsStaffApiFp;
|
|
|
7455
8186
|
const EventsStaffApiFactory = function (configuration, basePath, axios) {
|
|
7456
8187
|
const localVarFp = (0, exports.EventsStaffApiFp)(configuration);
|
|
7457
8188
|
return {
|
|
8189
|
+
/**
|
|
8190
|
+
* Get events for the day view (entire week)
|
|
8191
|
+
* @param {EventsStaffApiGetDailyEventsRequest} requestParameters Request parameters.
|
|
8192
|
+
* @param {*} [options] Override http request option.
|
|
8193
|
+
* @throws {RequiredError}
|
|
8194
|
+
*/
|
|
8195
|
+
getDailyEvents(requestParameters = {}, options) {
|
|
8196
|
+
return localVarFp.getDailyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(axios, basePath));
|
|
8197
|
+
},
|
|
7458
8198
|
/**
|
|
7459
8199
|
* Get all events for a club (staff only)
|
|
7460
8200
|
* @param {*} [options] Override http request option.
|
|
@@ -7463,6 +8203,24 @@ const EventsStaffApiFactory = function (configuration, basePath, axios) {
|
|
|
7463
8203
|
getEventsByClub(options) {
|
|
7464
8204
|
return localVarFp.getEventsByClub(options).then((request) => request(axios, basePath));
|
|
7465
8205
|
},
|
|
8206
|
+
/**
|
|
8207
|
+
* Get events for the entire month view (including recurring occurrences)
|
|
8208
|
+
* @param {EventsStaffApiGetMonthlyEventsRequest} requestParameters Request parameters.
|
|
8209
|
+
* @param {*} [options] Override http request option.
|
|
8210
|
+
* @throws {RequiredError}
|
|
8211
|
+
*/
|
|
8212
|
+
getMonthlyEvents(requestParameters = {}, options) {
|
|
8213
|
+
return localVarFp.getMonthlyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(axios, basePath));
|
|
8214
|
+
},
|
|
8215
|
+
/**
|
|
8216
|
+
* Get events for the week view (30 day sliding window)
|
|
8217
|
+
* @param {EventsStaffApiGetWeeklyEventsRequest} requestParameters Request parameters.
|
|
8218
|
+
* @param {*} [options] Override http request option.
|
|
8219
|
+
* @throws {RequiredError}
|
|
8220
|
+
*/
|
|
8221
|
+
getWeeklyEvents(requestParameters = {}, options) {
|
|
8222
|
+
return localVarFp.getWeeklyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(axios, basePath));
|
|
8223
|
+
},
|
|
7466
8224
|
};
|
|
7467
8225
|
};
|
|
7468
8226
|
exports.EventsStaffApiFactory = EventsStaffApiFactory;
|
|
@@ -7473,6 +8231,16 @@ exports.EventsStaffApiFactory = EventsStaffApiFactory;
|
|
|
7473
8231
|
* @extends {BaseAPI}
|
|
7474
8232
|
*/
|
|
7475
8233
|
class EventsStaffApi extends base_1.BaseAPI {
|
|
8234
|
+
/**
|
|
8235
|
+
* Get events for the day view (entire week)
|
|
8236
|
+
* @param {EventsStaffApiGetDailyEventsRequest} requestParameters Request parameters.
|
|
8237
|
+
* @param {*} [options] Override http request option.
|
|
8238
|
+
* @throws {RequiredError}
|
|
8239
|
+
* @memberof EventsStaffApi
|
|
8240
|
+
*/
|
|
8241
|
+
getDailyEvents(requestParameters = {}, options) {
|
|
8242
|
+
return (0, exports.EventsStaffApiFp)(this.configuration).getDailyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
|
|
8243
|
+
}
|
|
7476
8244
|
/**
|
|
7477
8245
|
* Get all events for a club (staff only)
|
|
7478
8246
|
* @param {*} [options] Override http request option.
|
|
@@ -7482,8 +8250,73 @@ class EventsStaffApi extends base_1.BaseAPI {
|
|
|
7482
8250
|
getEventsByClub(options) {
|
|
7483
8251
|
return (0, exports.EventsStaffApiFp)(this.configuration).getEventsByClub(options).then((request) => request(this.axios, this.basePath));
|
|
7484
8252
|
}
|
|
8253
|
+
/**
|
|
8254
|
+
* Get events for the entire month view (including recurring occurrences)
|
|
8255
|
+
* @param {EventsStaffApiGetMonthlyEventsRequest} requestParameters Request parameters.
|
|
8256
|
+
* @param {*} [options] Override http request option.
|
|
8257
|
+
* @throws {RequiredError}
|
|
8258
|
+
* @memberof EventsStaffApi
|
|
8259
|
+
*/
|
|
8260
|
+
getMonthlyEvents(requestParameters = {}, options) {
|
|
8261
|
+
return (0, exports.EventsStaffApiFp)(this.configuration).getMonthlyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
|
|
8262
|
+
}
|
|
8263
|
+
/**
|
|
8264
|
+
* Get events for the week view (30 day sliding window)
|
|
8265
|
+
* @param {EventsStaffApiGetWeeklyEventsRequest} requestParameters Request parameters.
|
|
8266
|
+
* @param {*} [options] Override http request option.
|
|
8267
|
+
* @throws {RequiredError}
|
|
8268
|
+
* @memberof EventsStaffApi
|
|
8269
|
+
*/
|
|
8270
|
+
getWeeklyEvents(requestParameters = {}, options) {
|
|
8271
|
+
return (0, exports.EventsStaffApiFp)(this.configuration).getWeeklyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
|
|
8272
|
+
}
|
|
7485
8273
|
}
|
|
7486
8274
|
exports.EventsStaffApi = EventsStaffApi;
|
|
8275
|
+
/**
|
|
8276
|
+
* @export
|
|
8277
|
+
*/
|
|
8278
|
+
exports.GetDailyEventsVisibilityTypeEnum = {
|
|
8279
|
+
Public: 'public',
|
|
8280
|
+
Private: 'private',
|
|
8281
|
+
Invitation: 'invitation'
|
|
8282
|
+
};
|
|
8283
|
+
/**
|
|
8284
|
+
* @export
|
|
8285
|
+
*/
|
|
8286
|
+
exports.GetDailyEventsTypeEnum = {
|
|
8287
|
+
Event: 'event',
|
|
8288
|
+
Closure: 'closure'
|
|
8289
|
+
};
|
|
8290
|
+
/**
|
|
8291
|
+
* @export
|
|
8292
|
+
*/
|
|
8293
|
+
exports.GetMonthlyEventsVisibilityTypeEnum = {
|
|
8294
|
+
Public: 'public',
|
|
8295
|
+
Private: 'private',
|
|
8296
|
+
Invitation: 'invitation'
|
|
8297
|
+
};
|
|
8298
|
+
/**
|
|
8299
|
+
* @export
|
|
8300
|
+
*/
|
|
8301
|
+
exports.GetMonthlyEventsTypeEnum = {
|
|
8302
|
+
Event: 'event',
|
|
8303
|
+
Closure: 'closure'
|
|
8304
|
+
};
|
|
8305
|
+
/**
|
|
8306
|
+
* @export
|
|
8307
|
+
*/
|
|
8308
|
+
exports.GetWeeklyEventsVisibilityTypeEnum = {
|
|
8309
|
+
Public: 'public',
|
|
8310
|
+
Private: 'private',
|
|
8311
|
+
Invitation: 'invitation'
|
|
8312
|
+
};
|
|
8313
|
+
/**
|
|
8314
|
+
* @export
|
|
8315
|
+
*/
|
|
8316
|
+
exports.GetWeeklyEventsTypeEnum = {
|
|
8317
|
+
Event: 'event',
|
|
8318
|
+
Closure: 'closure'
|
|
8319
|
+
};
|
|
7487
8320
|
/**
|
|
7488
8321
|
* SportsManagerApi - axios parameter creator
|
|
7489
8322
|
* @export
|