@tennac-booking/sdk 1.0.111 → 1.0.113
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +15 -16
- package/README.md +23 -30
- package/api.ts +1150 -1925
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +838 -1282
- package/dist/api.js +542 -1109
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +838 -1282
- package/dist/esm/api.js +556 -1119
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/BookingsWithTimeBoundsResponse.md +1 -1
- package/docs/CheckInEventParticipants200Response.md +22 -0
- package/docs/CheckInEventParticipants200ResponseInvoicesInner.md +28 -0
- package/docs/{ClientRegisterResponse.md → CheckInEventParticipantsRequest.md} +5 -7
- package/docs/ClientApi.md +58 -3
- package/docs/{ClientAccountOnboardingResponse.md → ClientFullOnboardingResponse.md} +7 -11
- package/docs/ClientFullOnboardingResponseClub.md +24 -0
- package/docs/ClientRegister201Response.md +26 -0
- package/docs/{ClientRegisterRequestBody.md → ClientRegisterRequest.md} +7 -7
- package/docs/ClubMetadataResponse.md +30 -0
- package/docs/ClubMetadataResponseLocation.md +27 -0
- package/docs/ClubPlayerDetailResponse.md +0 -2
- package/docs/ClubSummary.md +2 -8
- package/docs/ClubsApi.md +55 -0
- package/docs/ClubsManagerApi.md +0 -56
- package/docs/ClubsStaffApi.md +59 -55
- package/docs/CreateEventRequest.md +1 -3
- package/docs/CreateOnsiteInvoiceRequest.md +28 -0
- package/docs/CreateOnsiteInvoiceResponse.md +22 -0
- package/docs/CreateOnsiteInvoiceResponseInvoice.md +31 -0
- package/docs/EventConflictCheckRequest.md +28 -0
- package/docs/EventConflictCheckResponse.md +26 -0
- package/docs/EventsManagerApi.md +114 -0
- package/docs/EventsStaffApi.md +20 -159
- package/docs/JoinEventRequest.md +8 -0
- package/docs/{AgendaBookingPlayer.md → JoinEventRequestPlayersPaymentMethodsInner.md} +5 -9
- package/docs/PaymentMethod.md +4 -0
- package/docs/PublishEventResponse.md +2 -0
- package/index.ts +1 -1
- package/package.json +1 -1
- package/docs/ActiveSubscriptionResponse.md +0 -22
- package/docs/AgendaBooking.md +0 -30
- package/docs/AgendaBookingSlot.md +0 -30
- package/docs/AgendaPaymentStatus.md +0 -12
- package/docs/ClientAccountOnboardingRequest.md +0 -29
- package/docs/ClientAccountResponse.md +0 -44
- package/docs/ClientAccountsApi.md +0 -408
- package/docs/ClientMeResponse.md +0 -28
- package/docs/ClientOnboardingResponse.md +0 -27
- package/docs/ClientSubscriptionResponse.md +0 -34
- package/docs/GetSubscriptionsHistory200Response.md +0 -22
- package/docs/UpdateUserCreditsRequest.md +0 -20
package/dist/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.110
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -22,26 +22,16 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
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.
|
|
26
|
-
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.
|
|
27
|
-
exports.
|
|
28
|
-
exports.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = exports.UserApi =
|
|
25
|
+
exports.BookingsApiAxiosParamCreator = exports.UserLocationSummaryTypeEnum = 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.CaptureResultStatusEnum = exports.CaptureResultTypeEnum = exports.BookingStatus = exports.BookingHistoryPopulatedPerformedByTypeEnum = void 0;
|
|
26
|
+
exports.ClubsManagerApiFactory = exports.ClubsManagerApiFp = exports.ClubsManagerApiAxiosParamCreator = exports.ClubsApi = exports.ClubsApiFactory = exports.ClubsApiFp = 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.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 = void 0;
|
|
27
|
+
exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.SubscriptionsUserApi = exports.SubscriptionsUserApiFactory = exports.SubscriptionsUserApiFp = exports.SubscriptionsUserApiAxiosParamCreator = exports.SubscriptionsStaffApi = exports.SubscriptionsStaffApiFactory = exports.SubscriptionsStaffApiFp = exports.SubscriptionsStaffApiAxiosParamCreator = exports.SubscriptionsPublicApi = 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.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 = void 0;
|
|
28
|
+
exports.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = exports.UserApi = void 0;
|
|
29
29
|
const axios_1 = require("axios");
|
|
30
30
|
// Some imports not used depending on template conditions
|
|
31
31
|
// @ts-ignore
|
|
32
32
|
const common_1 = require("./common");
|
|
33
33
|
// @ts-ignore
|
|
34
34
|
const base_1 = require("./base");
|
|
35
|
-
/**
|
|
36
|
-
*
|
|
37
|
-
* @export
|
|
38
|
-
* @enum {string}
|
|
39
|
-
*/
|
|
40
|
-
exports.AgendaPaymentStatus = {
|
|
41
|
-
Pay: 'payé',
|
|
42
|
-
NonPay: 'non payé',
|
|
43
|
-
EnAttente: 'en attente'
|
|
44
|
-
};
|
|
45
35
|
exports.BookingHistoryPopulatedPerformedByTypeEnum = {
|
|
46
36
|
User: 'user',
|
|
47
37
|
Manager: 'manager',
|
|
@@ -69,14 +59,6 @@ exports.CaptureResultStatusEnum = {
|
|
|
69
59
|
Captured: 'captured',
|
|
70
60
|
Failed: 'failed'
|
|
71
61
|
};
|
|
72
|
-
exports.ClientAccountOnboardingRequestBusinessTypeEnum = {
|
|
73
|
-
Individual: 'individual',
|
|
74
|
-
Company: 'company'
|
|
75
|
-
};
|
|
76
|
-
exports.ClientAccountOnboardingRequestSubscriptionTypeEnum = {
|
|
77
|
-
Basic: 'basic',
|
|
78
|
-
PlatformWithConnect: 'platform_with_connect'
|
|
79
|
-
};
|
|
80
62
|
exports.ClubRoleResponseRoleEnum = {
|
|
81
63
|
Admin: 'admin',
|
|
82
64
|
Manager: 'manager',
|
|
@@ -181,6 +163,8 @@ exports.InvoiceStatus = {
|
|
|
181
163
|
exports.PaymentMethod = {
|
|
182
164
|
Online: 'online',
|
|
183
165
|
Onsite: 'onsite',
|
|
166
|
+
OnsiteCard: 'onsite_card',
|
|
167
|
+
OnsiteCash: 'onsite_cash',
|
|
184
168
|
Free: 'free'
|
|
185
169
|
};
|
|
186
170
|
/**
|
|
@@ -1435,6 +1419,35 @@ exports.BookingsUserApi = BookingsUserApi;
|
|
|
1435
1419
|
*/
|
|
1436
1420
|
const ClientApiAxiosParamCreator = function (configuration) {
|
|
1437
1421
|
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
|
+
}),
|
|
1438
1451
|
/**
|
|
1439
1452
|
* Récupère la liste des clubs gérés par l\'utilisateur authentifié
|
|
1440
1453
|
* @param {*} [options] Override http request option.
|
|
@@ -1481,6 +1494,9 @@ const ClientApiAxiosParamCreator = function (configuration) {
|
|
|
1481
1494
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1482
1495
|
const localVarHeaderParameter = {};
|
|
1483
1496
|
const localVarQueryParameter = {};
|
|
1497
|
+
// authentication clientAuth required
|
|
1498
|
+
// http bearer authentication required
|
|
1499
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1484
1500
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1485
1501
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1486
1502
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -1501,6 +1517,21 @@ exports.ClientApiAxiosParamCreator = ClientApiAxiosParamCreator;
|
|
|
1501
1517
|
const ClientApiFp = function (configuration) {
|
|
1502
1518
|
const localVarAxiosParamCreator = (0, exports.ClientApiAxiosParamCreator)(configuration);
|
|
1503
1519
|
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
|
+
},
|
|
1504
1535
|
/**
|
|
1505
1536
|
* Récupère la liste des clubs gérés par l\'utilisateur authentifié
|
|
1506
1537
|
* @param {*} [options] Override http request option.
|
|
@@ -1540,6 +1571,15 @@ exports.ClientApiFp = ClientApiFp;
|
|
|
1540
1571
|
const ClientApiFactory = function (configuration, basePath, axios) {
|
|
1541
1572
|
const localVarFp = (0, exports.ClientApiFp)(configuration);
|
|
1542
1573
|
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
|
+
},
|
|
1543
1583
|
/**
|
|
1544
1584
|
* Récupère la liste des clubs gérés par l\'utilisateur authentifié
|
|
1545
1585
|
* @param {*} [options] Override http request option.
|
|
@@ -1567,6 +1607,16 @@ exports.ClientApiFactory = ClientApiFactory;
|
|
|
1567
1607
|
* @extends {BaseAPI}
|
|
1568
1608
|
*/
|
|
1569
1609
|
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
|
+
}
|
|
1570
1620
|
/**
|
|
1571
1621
|
* Récupère la liste des clubs gérés par l\'utilisateur authentifié
|
|
1572
1622
|
* @param {*} [options] Override http request option.
|
|
@@ -1589,18 +1639,18 @@ class ClientApi extends base_1.BaseAPI {
|
|
|
1589
1639
|
}
|
|
1590
1640
|
exports.ClientApi = ClientApi;
|
|
1591
1641
|
/**
|
|
1592
|
-
*
|
|
1642
|
+
* ClubAnalyticsApi - axios parameter creator
|
|
1593
1643
|
* @export
|
|
1594
1644
|
*/
|
|
1595
|
-
const
|
|
1645
|
+
const ClubAnalyticsApiAxiosParamCreator = function (configuration) {
|
|
1596
1646
|
return {
|
|
1597
1647
|
/**
|
|
1598
|
-
*
|
|
1648
|
+
* Récupère les clubs les plus aimés
|
|
1599
1649
|
* @param {*} [options] Override http request option.
|
|
1600
1650
|
* @throws {RequiredError}
|
|
1601
1651
|
*/
|
|
1602
|
-
|
|
1603
|
-
const localVarPath = `/
|
|
1652
|
+
getMostLikedClub: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
1653
|
+
const localVarPath = `/api/club-analytics/most-liked-clubs`;
|
|
1604
1654
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1605
1655
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1606
1656
|
let baseOptions;
|
|
@@ -1610,7 +1660,7 @@ const ClientAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
1610
1660
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1611
1661
|
const localVarHeaderParameter = {};
|
|
1612
1662
|
const localVarQueryParameter = {};
|
|
1613
|
-
// authentication
|
|
1663
|
+
// authentication bearerAuth required
|
|
1614
1664
|
// http bearer authentication required
|
|
1615
1665
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1616
1666
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -1622,16 +1672,12 @@ const ClientAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
1622
1672
|
};
|
|
1623
1673
|
}),
|
|
1624
1674
|
/**
|
|
1625
|
-
* Récupère
|
|
1626
|
-
* @param {string} accountId L\'ID du compte client
|
|
1675
|
+
* Récupère les clubs populaires
|
|
1627
1676
|
* @param {*} [options] Override http request option.
|
|
1628
1677
|
* @throws {RequiredError}
|
|
1629
1678
|
*/
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
(0, common_1.assertParamExists)('getClientAccountById', 'accountId', accountId);
|
|
1633
|
-
const localVarPath = `/client-accounts/{accountId}`
|
|
1634
|
-
.replace(`{${"accountId"}}`, encodeURIComponent(String(accountId)));
|
|
1679
|
+
getPopularClubs: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
1680
|
+
const localVarPath = `/api/club-analytics/popular-clubs`;
|
|
1635
1681
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1636
1682
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1637
1683
|
let baseOptions;
|
|
@@ -1652,13 +1698,117 @@ const ClientAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
1652
1698
|
options: localVarRequestOptions,
|
|
1653
1699
|
};
|
|
1654
1700
|
}),
|
|
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 {
|
|
1655
1801
|
/**
|
|
1656
|
-
* Récupère
|
|
1802
|
+
* Récupère les analytics par sport
|
|
1803
|
+
* @param {string} sportId
|
|
1657
1804
|
* @param {*} [options] Override http request option.
|
|
1658
1805
|
* @throws {RequiredError}
|
|
1659
1806
|
*/
|
|
1660
|
-
|
|
1661
|
-
|
|
1807
|
+
getAnalyticsBySport: (sportId_1, ...args_1) => __awaiter(this, [sportId_1, ...args_1], void 0, function* (sportId, options = {}) {
|
|
1808
|
+
// verify required parameter 'sportId' is not null or undefined
|
|
1809
|
+
(0, common_1.assertParamExists)('getAnalyticsBySport', 'sportId', sportId);
|
|
1810
|
+
const localVarPath = `/api/club-analytics/sport/{sportId}/analytics`
|
|
1811
|
+
.replace(`{${"sportId"}}`, encodeURIComponent(String(sportId)));
|
|
1662
1812
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1663
1813
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1664
1814
|
let baseOptions;
|
|
@@ -1680,12 +1830,18 @@ const ClientAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
1680
1830
|
};
|
|
1681
1831
|
}),
|
|
1682
1832
|
/**
|
|
1683
|
-
* Récupère
|
|
1833
|
+
* Récupère les réservations d\'un joueur par son ID (à venir et passées)
|
|
1834
|
+
* @param {string} playerId
|
|
1835
|
+
* @param {number} [page]
|
|
1836
|
+
* @param {number} [pageSize]
|
|
1684
1837
|
* @param {*} [options] Override http request option.
|
|
1685
1838
|
* @throws {RequiredError}
|
|
1686
1839
|
*/
|
|
1687
|
-
|
|
1688
|
-
|
|
1840
|
+
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 = {}) {
|
|
1841
|
+
// verify required parameter 'playerId' is not null or undefined
|
|
1842
|
+
(0, common_1.assertParamExists)('getClubPlayerBookingsById', 'playerId', playerId);
|
|
1843
|
+
const localVarPath = `/api/club-analytics/players/{playerId}/bookings`
|
|
1844
|
+
.replace(`{${"playerId"}}`, encodeURIComponent(String(playerId)));
|
|
1689
1845
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1690
1846
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1691
1847
|
let baseOptions;
|
|
@@ -1698,6 +1854,12 @@ const ClientAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
1698
1854
|
// authentication bearerAuth required
|
|
1699
1855
|
// http bearer authentication required
|
|
1700
1856
|
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
|
+
}
|
|
1701
1863
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1702
1864
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1703
1865
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -1707,12 +1869,16 @@ const ClientAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
1707
1869
|
};
|
|
1708
1870
|
}),
|
|
1709
1871
|
/**
|
|
1710
|
-
* Récupère
|
|
1872
|
+
* Récupère les informations détaillées d\'un joueur par son ID
|
|
1873
|
+
* @param {string} playerId
|
|
1711
1874
|
* @param {*} [options] Override http request option.
|
|
1712
1875
|
* @throws {RequiredError}
|
|
1713
1876
|
*/
|
|
1714
|
-
|
|
1715
|
-
|
|
1877
|
+
getClubPlayerById: (playerId_1, ...args_1) => __awaiter(this, [playerId_1, ...args_1], void 0, function* (playerId, options = {}) {
|
|
1878
|
+
// verify required parameter 'playerId' is not null or undefined
|
|
1879
|
+
(0, common_1.assertParamExists)('getClubPlayerById', 'playerId', playerId);
|
|
1880
|
+
const localVarPath = `/api/club-analytics/players/{playerId}`
|
|
1881
|
+
.replace(`{${"playerId"}}`, encodeURIComponent(String(playerId)));
|
|
1716
1882
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1717
1883
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1718
1884
|
let baseOptions;
|
|
@@ -1734,12 +1900,16 @@ const ClientAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
1734
1900
|
};
|
|
1735
1901
|
}),
|
|
1736
1902
|
/**
|
|
1737
|
-
*
|
|
1903
|
+
* Récupère les statistiques d\'un joueur pour le staff
|
|
1904
|
+
* @param {string} playerId
|
|
1738
1905
|
* @param {*} [options] Override http request option.
|
|
1739
1906
|
* @throws {RequiredError}
|
|
1740
1907
|
*/
|
|
1741
|
-
|
|
1742
|
-
|
|
1908
|
+
getClubPlayerStatisticsById: (playerId_1, ...args_1) => __awaiter(this, [playerId_1, ...args_1], void 0, function* (playerId, options = {}) {
|
|
1909
|
+
// verify required parameter 'playerId' is not null or undefined
|
|
1910
|
+
(0, common_1.assertParamExists)('getClubPlayerStatisticsById', 'playerId', playerId);
|
|
1911
|
+
const localVarPath = `/api/club-analytics/players/{playerId}/statistics`
|
|
1912
|
+
.replace(`{${"playerId"}}`, encodeURIComponent(String(playerId)));
|
|
1743
1913
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1744
1914
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1745
1915
|
let baseOptions;
|
|
@@ -1761,709 +1931,67 @@ const ClientAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
1761
1931
|
};
|
|
1762
1932
|
}),
|
|
1763
1933
|
/**
|
|
1764
|
-
*
|
|
1765
|
-
* @param {ClientAccountOnboardingRequest} clientAccountOnboardingRequest Les données du compte à créer
|
|
1934
|
+
* Récupère la liste des joueurs du club
|
|
1766
1935
|
* @param {*} [options] Override http request option.
|
|
1767
1936
|
* @throws {RequiredError}
|
|
1768
1937
|
*/
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
(0, common_1.assertParamExists)('onboardClientAccount', 'clientAccountOnboardingRequest', clientAccountOnboardingRequest);
|
|
1772
|
-
const localVarPath = `/client-accounts/onboarding`;
|
|
1938
|
+
getClubPlayers: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
1939
|
+
const localVarPath = `/api/club-analytics/players`;
|
|
1773
1940
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1774
1941
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1775
1942
|
let baseOptions;
|
|
1776
1943
|
if (configuration) {
|
|
1777
1944
|
baseOptions = configuration.baseOptions;
|
|
1778
1945
|
}
|
|
1779
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
1946
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1780
1947
|
const localVarHeaderParameter = {};
|
|
1781
1948
|
const localVarQueryParameter = {};
|
|
1782
|
-
// authentication
|
|
1949
|
+
// authentication bearerAuth required
|
|
1783
1950
|
// http bearer authentication required
|
|
1784
1951
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1785
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1786
1952
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1787
1953
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1788
1954
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1789
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(clientAccountOnboardingRequest, localVarRequestOptions, configuration);
|
|
1790
1955
|
return {
|
|
1791
1956
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1792
1957
|
options: localVarRequestOptions,
|
|
1793
1958
|
};
|
|
1794
1959
|
}),
|
|
1795
1960
|
/**
|
|
1796
|
-
*
|
|
1797
|
-
* @param {
|
|
1961
|
+
* Récupère le chiffre d\'affaires quotidien
|
|
1962
|
+
* @param {string} date
|
|
1798
1963
|
* @param {*} [options] Override http request option.
|
|
1799
1964
|
* @throws {RequiredError}
|
|
1800
1965
|
*/
|
|
1801
|
-
|
|
1802
|
-
// verify required parameter '
|
|
1803
|
-
(0, common_1.assertParamExists)('
|
|
1804
|
-
const localVarPath = `/
|
|
1966
|
+
getDailyTurnOver: (date_1, ...args_1) => __awaiter(this, [date_1, ...args_1], void 0, function* (date, options = {}) {
|
|
1967
|
+
// verify required parameter 'date' is not null or undefined
|
|
1968
|
+
(0, common_1.assertParamExists)('getDailyTurnOver', 'date', date);
|
|
1969
|
+
const localVarPath = `/api/club-analytics/daily-turnover`;
|
|
1805
1970
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1806
1971
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1807
1972
|
let baseOptions;
|
|
1808
1973
|
if (configuration) {
|
|
1809
1974
|
baseOptions = configuration.baseOptions;
|
|
1810
1975
|
}
|
|
1811
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
1976
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1812
1977
|
const localVarHeaderParameter = {};
|
|
1813
1978
|
const localVarQueryParameter = {};
|
|
1814
|
-
|
|
1979
|
+
// authentication bearerAuth required
|
|
1980
|
+
// http bearer authentication required
|
|
1981
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1982
|
+
if (date !== undefined) {
|
|
1983
|
+
localVarQueryParameter['date'] = date;
|
|
1984
|
+
}
|
|
1815
1985
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1816
1986
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1817
1987
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1818
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(clientRegisterRequestBody, localVarRequestOptions, configuration);
|
|
1819
1988
|
return {
|
|
1820
1989
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1821
1990
|
options: localVarRequestOptions,
|
|
1822
1991
|
};
|
|
1823
1992
|
}),
|
|
1824
|
-
};
|
|
1825
|
-
};
|
|
1826
|
-
exports.ClientAccountsApiAxiosParamCreator = ClientAccountsApiAxiosParamCreator;
|
|
1827
|
-
/**
|
|
1828
|
-
* ClientAccountsApi - functional programming interface
|
|
1829
|
-
* @export
|
|
1830
|
-
*/
|
|
1831
|
-
const ClientAccountsApiFp = function (configuration) {
|
|
1832
|
-
const localVarAxiosParamCreator = (0, exports.ClientAccountsApiAxiosParamCreator)(configuration);
|
|
1833
|
-
return {
|
|
1834
|
-
/**
|
|
1835
|
-
* Informations de l\'utilisateur client authentifié (token clientAuth)
|
|
1836
|
-
* @param {*} [options] Override http request option.
|
|
1837
|
-
* @throws {RequiredError}
|
|
1838
|
-
*/
|
|
1839
|
-
clientAuthMe(options) {
|
|
1840
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1841
|
-
var _a, _b, _c;
|
|
1842
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.clientAuthMe(options);
|
|
1843
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1844
|
-
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;
|
|
1845
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1846
|
-
});
|
|
1847
|
-
},
|
|
1848
|
-
/**
|
|
1849
|
-
* Récupère le compte client par son ID
|
|
1850
|
-
* @param {string} accountId L\'ID du compte client
|
|
1851
|
-
* @param {*} [options] Override http request option.
|
|
1852
|
-
* @throws {RequiredError}
|
|
1853
|
-
*/
|
|
1854
|
-
getClientAccountById(accountId, options) {
|
|
1855
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1856
|
-
var _a, _b, _c;
|
|
1857
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClientAccountById(accountId, options);
|
|
1858
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1859
|
-
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;
|
|
1860
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1861
|
-
});
|
|
1862
|
-
},
|
|
1863
1993
|
/**
|
|
1864
|
-
* Récupère
|
|
1865
|
-
* @param {*} [options] Override http request option.
|
|
1866
|
-
* @throws {RequiredError}
|
|
1867
|
-
*/
|
|
1868
|
-
getMyActiveSubscription(options) {
|
|
1869
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1870
|
-
var _a, _b, _c;
|
|
1871
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getMyActiveSubscription(options);
|
|
1872
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1873
|
-
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;
|
|
1874
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1875
|
-
});
|
|
1876
|
-
},
|
|
1877
|
-
/**
|
|
1878
|
-
* Récupère le compte client de l\'utilisateur authentifié
|
|
1879
|
-
* @param {*} [options] Override http request option.
|
|
1880
|
-
* @throws {RequiredError}
|
|
1881
|
-
*/
|
|
1882
|
-
getMyClientAccount(options) {
|
|
1883
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1884
|
-
var _a, _b, _c;
|
|
1885
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getMyClientAccount(options);
|
|
1886
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1887
|
-
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;
|
|
1888
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1889
|
-
});
|
|
1890
|
-
},
|
|
1891
|
-
/**
|
|
1892
|
-
* Récupère l\'historique des abonnements du compte client authentifié
|
|
1893
|
-
* @param {*} [options] Override http request option.
|
|
1894
|
-
* @throws {RequiredError}
|
|
1895
|
-
*/
|
|
1896
|
-
getSubscriptionsHistory(options) {
|
|
1897
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1898
|
-
var _a, _b, _c;
|
|
1899
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getSubscriptionsHistory(options);
|
|
1900
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1901
|
-
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;
|
|
1902
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1903
|
-
});
|
|
1904
|
-
},
|
|
1905
|
-
/**
|
|
1906
|
-
* Liste les prix Stripe disponibles pour les abonnements client
|
|
1907
|
-
* @param {*} [options] Override http request option.
|
|
1908
|
-
* @throws {RequiredError}
|
|
1909
|
-
*/
|
|
1910
|
-
listAvailablePrices(options) {
|
|
1911
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1912
|
-
var _a, _b, _c;
|
|
1913
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listAvailablePrices(options);
|
|
1914
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1915
|
-
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;
|
|
1916
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1917
|
-
});
|
|
1918
|
-
},
|
|
1919
|
-
/**
|
|
1920
|
-
* Crée un nouveau compte client avec onboarding Stripe
|
|
1921
|
-
* @param {ClientAccountOnboardingRequest} clientAccountOnboardingRequest Les données du compte à créer
|
|
1922
|
-
* @param {*} [options] Override http request option.
|
|
1923
|
-
* @throws {RequiredError}
|
|
1924
|
-
*/
|
|
1925
|
-
onboardClientAccount(clientAccountOnboardingRequest, options) {
|
|
1926
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1927
|
-
var _a, _b, _c;
|
|
1928
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.onboardClientAccount(clientAccountOnboardingRequest, options);
|
|
1929
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1930
|
-
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;
|
|
1931
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1932
|
-
});
|
|
1933
|
-
},
|
|
1934
|
-
/**
|
|
1935
|
-
* Route d\'inscription d\'un utilisateur client (publique)
|
|
1936
|
-
* @param {ClientRegisterRequestBody} clientRegisterRequestBody
|
|
1937
|
-
* @param {*} [options] Override http request option.
|
|
1938
|
-
* @throws {RequiredError}
|
|
1939
|
-
*/
|
|
1940
|
-
registerClientUser(clientRegisterRequestBody, options) {
|
|
1941
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1942
|
-
var _a, _b, _c;
|
|
1943
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.registerClientUser(clientRegisterRequestBody, options);
|
|
1944
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1945
|
-
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;
|
|
1946
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1947
|
-
});
|
|
1948
|
-
},
|
|
1949
|
-
};
|
|
1950
|
-
};
|
|
1951
|
-
exports.ClientAccountsApiFp = ClientAccountsApiFp;
|
|
1952
|
-
/**
|
|
1953
|
-
* ClientAccountsApi - factory interface
|
|
1954
|
-
* @export
|
|
1955
|
-
*/
|
|
1956
|
-
const ClientAccountsApiFactory = function (configuration, basePath, axios) {
|
|
1957
|
-
const localVarFp = (0, exports.ClientAccountsApiFp)(configuration);
|
|
1958
|
-
return {
|
|
1959
|
-
/**
|
|
1960
|
-
* Informations de l\'utilisateur client authentifié (token clientAuth)
|
|
1961
|
-
* @param {*} [options] Override http request option.
|
|
1962
|
-
* @throws {RequiredError}
|
|
1963
|
-
*/
|
|
1964
|
-
clientAuthMe(options) {
|
|
1965
|
-
return localVarFp.clientAuthMe(options).then((request) => request(axios, basePath));
|
|
1966
|
-
},
|
|
1967
|
-
/**
|
|
1968
|
-
* Récupère le compte client par son ID
|
|
1969
|
-
* @param {ClientAccountsApiGetClientAccountByIdRequest} requestParameters Request parameters.
|
|
1970
|
-
* @param {*} [options] Override http request option.
|
|
1971
|
-
* @throws {RequiredError}
|
|
1972
|
-
*/
|
|
1973
|
-
getClientAccountById(requestParameters, options) {
|
|
1974
|
-
return localVarFp.getClientAccountById(requestParameters.accountId, options).then((request) => request(axios, basePath));
|
|
1975
|
-
},
|
|
1976
|
-
/**
|
|
1977
|
-
* Récupère l\'abonnement actif du compte client authentifié
|
|
1978
|
-
* @param {*} [options] Override http request option.
|
|
1979
|
-
* @throws {RequiredError}
|
|
1980
|
-
*/
|
|
1981
|
-
getMyActiveSubscription(options) {
|
|
1982
|
-
return localVarFp.getMyActiveSubscription(options).then((request) => request(axios, basePath));
|
|
1983
|
-
},
|
|
1984
|
-
/**
|
|
1985
|
-
* Récupère le compte client de l\'utilisateur authentifié
|
|
1986
|
-
* @param {*} [options] Override http request option.
|
|
1987
|
-
* @throws {RequiredError}
|
|
1988
|
-
*/
|
|
1989
|
-
getMyClientAccount(options) {
|
|
1990
|
-
return localVarFp.getMyClientAccount(options).then((request) => request(axios, basePath));
|
|
1991
|
-
},
|
|
1992
|
-
/**
|
|
1993
|
-
* Récupère l\'historique des abonnements du compte client authentifié
|
|
1994
|
-
* @param {*} [options] Override http request option.
|
|
1995
|
-
* @throws {RequiredError}
|
|
1996
|
-
*/
|
|
1997
|
-
getSubscriptionsHistory(options) {
|
|
1998
|
-
return localVarFp.getSubscriptionsHistory(options).then((request) => request(axios, basePath));
|
|
1999
|
-
},
|
|
2000
|
-
/**
|
|
2001
|
-
* Liste les prix Stripe disponibles pour les abonnements client
|
|
2002
|
-
* @param {*} [options] Override http request option.
|
|
2003
|
-
* @throws {RequiredError}
|
|
2004
|
-
*/
|
|
2005
|
-
listAvailablePrices(options) {
|
|
2006
|
-
return localVarFp.listAvailablePrices(options).then((request) => request(axios, basePath));
|
|
2007
|
-
},
|
|
2008
|
-
/**
|
|
2009
|
-
* Crée un nouveau compte client avec onboarding Stripe
|
|
2010
|
-
* @param {ClientAccountsApiOnboardClientAccountRequest} requestParameters Request parameters.
|
|
2011
|
-
* @param {*} [options] Override http request option.
|
|
2012
|
-
* @throws {RequiredError}
|
|
2013
|
-
*/
|
|
2014
|
-
onboardClientAccount(requestParameters, options) {
|
|
2015
|
-
return localVarFp.onboardClientAccount(requestParameters.clientAccountOnboardingRequest, options).then((request) => request(axios, basePath));
|
|
2016
|
-
},
|
|
2017
|
-
/**
|
|
2018
|
-
* Route d\'inscription d\'un utilisateur client (publique)
|
|
2019
|
-
* @param {ClientAccountsApiRegisterClientUserRequest} requestParameters Request parameters.
|
|
2020
|
-
* @param {*} [options] Override http request option.
|
|
2021
|
-
* @throws {RequiredError}
|
|
2022
|
-
*/
|
|
2023
|
-
registerClientUser(requestParameters, options) {
|
|
2024
|
-
return localVarFp.registerClientUser(requestParameters.clientRegisterRequestBody, options).then((request) => request(axios, basePath));
|
|
2025
|
-
},
|
|
2026
|
-
};
|
|
2027
|
-
};
|
|
2028
|
-
exports.ClientAccountsApiFactory = ClientAccountsApiFactory;
|
|
2029
|
-
/**
|
|
2030
|
-
* ClientAccountsApi - object-oriented interface
|
|
2031
|
-
* @export
|
|
2032
|
-
* @class ClientAccountsApi
|
|
2033
|
-
* @extends {BaseAPI}
|
|
2034
|
-
*/
|
|
2035
|
-
class ClientAccountsApi extends base_1.BaseAPI {
|
|
2036
|
-
/**
|
|
2037
|
-
* Informations de l\'utilisateur client authentifié (token clientAuth)
|
|
2038
|
-
* @param {*} [options] Override http request option.
|
|
2039
|
-
* @throws {RequiredError}
|
|
2040
|
-
* @memberof ClientAccountsApi
|
|
2041
|
-
*/
|
|
2042
|
-
clientAuthMe(options) {
|
|
2043
|
-
return (0, exports.ClientAccountsApiFp)(this.configuration).clientAuthMe(options).then((request) => request(this.axios, this.basePath));
|
|
2044
|
-
}
|
|
2045
|
-
/**
|
|
2046
|
-
* Récupère le compte client par son ID
|
|
2047
|
-
* @param {ClientAccountsApiGetClientAccountByIdRequest} requestParameters Request parameters.
|
|
2048
|
-
* @param {*} [options] Override http request option.
|
|
2049
|
-
* @throws {RequiredError}
|
|
2050
|
-
* @memberof ClientAccountsApi
|
|
2051
|
-
*/
|
|
2052
|
-
getClientAccountById(requestParameters, options) {
|
|
2053
|
-
return (0, exports.ClientAccountsApiFp)(this.configuration).getClientAccountById(requestParameters.accountId, options).then((request) => request(this.axios, this.basePath));
|
|
2054
|
-
}
|
|
2055
|
-
/**
|
|
2056
|
-
* Récupère l\'abonnement actif du compte client authentifié
|
|
2057
|
-
* @param {*} [options] Override http request option.
|
|
2058
|
-
* @throws {RequiredError}
|
|
2059
|
-
* @memberof ClientAccountsApi
|
|
2060
|
-
*/
|
|
2061
|
-
getMyActiveSubscription(options) {
|
|
2062
|
-
return (0, exports.ClientAccountsApiFp)(this.configuration).getMyActiveSubscription(options).then((request) => request(this.axios, this.basePath));
|
|
2063
|
-
}
|
|
2064
|
-
/**
|
|
2065
|
-
* Récupère le compte client de l\'utilisateur authentifié
|
|
2066
|
-
* @param {*} [options] Override http request option.
|
|
2067
|
-
* @throws {RequiredError}
|
|
2068
|
-
* @memberof ClientAccountsApi
|
|
2069
|
-
*/
|
|
2070
|
-
getMyClientAccount(options) {
|
|
2071
|
-
return (0, exports.ClientAccountsApiFp)(this.configuration).getMyClientAccount(options).then((request) => request(this.axios, this.basePath));
|
|
2072
|
-
}
|
|
2073
|
-
/**
|
|
2074
|
-
* Récupère l\'historique des abonnements du compte client authentifié
|
|
2075
|
-
* @param {*} [options] Override http request option.
|
|
2076
|
-
* @throws {RequiredError}
|
|
2077
|
-
* @memberof ClientAccountsApi
|
|
2078
|
-
*/
|
|
2079
|
-
getSubscriptionsHistory(options) {
|
|
2080
|
-
return (0, exports.ClientAccountsApiFp)(this.configuration).getSubscriptionsHistory(options).then((request) => request(this.axios, this.basePath));
|
|
2081
|
-
}
|
|
2082
|
-
/**
|
|
2083
|
-
* Liste les prix Stripe disponibles pour les abonnements client
|
|
2084
|
-
* @param {*} [options] Override http request option.
|
|
2085
|
-
* @throws {RequiredError}
|
|
2086
|
-
* @memberof ClientAccountsApi
|
|
2087
|
-
*/
|
|
2088
|
-
listAvailablePrices(options) {
|
|
2089
|
-
return (0, exports.ClientAccountsApiFp)(this.configuration).listAvailablePrices(options).then((request) => request(this.axios, this.basePath));
|
|
2090
|
-
}
|
|
2091
|
-
/**
|
|
2092
|
-
* Crée un nouveau compte client avec onboarding Stripe
|
|
2093
|
-
* @param {ClientAccountsApiOnboardClientAccountRequest} requestParameters Request parameters.
|
|
2094
|
-
* @param {*} [options] Override http request option.
|
|
2095
|
-
* @throws {RequiredError}
|
|
2096
|
-
* @memberof ClientAccountsApi
|
|
2097
|
-
*/
|
|
2098
|
-
onboardClientAccount(requestParameters, options) {
|
|
2099
|
-
return (0, exports.ClientAccountsApiFp)(this.configuration).onboardClientAccount(requestParameters.clientAccountOnboardingRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2100
|
-
}
|
|
2101
|
-
/**
|
|
2102
|
-
* Route d\'inscription d\'un utilisateur client (publique)
|
|
2103
|
-
* @param {ClientAccountsApiRegisterClientUserRequest} requestParameters Request parameters.
|
|
2104
|
-
* @param {*} [options] Override http request option.
|
|
2105
|
-
* @throws {RequiredError}
|
|
2106
|
-
* @memberof ClientAccountsApi
|
|
2107
|
-
*/
|
|
2108
|
-
registerClientUser(requestParameters, options) {
|
|
2109
|
-
return (0, exports.ClientAccountsApiFp)(this.configuration).registerClientUser(requestParameters.clientRegisterRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
2110
|
-
}
|
|
2111
|
-
}
|
|
2112
|
-
exports.ClientAccountsApi = ClientAccountsApi;
|
|
2113
|
-
/**
|
|
2114
|
-
* ClubAnalyticsApi - axios parameter creator
|
|
2115
|
-
* @export
|
|
2116
|
-
*/
|
|
2117
|
-
const ClubAnalyticsApiAxiosParamCreator = function (configuration) {
|
|
2118
|
-
return {
|
|
2119
|
-
/**
|
|
2120
|
-
* Récupère les clubs les plus aimés
|
|
2121
|
-
* @param {*} [options] Override http request option.
|
|
2122
|
-
* @throws {RequiredError}
|
|
2123
|
-
*/
|
|
2124
|
-
getMostLikedClub: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
2125
|
-
const localVarPath = `/api/club-analytics/most-liked-clubs`;
|
|
2126
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2127
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2128
|
-
let baseOptions;
|
|
2129
|
-
if (configuration) {
|
|
2130
|
-
baseOptions = configuration.baseOptions;
|
|
2131
|
-
}
|
|
2132
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2133
|
-
const localVarHeaderParameter = {};
|
|
2134
|
-
const localVarQueryParameter = {};
|
|
2135
|
-
// authentication bearerAuth required
|
|
2136
|
-
// http bearer authentication required
|
|
2137
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2138
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2139
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2140
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2141
|
-
return {
|
|
2142
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2143
|
-
options: localVarRequestOptions,
|
|
2144
|
-
};
|
|
2145
|
-
}),
|
|
2146
|
-
/**
|
|
2147
|
-
* Récupère les clubs populaires
|
|
2148
|
-
* @param {*} [options] Override http request option.
|
|
2149
|
-
* @throws {RequiredError}
|
|
2150
|
-
*/
|
|
2151
|
-
getPopularClubs: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
2152
|
-
const localVarPath = `/api/club-analytics/popular-clubs`;
|
|
2153
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2154
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2155
|
-
let baseOptions;
|
|
2156
|
-
if (configuration) {
|
|
2157
|
-
baseOptions = configuration.baseOptions;
|
|
2158
|
-
}
|
|
2159
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2160
|
-
const localVarHeaderParameter = {};
|
|
2161
|
-
const localVarQueryParameter = {};
|
|
2162
|
-
// authentication bearerAuth required
|
|
2163
|
-
// http bearer authentication required
|
|
2164
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2165
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2166
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2167
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2168
|
-
return {
|
|
2169
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2170
|
-
options: localVarRequestOptions,
|
|
2171
|
-
};
|
|
2172
|
-
}),
|
|
2173
|
-
};
|
|
2174
|
-
};
|
|
2175
|
-
exports.ClubAnalyticsApiAxiosParamCreator = ClubAnalyticsApiAxiosParamCreator;
|
|
2176
|
-
/**
|
|
2177
|
-
* ClubAnalyticsApi - functional programming interface
|
|
2178
|
-
* @export
|
|
2179
|
-
*/
|
|
2180
|
-
const ClubAnalyticsApiFp = function (configuration) {
|
|
2181
|
-
const localVarAxiosParamCreator = (0, exports.ClubAnalyticsApiAxiosParamCreator)(configuration);
|
|
2182
|
-
return {
|
|
2183
|
-
/**
|
|
2184
|
-
* Récupère les clubs les plus aimés
|
|
2185
|
-
* @param {*} [options] Override http request option.
|
|
2186
|
-
* @throws {RequiredError}
|
|
2187
|
-
*/
|
|
2188
|
-
getMostLikedClub(options) {
|
|
2189
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
2190
|
-
var _a, _b, _c;
|
|
2191
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getMostLikedClub(options);
|
|
2192
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2193
|
-
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;
|
|
2194
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2195
|
-
});
|
|
2196
|
-
},
|
|
2197
|
-
/**
|
|
2198
|
-
* Récupère les clubs populaires
|
|
2199
|
-
* @param {*} [options] Override http request option.
|
|
2200
|
-
* @throws {RequiredError}
|
|
2201
|
-
*/
|
|
2202
|
-
getPopularClubs(options) {
|
|
2203
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
2204
|
-
var _a, _b, _c;
|
|
2205
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getPopularClubs(options);
|
|
2206
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2207
|
-
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;
|
|
2208
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2209
|
-
});
|
|
2210
|
-
},
|
|
2211
|
-
};
|
|
2212
|
-
};
|
|
2213
|
-
exports.ClubAnalyticsApiFp = ClubAnalyticsApiFp;
|
|
2214
|
-
/**
|
|
2215
|
-
* ClubAnalyticsApi - factory interface
|
|
2216
|
-
* @export
|
|
2217
|
-
*/
|
|
2218
|
-
const ClubAnalyticsApiFactory = function (configuration, basePath, axios) {
|
|
2219
|
-
const localVarFp = (0, exports.ClubAnalyticsApiFp)(configuration);
|
|
2220
|
-
return {
|
|
2221
|
-
/**
|
|
2222
|
-
* Récupère les clubs les plus aimés
|
|
2223
|
-
* @param {*} [options] Override http request option.
|
|
2224
|
-
* @throws {RequiredError}
|
|
2225
|
-
*/
|
|
2226
|
-
getMostLikedClub(options) {
|
|
2227
|
-
return localVarFp.getMostLikedClub(options).then((request) => request(axios, basePath));
|
|
2228
|
-
},
|
|
2229
|
-
/**
|
|
2230
|
-
* Récupère les clubs populaires
|
|
2231
|
-
* @param {*} [options] Override http request option.
|
|
2232
|
-
* @throws {RequiredError}
|
|
2233
|
-
*/
|
|
2234
|
-
getPopularClubs(options) {
|
|
2235
|
-
return localVarFp.getPopularClubs(options).then((request) => request(axios, basePath));
|
|
2236
|
-
},
|
|
2237
|
-
};
|
|
2238
|
-
};
|
|
2239
|
-
exports.ClubAnalyticsApiFactory = ClubAnalyticsApiFactory;
|
|
2240
|
-
/**
|
|
2241
|
-
* ClubAnalyticsApi - object-oriented interface
|
|
2242
|
-
* @export
|
|
2243
|
-
* @class ClubAnalyticsApi
|
|
2244
|
-
* @extends {BaseAPI}
|
|
2245
|
-
*/
|
|
2246
|
-
class ClubAnalyticsApi extends base_1.BaseAPI {
|
|
2247
|
-
/**
|
|
2248
|
-
* Récupère les clubs les plus aimés
|
|
2249
|
-
* @param {*} [options] Override http request option.
|
|
2250
|
-
* @throws {RequiredError}
|
|
2251
|
-
* @memberof ClubAnalyticsApi
|
|
2252
|
-
*/
|
|
2253
|
-
getMostLikedClub(options) {
|
|
2254
|
-
return (0, exports.ClubAnalyticsApiFp)(this.configuration).getMostLikedClub(options).then((request) => request(this.axios, this.basePath));
|
|
2255
|
-
}
|
|
2256
|
-
/**
|
|
2257
|
-
* Récupère les clubs populaires
|
|
2258
|
-
* @param {*} [options] Override http request option.
|
|
2259
|
-
* @throws {RequiredError}
|
|
2260
|
-
* @memberof ClubAnalyticsApi
|
|
2261
|
-
*/
|
|
2262
|
-
getPopularClubs(options) {
|
|
2263
|
-
return (0, exports.ClubAnalyticsApiFp)(this.configuration).getPopularClubs(options).then((request) => request(this.axios, this.basePath));
|
|
2264
|
-
}
|
|
2265
|
-
}
|
|
2266
|
-
exports.ClubAnalyticsApi = ClubAnalyticsApi;
|
|
2267
|
-
/**
|
|
2268
|
-
* ClubAnalyticsStaffApi - axios parameter creator
|
|
2269
|
-
* @export
|
|
2270
|
-
*/
|
|
2271
|
-
const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration) {
|
|
2272
|
-
return {
|
|
2273
|
-
/**
|
|
2274
|
-
* Récupère les analytics par sport
|
|
2275
|
-
* @param {string} sportId
|
|
2276
|
-
* @param {*} [options] Override http request option.
|
|
2277
|
-
* @throws {RequiredError}
|
|
2278
|
-
*/
|
|
2279
|
-
getAnalyticsBySport: (sportId_1, ...args_1) => __awaiter(this, [sportId_1, ...args_1], void 0, function* (sportId, options = {}) {
|
|
2280
|
-
// verify required parameter 'sportId' is not null or undefined
|
|
2281
|
-
(0, common_1.assertParamExists)('getAnalyticsBySport', 'sportId', sportId);
|
|
2282
|
-
const localVarPath = `/api/club-analytics/sport/{sportId}/analytics`
|
|
2283
|
-
.replace(`{${"sportId"}}`, encodeURIComponent(String(sportId)));
|
|
2284
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2285
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2286
|
-
let baseOptions;
|
|
2287
|
-
if (configuration) {
|
|
2288
|
-
baseOptions = configuration.baseOptions;
|
|
2289
|
-
}
|
|
2290
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2291
|
-
const localVarHeaderParameter = {};
|
|
2292
|
-
const localVarQueryParameter = {};
|
|
2293
|
-
// authentication bearerAuth required
|
|
2294
|
-
// http bearer authentication required
|
|
2295
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2296
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2297
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2298
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2299
|
-
return {
|
|
2300
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2301
|
-
options: localVarRequestOptions,
|
|
2302
|
-
};
|
|
2303
|
-
}),
|
|
2304
|
-
/**
|
|
2305
|
-
* Récupère les réservations d\'un joueur par son ID (à venir et passées)
|
|
2306
|
-
* @param {string} playerId
|
|
2307
|
-
* @param {number} [page]
|
|
2308
|
-
* @param {number} [pageSize]
|
|
2309
|
-
* @param {*} [options] Override http request option.
|
|
2310
|
-
* @throws {RequiredError}
|
|
2311
|
-
*/
|
|
2312
|
-
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 = {}) {
|
|
2313
|
-
// verify required parameter 'playerId' is not null or undefined
|
|
2314
|
-
(0, common_1.assertParamExists)('getClubPlayerBookingsById', 'playerId', playerId);
|
|
2315
|
-
const localVarPath = `/api/club-analytics/players/{playerId}/bookings`
|
|
2316
|
-
.replace(`{${"playerId"}}`, encodeURIComponent(String(playerId)));
|
|
2317
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2318
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2319
|
-
let baseOptions;
|
|
2320
|
-
if (configuration) {
|
|
2321
|
-
baseOptions = configuration.baseOptions;
|
|
2322
|
-
}
|
|
2323
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2324
|
-
const localVarHeaderParameter = {};
|
|
2325
|
-
const localVarQueryParameter = {};
|
|
2326
|
-
// authentication bearerAuth required
|
|
2327
|
-
// http bearer authentication required
|
|
2328
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2329
|
-
if (page !== undefined) {
|
|
2330
|
-
localVarQueryParameter['page'] = page;
|
|
2331
|
-
}
|
|
2332
|
-
if (pageSize !== undefined) {
|
|
2333
|
-
localVarQueryParameter['pageSize'] = pageSize;
|
|
2334
|
-
}
|
|
2335
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2336
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2337
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2338
|
-
return {
|
|
2339
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2340
|
-
options: localVarRequestOptions,
|
|
2341
|
-
};
|
|
2342
|
-
}),
|
|
2343
|
-
/**
|
|
2344
|
-
* Récupère les informations détaillées d\'un joueur par son ID
|
|
2345
|
-
* @param {string} playerId
|
|
2346
|
-
* @param {*} [options] Override http request option.
|
|
2347
|
-
* @throws {RequiredError}
|
|
2348
|
-
*/
|
|
2349
|
-
getClubPlayerById: (playerId_1, ...args_1) => __awaiter(this, [playerId_1, ...args_1], void 0, function* (playerId, options = {}) {
|
|
2350
|
-
// verify required parameter 'playerId' is not null or undefined
|
|
2351
|
-
(0, common_1.assertParamExists)('getClubPlayerById', 'playerId', playerId);
|
|
2352
|
-
const localVarPath = `/api/club-analytics/players/{playerId}`
|
|
2353
|
-
.replace(`{${"playerId"}}`, encodeURIComponent(String(playerId)));
|
|
2354
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2355
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2356
|
-
let baseOptions;
|
|
2357
|
-
if (configuration) {
|
|
2358
|
-
baseOptions = configuration.baseOptions;
|
|
2359
|
-
}
|
|
2360
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2361
|
-
const localVarHeaderParameter = {};
|
|
2362
|
-
const localVarQueryParameter = {};
|
|
2363
|
-
// authentication bearerAuth required
|
|
2364
|
-
// http bearer authentication required
|
|
2365
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2366
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2367
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2368
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2369
|
-
return {
|
|
2370
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2371
|
-
options: localVarRequestOptions,
|
|
2372
|
-
};
|
|
2373
|
-
}),
|
|
2374
|
-
/**
|
|
2375
|
-
* Récupère les statistiques d\'un joueur pour le staff
|
|
2376
|
-
* @param {string} playerId
|
|
2377
|
-
* @param {*} [options] Override http request option.
|
|
2378
|
-
* @throws {RequiredError}
|
|
2379
|
-
*/
|
|
2380
|
-
getClubPlayerStatisticsById: (playerId_1, ...args_1) => __awaiter(this, [playerId_1, ...args_1], void 0, function* (playerId, options = {}) {
|
|
2381
|
-
// verify required parameter 'playerId' is not null or undefined
|
|
2382
|
-
(0, common_1.assertParamExists)('getClubPlayerStatisticsById', 'playerId', playerId);
|
|
2383
|
-
const localVarPath = `/api/club-analytics/players/{playerId}/statistics`
|
|
2384
|
-
.replace(`{${"playerId"}}`, encodeURIComponent(String(playerId)));
|
|
2385
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2386
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2387
|
-
let baseOptions;
|
|
2388
|
-
if (configuration) {
|
|
2389
|
-
baseOptions = configuration.baseOptions;
|
|
2390
|
-
}
|
|
2391
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2392
|
-
const localVarHeaderParameter = {};
|
|
2393
|
-
const localVarQueryParameter = {};
|
|
2394
|
-
// authentication bearerAuth required
|
|
2395
|
-
// http bearer authentication required
|
|
2396
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2397
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2398
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2399
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2400
|
-
return {
|
|
2401
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2402
|
-
options: localVarRequestOptions,
|
|
2403
|
-
};
|
|
2404
|
-
}),
|
|
2405
|
-
/**
|
|
2406
|
-
* Récupère la liste des joueurs du club
|
|
2407
|
-
* @param {*} [options] Override http request option.
|
|
2408
|
-
* @throws {RequiredError}
|
|
2409
|
-
*/
|
|
2410
|
-
getClubPlayers: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
2411
|
-
const localVarPath = `/api/club-analytics/players`;
|
|
2412
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2413
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2414
|
-
let baseOptions;
|
|
2415
|
-
if (configuration) {
|
|
2416
|
-
baseOptions = configuration.baseOptions;
|
|
2417
|
-
}
|
|
2418
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2419
|
-
const localVarHeaderParameter = {};
|
|
2420
|
-
const localVarQueryParameter = {};
|
|
2421
|
-
// authentication bearerAuth required
|
|
2422
|
-
// http bearer authentication required
|
|
2423
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2424
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2425
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2426
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2427
|
-
return {
|
|
2428
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2429
|
-
options: localVarRequestOptions,
|
|
2430
|
-
};
|
|
2431
|
-
}),
|
|
2432
|
-
/**
|
|
2433
|
-
* Récupère le chiffre d\'affaires quotidien
|
|
2434
|
-
* @param {string} date
|
|
2435
|
-
* @param {*} [options] Override http request option.
|
|
2436
|
-
* @throws {RequiredError}
|
|
2437
|
-
*/
|
|
2438
|
-
getDailyTurnOver: (date_1, ...args_1) => __awaiter(this, [date_1, ...args_1], void 0, function* (date, options = {}) {
|
|
2439
|
-
// verify required parameter 'date' is not null or undefined
|
|
2440
|
-
(0, common_1.assertParamExists)('getDailyTurnOver', 'date', date);
|
|
2441
|
-
const localVarPath = `/api/club-analytics/daily-turnover`;
|
|
2442
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2443
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2444
|
-
let baseOptions;
|
|
2445
|
-
if (configuration) {
|
|
2446
|
-
baseOptions = configuration.baseOptions;
|
|
2447
|
-
}
|
|
2448
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2449
|
-
const localVarHeaderParameter = {};
|
|
2450
|
-
const localVarQueryParameter = {};
|
|
2451
|
-
// authentication bearerAuth required
|
|
2452
|
-
// http bearer authentication required
|
|
2453
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2454
|
-
if (date !== undefined) {
|
|
2455
|
-
localVarQueryParameter['date'] = date;
|
|
2456
|
-
}
|
|
2457
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2458
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2459
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2460
|
-
return {
|
|
2461
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2462
|
-
options: localVarRequestOptions,
|
|
2463
|
-
};
|
|
2464
|
-
}),
|
|
2465
|
-
/**
|
|
2466
|
-
* Récupère les pourcentages par genre
|
|
1994
|
+
* Récupère les pourcentages par genre
|
|
2467
1995
|
* @param {*} [options] Override http request option.
|
|
2468
1996
|
* @throws {RequiredError}
|
|
2469
1997
|
*/
|
|
@@ -4522,6 +4050,34 @@ const ClubsApiAxiosParamCreator = function (configuration) {
|
|
|
4522
4050
|
options: localVarRequestOptions,
|
|
4523
4051
|
};
|
|
4524
4052
|
}),
|
|
4053
|
+
/**
|
|
4054
|
+
* Récupère les métadonnées publiques d\'un club
|
|
4055
|
+
* @param {string} clubId
|
|
4056
|
+
* @param {*} [options] Override http request option.
|
|
4057
|
+
* @throws {RequiredError}
|
|
4058
|
+
*/
|
|
4059
|
+
getClubMetadata: (clubId_1, ...args_1) => __awaiter(this, [clubId_1, ...args_1], void 0, function* (clubId, options = {}) {
|
|
4060
|
+
// verify required parameter 'clubId' is not null or undefined
|
|
4061
|
+
(0, common_1.assertParamExists)('getClubMetadata', 'clubId', clubId);
|
|
4062
|
+
const localVarPath = `/api/clubs/{clubId}/metadata`
|
|
4063
|
+
.replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
|
|
4064
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4065
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4066
|
+
let baseOptions;
|
|
4067
|
+
if (configuration) {
|
|
4068
|
+
baseOptions = configuration.baseOptions;
|
|
4069
|
+
}
|
|
4070
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
4071
|
+
const localVarHeaderParameter = {};
|
|
4072
|
+
const localVarQueryParameter = {};
|
|
4073
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4074
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4075
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4076
|
+
return {
|
|
4077
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4078
|
+
options: localVarRequestOptions,
|
|
4079
|
+
};
|
|
4080
|
+
}),
|
|
4525
4081
|
/**
|
|
4526
4082
|
*
|
|
4527
4083
|
* @param {string} clubId
|
|
@@ -4818,6 +4374,21 @@ const ClubsApiFp = function (configuration) {
|
|
|
4818
4374
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4819
4375
|
});
|
|
4820
4376
|
},
|
|
4377
|
+
/**
|
|
4378
|
+
* Récupère les métadonnées publiques d\'un club
|
|
4379
|
+
* @param {string} clubId
|
|
4380
|
+
* @param {*} [options] Override http request option.
|
|
4381
|
+
* @throws {RequiredError}
|
|
4382
|
+
*/
|
|
4383
|
+
getClubMetadata(clubId, options) {
|
|
4384
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4385
|
+
var _a, _b, _c;
|
|
4386
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubMetadata(clubId, options);
|
|
4387
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4388
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubsApi.getClubMetadata']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4389
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4390
|
+
});
|
|
4391
|
+
},
|
|
4821
4392
|
/**
|
|
4822
4393
|
*
|
|
4823
4394
|
* @param {string} clubId
|
|
@@ -4984,6 +4555,15 @@ const ClubsApiFactory = function (configuration, basePath, axios) {
|
|
|
4984
4555
|
getClubInfo(options) {
|
|
4985
4556
|
return localVarFp.getClubInfo(options).then((request) => request(axios, basePath));
|
|
4986
4557
|
},
|
|
4558
|
+
/**
|
|
4559
|
+
* Récupère les métadonnées publiques d\'un club
|
|
4560
|
+
* @param {ClubsApiGetClubMetadataRequest} requestParameters Request parameters.
|
|
4561
|
+
* @param {*} [options] Override http request option.
|
|
4562
|
+
* @throws {RequiredError}
|
|
4563
|
+
*/
|
|
4564
|
+
getClubMetadata(requestParameters, options) {
|
|
4565
|
+
return localVarFp.getClubMetadata(requestParameters.clubId, options).then((request) => request(axios, basePath));
|
|
4566
|
+
},
|
|
4987
4567
|
/**
|
|
4988
4568
|
*
|
|
4989
4569
|
* @param {ClubsApiGetClubPageInfoRequest} requestParameters Request parameters.
|
|
@@ -5113,6 +4693,16 @@ class ClubsApi extends base_1.BaseAPI {
|
|
|
5113
4693
|
getClubInfo(options) {
|
|
5114
4694
|
return (0, exports.ClubsApiFp)(this.configuration).getClubInfo(options).then((request) => request(this.axios, this.basePath));
|
|
5115
4695
|
}
|
|
4696
|
+
/**
|
|
4697
|
+
* Récupère les métadonnées publiques d\'un club
|
|
4698
|
+
* @param {ClubsApiGetClubMetadataRequest} requestParameters Request parameters.
|
|
4699
|
+
* @param {*} [options] Override http request option.
|
|
4700
|
+
* @throws {RequiredError}
|
|
4701
|
+
* @memberof ClubsApi
|
|
4702
|
+
*/
|
|
4703
|
+
getClubMetadata(requestParameters, options) {
|
|
4704
|
+
return (0, exports.ClubsApiFp)(this.configuration).getClubMetadata(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
|
|
4705
|
+
}
|
|
5116
4706
|
/**
|
|
5117
4707
|
*
|
|
5118
4708
|
* @param {ClubsApiGetClubPageInfoRequest} requestParameters Request parameters.
|
|
@@ -5416,37 +5006,6 @@ const ClubsManagerApiAxiosParamCreator = function (configuration) {
|
|
|
5416
5006
|
options: localVarRequestOptions,
|
|
5417
5007
|
};
|
|
5418
5008
|
}),
|
|
5419
|
-
/**
|
|
5420
|
-
* Supprime un membre d\'un club
|
|
5421
|
-
* @param {string} userId
|
|
5422
|
-
* @param {*} [options] Override http request option.
|
|
5423
|
-
* @throws {RequiredError}
|
|
5424
|
-
*/
|
|
5425
|
-
deleteClubMember: (userId_1, ...args_1) => __awaiter(this, [userId_1, ...args_1], void 0, function* (userId, options = {}) {
|
|
5426
|
-
// verify required parameter 'userId' is not null or undefined
|
|
5427
|
-
(0, common_1.assertParamExists)('deleteClubMember', 'userId', userId);
|
|
5428
|
-
const localVarPath = `/api/clubs/members/{userId}`
|
|
5429
|
-
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
|
5430
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5431
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5432
|
-
let baseOptions;
|
|
5433
|
-
if (configuration) {
|
|
5434
|
-
baseOptions = configuration.baseOptions;
|
|
5435
|
-
}
|
|
5436
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
5437
|
-
const localVarHeaderParameter = {};
|
|
5438
|
-
const localVarQueryParameter = {};
|
|
5439
|
-
// authentication bearerAuth required
|
|
5440
|
-
// http bearer authentication required
|
|
5441
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
5442
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
5443
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5444
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5445
|
-
return {
|
|
5446
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
5447
|
-
options: localVarRequestOptions,
|
|
5448
|
-
};
|
|
5449
|
-
}),
|
|
5450
5009
|
/**
|
|
5451
5010
|
* Supprime un terrain et ses créneaux futurs
|
|
5452
5011
|
* @param {string} courtId
|
|
@@ -5985,21 +5544,6 @@ const ClubsManagerApiFp = function (configuration) {
|
|
|
5985
5544
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5986
5545
|
});
|
|
5987
5546
|
},
|
|
5988
|
-
/**
|
|
5989
|
-
* Supprime un membre d\'un club
|
|
5990
|
-
* @param {string} userId
|
|
5991
|
-
* @param {*} [options] Override http request option.
|
|
5992
|
-
* @throws {RequiredError}
|
|
5993
|
-
*/
|
|
5994
|
-
deleteClubMember(userId, options) {
|
|
5995
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
5996
|
-
var _a, _b, _c;
|
|
5997
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteClubMember(userId, options);
|
|
5998
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5999
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubsManagerApi.deleteClubMember']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
6000
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6001
|
-
});
|
|
6002
|
-
},
|
|
6003
5547
|
/**
|
|
6004
5548
|
* Supprime un terrain et ses créneaux futurs
|
|
6005
5549
|
* @param {string} courtId
|
|
@@ -6271,15 +5815,6 @@ const ClubsManagerApiFactory = function (configuration, basePath, axios) {
|
|
|
6271
5815
|
deleteActuality(requestParameters, options) {
|
|
6272
5816
|
return localVarFp.deleteActuality(requestParameters.actualityId, options).then((request) => request(axios, basePath));
|
|
6273
5817
|
},
|
|
6274
|
-
/**
|
|
6275
|
-
* Supprime un membre d\'un club
|
|
6276
|
-
* @param {ClubsManagerApiDeleteClubMemberRequest} requestParameters Request parameters.
|
|
6277
|
-
* @param {*} [options] Override http request option.
|
|
6278
|
-
* @throws {RequiredError}
|
|
6279
|
-
*/
|
|
6280
|
-
deleteClubMember(requestParameters, options) {
|
|
6281
|
-
return localVarFp.deleteClubMember(requestParameters.userId, options).then((request) => request(axios, basePath));
|
|
6282
|
-
},
|
|
6283
5818
|
/**
|
|
6284
5819
|
* Supprime un terrain et ses créneaux futurs
|
|
6285
5820
|
* @param {ClubsManagerApiDeleteCourtRequest} requestParameters Request parameters.
|
|
@@ -6476,16 +6011,6 @@ class ClubsManagerApi extends base_1.BaseAPI {
|
|
|
6476
6011
|
deleteActuality(requestParameters, options) {
|
|
6477
6012
|
return (0, exports.ClubsManagerApiFp)(this.configuration).deleteActuality(requestParameters.actualityId, options).then((request) => request(this.axios, this.basePath));
|
|
6478
6013
|
}
|
|
6479
|
-
/**
|
|
6480
|
-
* Supprime un membre d\'un club
|
|
6481
|
-
* @param {ClubsManagerApiDeleteClubMemberRequest} requestParameters Request parameters.
|
|
6482
|
-
* @param {*} [options] Override http request option.
|
|
6483
|
-
* @throws {RequiredError}
|
|
6484
|
-
* @memberof ClubsManagerApi
|
|
6485
|
-
*/
|
|
6486
|
-
deleteClubMember(requestParameters, options) {
|
|
6487
|
-
return (0, exports.ClubsManagerApiFp)(this.configuration).deleteClubMember(requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
|
|
6488
|
-
}
|
|
6489
6014
|
/**
|
|
6490
6015
|
* Supprime un terrain et ses créneaux futurs
|
|
6491
6016
|
* @param {ClubsManagerApiDeleteCourtRequest} requestParameters Request parameters.
|
|
@@ -6624,27 +6149,36 @@ exports.ClubsManagerApi = ClubsManagerApi;
|
|
|
6624
6149
|
const ClubsStaffApiAxiosParamCreator = function (configuration) {
|
|
6625
6150
|
return {
|
|
6626
6151
|
/**
|
|
6627
|
-
*
|
|
6152
|
+
* Crée une facture manuelle (on-site) et l\'associe à une réservation
|
|
6153
|
+
* @param {string} bookingId
|
|
6154
|
+
* @param {CreateOnsiteInvoiceRequest} createOnsiteInvoiceRequest
|
|
6628
6155
|
* @param {*} [options] Override http request option.
|
|
6629
6156
|
* @throws {RequiredError}
|
|
6630
6157
|
*/
|
|
6631
|
-
|
|
6632
|
-
|
|
6158
|
+
createOnsiteInvoiceForBooking: (bookingId_1, createOnsiteInvoiceRequest_1, ...args_1) => __awaiter(this, [bookingId_1, createOnsiteInvoiceRequest_1, ...args_1], void 0, function* (bookingId, createOnsiteInvoiceRequest, options = {}) {
|
|
6159
|
+
// verify required parameter 'bookingId' is not null or undefined
|
|
6160
|
+
(0, common_1.assertParamExists)('createOnsiteInvoiceForBooking', 'bookingId', bookingId);
|
|
6161
|
+
// verify required parameter 'createOnsiteInvoiceRequest' is not null or undefined
|
|
6162
|
+
(0, common_1.assertParamExists)('createOnsiteInvoiceForBooking', 'createOnsiteInvoiceRequest', createOnsiteInvoiceRequest);
|
|
6163
|
+
const localVarPath = `/api/clubs/staff/bookings/{bookingId}/invoices`
|
|
6164
|
+
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
6633
6165
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6634
6166
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6635
6167
|
let baseOptions;
|
|
6636
6168
|
if (configuration) {
|
|
6637
6169
|
baseOptions = configuration.baseOptions;
|
|
6638
6170
|
}
|
|
6639
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
6171
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
6640
6172
|
const localVarHeaderParameter = {};
|
|
6641
6173
|
const localVarQueryParameter = {};
|
|
6642
6174
|
// authentication bearerAuth required
|
|
6643
6175
|
// http bearer authentication required
|
|
6644
6176
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6177
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6645
6178
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6646
6179
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6647
6180
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6181
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createOnsiteInvoiceRequest, localVarRequestOptions, configuration);
|
|
6648
6182
|
return {
|
|
6649
6183
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6650
6184
|
options: localVarRequestOptions,
|
|
@@ -6655,8 +6189,8 @@ const ClubsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
6655
6189
|
* @param {*} [options] Override http request option.
|
|
6656
6190
|
* @throws {RequiredError}
|
|
6657
6191
|
*/
|
|
6658
|
-
|
|
6659
|
-
const localVarPath = `/api/clubs/
|
|
6192
|
+
getActualities: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
6193
|
+
const localVarPath = `/api/clubs/staff/actualities`;
|
|
6660
6194
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6661
6195
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6662
6196
|
let baseOptions;
|
|
@@ -6678,12 +6212,12 @@ const ClubsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
6678
6212
|
};
|
|
6679
6213
|
}),
|
|
6680
6214
|
/**
|
|
6681
|
-
*
|
|
6215
|
+
*
|
|
6682
6216
|
* @param {*} [options] Override http request option.
|
|
6683
6217
|
* @throws {RequiredError}
|
|
6684
6218
|
*/
|
|
6685
|
-
|
|
6686
|
-
const localVarPath = `/api/clubs/
|
|
6219
|
+
getClubInfos: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
6220
|
+
const localVarPath = `/api/clubs/infos`;
|
|
6687
6221
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6688
6222
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6689
6223
|
let baseOptions;
|
|
@@ -6705,12 +6239,12 @@ const ClubsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
6705
6239
|
};
|
|
6706
6240
|
}),
|
|
6707
6241
|
/**
|
|
6708
|
-
*
|
|
6242
|
+
* Récupère les membres d\'un club
|
|
6709
6243
|
* @param {*} [options] Override http request option.
|
|
6710
6244
|
* @throws {RequiredError}
|
|
6711
6245
|
*/
|
|
6712
|
-
|
|
6713
|
-
const localVarPath = `/api/clubs/
|
|
6246
|
+
getClubMembers: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
6247
|
+
const localVarPath = `/api/clubs/members`;
|
|
6714
6248
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6715
6249
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6716
6250
|
let baseOptions;
|
|
@@ -6732,12 +6266,12 @@ const ClubsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
6732
6266
|
};
|
|
6733
6267
|
}),
|
|
6734
6268
|
/**
|
|
6735
|
-
*
|
|
6269
|
+
*
|
|
6736
6270
|
* @param {*} [options] Override http request option.
|
|
6737
6271
|
* @throws {RequiredError}
|
|
6738
6272
|
*/
|
|
6739
|
-
|
|
6740
|
-
const localVarPath = `/api/clubs/
|
|
6273
|
+
getClubPresentationSettings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
6274
|
+
const localVarPath = `/api/clubs/settings/presentation`;
|
|
6741
6275
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6742
6276
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6743
6277
|
let baseOptions;
|
|
@@ -6759,12 +6293,12 @@ const ClubsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
6759
6293
|
};
|
|
6760
6294
|
}),
|
|
6761
6295
|
/**
|
|
6762
|
-
* Récupère les
|
|
6296
|
+
* Récupère les rôles d\'un club
|
|
6763
6297
|
* @param {*} [options] Override http request option.
|
|
6764
6298
|
* @throws {RequiredError}
|
|
6765
6299
|
*/
|
|
6766
|
-
|
|
6767
|
-
const localVarPath = `/api/clubs/
|
|
6300
|
+
getClubRoles: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
6301
|
+
const localVarPath = `/api/clubs/roles`;
|
|
6768
6302
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6769
6303
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6770
6304
|
let baseOptions;
|
|
@@ -6786,12 +6320,12 @@ const ClubsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
6786
6320
|
};
|
|
6787
6321
|
}),
|
|
6788
6322
|
/**
|
|
6789
|
-
*
|
|
6323
|
+
* Récupère les terrains d\'un club
|
|
6790
6324
|
* @param {*} [options] Override http request option.
|
|
6791
6325
|
* @throws {RequiredError}
|
|
6792
6326
|
*/
|
|
6793
|
-
|
|
6794
|
-
const localVarPath = `/api/clubs/
|
|
6327
|
+
getCourtsByClub: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
6328
|
+
const localVarPath = `/api/clubs/courts`;
|
|
6795
6329
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6796
6330
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6797
6331
|
let baseOptions;
|
|
@@ -6814,15 +6348,11 @@ const ClubsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
6814
6348
|
}),
|
|
6815
6349
|
/**
|
|
6816
6350
|
*
|
|
6817
|
-
* @param {string} id
|
|
6818
6351
|
* @param {*} [options] Override http request option.
|
|
6819
6352
|
* @throws {RequiredError}
|
|
6820
6353
|
*/
|
|
6821
|
-
|
|
6822
|
-
|
|
6823
|
-
(0, common_1.assertParamExists)('getUserProfileStaff', 'id', id);
|
|
6824
|
-
const localVarPath = `/api/clubs/staff/profile/{id}`
|
|
6825
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
6354
|
+
getInvoices: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
6355
|
+
const localVarPath = `/api/clubs/invoices`;
|
|
6826
6356
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6827
6357
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6828
6358
|
let baseOptions;
|
|
@@ -6846,16 +6376,13 @@ const ClubsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
6846
6376
|
/**
|
|
6847
6377
|
*
|
|
6848
6378
|
* @param {string} id
|
|
6849
|
-
* @param {UpdateUserCreditsRequest} updateUserCreditsRequest
|
|
6850
6379
|
* @param {*} [options] Override http request option.
|
|
6851
6380
|
* @throws {RequiredError}
|
|
6852
6381
|
*/
|
|
6853
|
-
|
|
6382
|
+
getUserProfileStaff: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
6854
6383
|
// verify required parameter 'id' is not null or undefined
|
|
6855
|
-
(0, common_1.assertParamExists)('
|
|
6856
|
-
|
|
6857
|
-
(0, common_1.assertParamExists)('updateUserCreditsStaff', 'updateUserCreditsRequest', updateUserCreditsRequest);
|
|
6858
|
-
const localVarPath = `/api/clubs/staff/user-credits/{id}`
|
|
6384
|
+
(0, common_1.assertParamExists)('getUserProfileStaff', 'id', id);
|
|
6385
|
+
const localVarPath = `/api/clubs/staff/profile/{id}`
|
|
6859
6386
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
6860
6387
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6861
6388
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -6863,17 +6390,15 @@ const ClubsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
6863
6390
|
if (configuration) {
|
|
6864
6391
|
baseOptions = configuration.baseOptions;
|
|
6865
6392
|
}
|
|
6866
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
6393
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
6867
6394
|
const localVarHeaderParameter = {};
|
|
6868
6395
|
const localVarQueryParameter = {};
|
|
6869
6396
|
// authentication bearerAuth required
|
|
6870
6397
|
// http bearer authentication required
|
|
6871
6398
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6872
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6873
6399
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6874
6400
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6875
6401
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6876
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateUserCreditsRequest, localVarRequestOptions, configuration);
|
|
6877
6402
|
return {
|
|
6878
6403
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6879
6404
|
options: localVarRequestOptions,
|
|
@@ -6889,6 +6414,22 @@ exports.ClubsStaffApiAxiosParamCreator = ClubsStaffApiAxiosParamCreator;
|
|
|
6889
6414
|
const ClubsStaffApiFp = function (configuration) {
|
|
6890
6415
|
const localVarAxiosParamCreator = (0, exports.ClubsStaffApiAxiosParamCreator)(configuration);
|
|
6891
6416
|
return {
|
|
6417
|
+
/**
|
|
6418
|
+
* Crée une facture manuelle (on-site) et l\'associe à une réservation
|
|
6419
|
+
* @param {string} bookingId
|
|
6420
|
+
* @param {CreateOnsiteInvoiceRequest} createOnsiteInvoiceRequest
|
|
6421
|
+
* @param {*} [options] Override http request option.
|
|
6422
|
+
* @throws {RequiredError}
|
|
6423
|
+
*/
|
|
6424
|
+
createOnsiteInvoiceForBooking(bookingId, createOnsiteInvoiceRequest, options) {
|
|
6425
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6426
|
+
var _a, _b, _c;
|
|
6427
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createOnsiteInvoiceForBooking(bookingId, createOnsiteInvoiceRequest, options);
|
|
6428
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
6429
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubsStaffApi.createOnsiteInvoiceForBooking']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
6430
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6431
|
+
});
|
|
6432
|
+
},
|
|
6892
6433
|
/**
|
|
6893
6434
|
*
|
|
6894
6435
|
* @param {*} [options] Override http request option.
|
|
@@ -7002,22 +6543,6 @@ const ClubsStaffApiFp = function (configuration) {
|
|
|
7002
6543
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7003
6544
|
});
|
|
7004
6545
|
},
|
|
7005
|
-
/**
|
|
7006
|
-
*
|
|
7007
|
-
* @param {string} id
|
|
7008
|
-
* @param {UpdateUserCreditsRequest} updateUserCreditsRequest
|
|
7009
|
-
* @param {*} [options] Override http request option.
|
|
7010
|
-
* @throws {RequiredError}
|
|
7011
|
-
*/
|
|
7012
|
-
updateUserCreditsStaff(id, updateUserCreditsRequest, options) {
|
|
7013
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
7014
|
-
var _a, _b, _c;
|
|
7015
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateUserCreditsStaff(id, updateUserCreditsRequest, options);
|
|
7016
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7017
|
-
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;
|
|
7018
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7019
|
-
});
|
|
7020
|
-
},
|
|
7021
6546
|
};
|
|
7022
6547
|
};
|
|
7023
6548
|
exports.ClubsStaffApiFp = ClubsStaffApiFp;
|
|
@@ -7028,6 +6553,15 @@ exports.ClubsStaffApiFp = ClubsStaffApiFp;
|
|
|
7028
6553
|
const ClubsStaffApiFactory = function (configuration, basePath, axios) {
|
|
7029
6554
|
const localVarFp = (0, exports.ClubsStaffApiFp)(configuration);
|
|
7030
6555
|
return {
|
|
6556
|
+
/**
|
|
6557
|
+
* Crée une facture manuelle (on-site) et l\'associe à une réservation
|
|
6558
|
+
* @param {ClubsStaffApiCreateOnsiteInvoiceForBookingRequest} requestParameters Request parameters.
|
|
6559
|
+
* @param {*} [options] Override http request option.
|
|
6560
|
+
* @throws {RequiredError}
|
|
6561
|
+
*/
|
|
6562
|
+
createOnsiteInvoiceForBooking(requestParameters, options) {
|
|
6563
|
+
return localVarFp.createOnsiteInvoiceForBooking(requestParameters.bookingId, requestParameters.createOnsiteInvoiceRequest, options).then((request) => request(axios, basePath));
|
|
6564
|
+
},
|
|
7031
6565
|
/**
|
|
7032
6566
|
*
|
|
7033
6567
|
* @param {*} [options] Override http request option.
|
|
@@ -7093,15 +6627,6 @@ const ClubsStaffApiFactory = function (configuration, basePath, axios) {
|
|
|
7093
6627
|
getUserProfileStaff(requestParameters, options) {
|
|
7094
6628
|
return localVarFp.getUserProfileStaff(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
7095
6629
|
},
|
|
7096
|
-
/**
|
|
7097
|
-
*
|
|
7098
|
-
* @param {ClubsStaffApiUpdateUserCreditsStaffRequest} requestParameters Request parameters.
|
|
7099
|
-
* @param {*} [options] Override http request option.
|
|
7100
|
-
* @throws {RequiredError}
|
|
7101
|
-
*/
|
|
7102
|
-
updateUserCreditsStaff(requestParameters, options) {
|
|
7103
|
-
return localVarFp.updateUserCreditsStaff(requestParameters.id, requestParameters.updateUserCreditsRequest, options).then((request) => request(axios, basePath));
|
|
7104
|
-
},
|
|
7105
6630
|
};
|
|
7106
6631
|
};
|
|
7107
6632
|
exports.ClubsStaffApiFactory = ClubsStaffApiFactory;
|
|
@@ -7112,6 +6637,16 @@ exports.ClubsStaffApiFactory = ClubsStaffApiFactory;
|
|
|
7112
6637
|
* @extends {BaseAPI}
|
|
7113
6638
|
*/
|
|
7114
6639
|
class ClubsStaffApi extends base_1.BaseAPI {
|
|
6640
|
+
/**
|
|
6641
|
+
* Crée une facture manuelle (on-site) et l\'associe à une réservation
|
|
6642
|
+
* @param {ClubsStaffApiCreateOnsiteInvoiceForBookingRequest} requestParameters Request parameters.
|
|
6643
|
+
* @param {*} [options] Override http request option.
|
|
6644
|
+
* @throws {RequiredError}
|
|
6645
|
+
* @memberof ClubsStaffApi
|
|
6646
|
+
*/
|
|
6647
|
+
createOnsiteInvoiceForBooking(requestParameters, options) {
|
|
6648
|
+
return (0, exports.ClubsStaffApiFp)(this.configuration).createOnsiteInvoiceForBooking(requestParameters.bookingId, requestParameters.createOnsiteInvoiceRequest, options).then((request) => request(this.axios, this.basePath));
|
|
6649
|
+
}
|
|
7115
6650
|
/**
|
|
7116
6651
|
*
|
|
7117
6652
|
* @param {*} [options] Override http request option.
|
|
@@ -7185,16 +6720,6 @@ class ClubsStaffApi extends base_1.BaseAPI {
|
|
|
7185
6720
|
getUserProfileStaff(requestParameters, options) {
|
|
7186
6721
|
return (0, exports.ClubsStaffApiFp)(this.configuration).getUserProfileStaff(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
7187
6722
|
}
|
|
7188
|
-
/**
|
|
7189
|
-
*
|
|
7190
|
-
* @param {ClubsStaffApiUpdateUserCreditsStaffRequest} requestParameters Request parameters.
|
|
7191
|
-
* @param {*} [options] Override http request option.
|
|
7192
|
-
* @throws {RequiredError}
|
|
7193
|
-
* @memberof ClubsStaffApi
|
|
7194
|
-
*/
|
|
7195
|
-
updateUserCreditsStaff(requestParameters, options) {
|
|
7196
|
-
return (0, exports.ClubsStaffApiFp)(this.configuration).updateUserCreditsStaff(requestParameters.id, requestParameters.updateUserCreditsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
7197
|
-
}
|
|
7198
6723
|
}
|
|
7199
6724
|
exports.ClubsStaffApi = ClubsStaffApi;
|
|
7200
6725
|
/**
|
|
@@ -7632,6 +7157,38 @@ exports.GetPublishedEventsByClubIdTypeEnum = {
|
|
|
7632
7157
|
*/
|
|
7633
7158
|
const EventsManagerApiAxiosParamCreator = function (configuration) {
|
|
7634
7159
|
return {
|
|
7160
|
+
/**
|
|
7161
|
+
* Check if there are bookings overlapping an event window (for create/update/delete)
|
|
7162
|
+
* @param {EventConflictCheckRequest} eventConflictCheckRequest
|
|
7163
|
+
* @param {*} [options] Override http request option.
|
|
7164
|
+
* @throws {RequiredError}
|
|
7165
|
+
*/
|
|
7166
|
+
checkEventConflicts: (eventConflictCheckRequest_1, ...args_1) => __awaiter(this, [eventConflictCheckRequest_1, ...args_1], void 0, function* (eventConflictCheckRequest, options = {}) {
|
|
7167
|
+
// verify required parameter 'eventConflictCheckRequest' is not null or undefined
|
|
7168
|
+
(0, common_1.assertParamExists)('checkEventConflicts', 'eventConflictCheckRequest', eventConflictCheckRequest);
|
|
7169
|
+
const localVarPath = `/api/events/manager/checkConflicts`;
|
|
7170
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7171
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7172
|
+
let baseOptions;
|
|
7173
|
+
if (configuration) {
|
|
7174
|
+
baseOptions = configuration.baseOptions;
|
|
7175
|
+
}
|
|
7176
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
7177
|
+
const localVarHeaderParameter = {};
|
|
7178
|
+
const localVarQueryParameter = {};
|
|
7179
|
+
// authentication bearerAuth required
|
|
7180
|
+
// http bearer authentication required
|
|
7181
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
7182
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
7183
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7184
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7185
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7186
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(eventConflictCheckRequest, localVarRequestOptions, configuration);
|
|
7187
|
+
return {
|
|
7188
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
7189
|
+
options: localVarRequestOptions,
|
|
7190
|
+
};
|
|
7191
|
+
}),
|
|
7635
7192
|
/**
|
|
7636
7193
|
* Create a new event (manager)
|
|
7637
7194
|
* @param {CreateEventRequest} createEventRequest
|
|
@@ -7732,10 +7289,44 @@ const EventsManagerApiAxiosParamCreator = function (configuration) {
|
|
|
7732
7289
|
* @param {*} [options] Override http request option.
|
|
7733
7290
|
* @throws {RequiredError}
|
|
7734
7291
|
*/
|
|
7735
|
-
unpublishEvent: (eventId_1, ...args_1) => __awaiter(this, [eventId_1, ...args_1], void 0, function* (eventId, options = {}) {
|
|
7292
|
+
unpublishEvent: (eventId_1, ...args_1) => __awaiter(this, [eventId_1, ...args_1], void 0, function* (eventId, options = {}) {
|
|
7293
|
+
// verify required parameter 'eventId' is not null or undefined
|
|
7294
|
+
(0, common_1.assertParamExists)('unpublishEvent', 'eventId', eventId);
|
|
7295
|
+
const localVarPath = `/api/events/manager/unpublishEvent/{eventId}`
|
|
7296
|
+
.replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
|
|
7297
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7298
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7299
|
+
let baseOptions;
|
|
7300
|
+
if (configuration) {
|
|
7301
|
+
baseOptions = configuration.baseOptions;
|
|
7302
|
+
}
|
|
7303
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
7304
|
+
const localVarHeaderParameter = {};
|
|
7305
|
+
const localVarQueryParameter = {};
|
|
7306
|
+
// authentication bearerAuth required
|
|
7307
|
+
// http bearer authentication required
|
|
7308
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
7309
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7310
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7311
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7312
|
+
return {
|
|
7313
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
7314
|
+
options: localVarRequestOptions,
|
|
7315
|
+
};
|
|
7316
|
+
}),
|
|
7317
|
+
/**
|
|
7318
|
+
* Update an event (manager)
|
|
7319
|
+
* @param {string} eventId
|
|
7320
|
+
* @param {UpdateEventRequest} updateEventRequest
|
|
7321
|
+
* @param {*} [options] Override http request option.
|
|
7322
|
+
* @throws {RequiredError}
|
|
7323
|
+
*/
|
|
7324
|
+
updateEvent: (eventId_1, updateEventRequest_1, ...args_1) => __awaiter(this, [eventId_1, updateEventRequest_1, ...args_1], void 0, function* (eventId, updateEventRequest, options = {}) {
|
|
7736
7325
|
// verify required parameter 'eventId' is not null or undefined
|
|
7737
|
-
(0, common_1.assertParamExists)('
|
|
7738
|
-
|
|
7326
|
+
(0, common_1.assertParamExists)('updateEvent', 'eventId', eventId);
|
|
7327
|
+
// verify required parameter 'updateEventRequest' is not null or undefined
|
|
7328
|
+
(0, common_1.assertParamExists)('updateEvent', 'updateEventRequest', updateEventRequest);
|
|
7329
|
+
const localVarPath = `/api/events/manager/updateEvent/{eventId}`
|
|
7739
7330
|
.replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
|
|
7740
7331
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7741
7332
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -7749,27 +7340,29 @@ const EventsManagerApiAxiosParamCreator = function (configuration) {
|
|
|
7749
7340
|
// authentication bearerAuth required
|
|
7750
7341
|
// http bearer authentication required
|
|
7751
7342
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
7343
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
7752
7344
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7753
7345
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7754
7346
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7347
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateEventRequest, localVarRequestOptions, configuration);
|
|
7755
7348
|
return {
|
|
7756
7349
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
7757
7350
|
options: localVarRequestOptions,
|
|
7758
7351
|
};
|
|
7759
7352
|
}),
|
|
7760
7353
|
/**
|
|
7761
|
-
* Update
|
|
7354
|
+
* Update a published event (manager) and propagate slot changes and conflicts
|
|
7762
7355
|
* @param {string} eventId
|
|
7763
7356
|
* @param {UpdateEventRequest} updateEventRequest
|
|
7764
7357
|
* @param {*} [options] Override http request option.
|
|
7765
7358
|
* @throws {RequiredError}
|
|
7766
7359
|
*/
|
|
7767
|
-
|
|
7360
|
+
updatePublishedEvent: (eventId_1, updateEventRequest_1, ...args_1) => __awaiter(this, [eventId_1, updateEventRequest_1, ...args_1], void 0, function* (eventId, updateEventRequest, options = {}) {
|
|
7768
7361
|
// verify required parameter 'eventId' is not null or undefined
|
|
7769
|
-
(0, common_1.assertParamExists)('
|
|
7362
|
+
(0, common_1.assertParamExists)('updatePublishedEvent', 'eventId', eventId);
|
|
7770
7363
|
// verify required parameter 'updateEventRequest' is not null or undefined
|
|
7771
|
-
(0, common_1.assertParamExists)('
|
|
7772
|
-
const localVarPath = `/api/events/manager/
|
|
7364
|
+
(0, common_1.assertParamExists)('updatePublishedEvent', 'updateEventRequest', updateEventRequest);
|
|
7365
|
+
const localVarPath = `/api/events/manager/updatePublishedEvent/{eventId}`
|
|
7773
7366
|
.replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
|
|
7774
7367
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7775
7368
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -7803,6 +7396,21 @@ exports.EventsManagerApiAxiosParamCreator = EventsManagerApiAxiosParamCreator;
|
|
|
7803
7396
|
const EventsManagerApiFp = function (configuration) {
|
|
7804
7397
|
const localVarAxiosParamCreator = (0, exports.EventsManagerApiAxiosParamCreator)(configuration);
|
|
7805
7398
|
return {
|
|
7399
|
+
/**
|
|
7400
|
+
* Check if there are bookings overlapping an event window (for create/update/delete)
|
|
7401
|
+
* @param {EventConflictCheckRequest} eventConflictCheckRequest
|
|
7402
|
+
* @param {*} [options] Override http request option.
|
|
7403
|
+
* @throws {RequiredError}
|
|
7404
|
+
*/
|
|
7405
|
+
checkEventConflicts(eventConflictCheckRequest, options) {
|
|
7406
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7407
|
+
var _a, _b, _c;
|
|
7408
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.checkEventConflicts(eventConflictCheckRequest, options);
|
|
7409
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7410
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EventsManagerApi.checkEventConflicts']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7411
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7412
|
+
});
|
|
7413
|
+
},
|
|
7806
7414
|
/**
|
|
7807
7415
|
* Create a new event (manager)
|
|
7808
7416
|
* @param {CreateEventRequest} createEventRequest
|
|
@@ -7879,6 +7487,22 @@ const EventsManagerApiFp = function (configuration) {
|
|
|
7879
7487
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7880
7488
|
});
|
|
7881
7489
|
},
|
|
7490
|
+
/**
|
|
7491
|
+
* Update a published event (manager) and propagate slot changes and conflicts
|
|
7492
|
+
* @param {string} eventId
|
|
7493
|
+
* @param {UpdateEventRequest} updateEventRequest
|
|
7494
|
+
* @param {*} [options] Override http request option.
|
|
7495
|
+
* @throws {RequiredError}
|
|
7496
|
+
*/
|
|
7497
|
+
updatePublishedEvent(eventId, updateEventRequest, options) {
|
|
7498
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7499
|
+
var _a, _b, _c;
|
|
7500
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updatePublishedEvent(eventId, updateEventRequest, options);
|
|
7501
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7502
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EventsManagerApi.updatePublishedEvent']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7503
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7504
|
+
});
|
|
7505
|
+
},
|
|
7882
7506
|
};
|
|
7883
7507
|
};
|
|
7884
7508
|
exports.EventsManagerApiFp = EventsManagerApiFp;
|
|
@@ -7889,6 +7513,15 @@ exports.EventsManagerApiFp = EventsManagerApiFp;
|
|
|
7889
7513
|
const EventsManagerApiFactory = function (configuration, basePath, axios) {
|
|
7890
7514
|
const localVarFp = (0, exports.EventsManagerApiFp)(configuration);
|
|
7891
7515
|
return {
|
|
7516
|
+
/**
|
|
7517
|
+
* Check if there are bookings overlapping an event window (for create/update/delete)
|
|
7518
|
+
* @param {EventsManagerApiCheckEventConflictsRequest} requestParameters Request parameters.
|
|
7519
|
+
* @param {*} [options] Override http request option.
|
|
7520
|
+
* @throws {RequiredError}
|
|
7521
|
+
*/
|
|
7522
|
+
checkEventConflicts(requestParameters, options) {
|
|
7523
|
+
return localVarFp.checkEventConflicts(requestParameters.eventConflictCheckRequest, options).then((request) => request(axios, basePath));
|
|
7524
|
+
},
|
|
7892
7525
|
/**
|
|
7893
7526
|
* Create a new event (manager)
|
|
7894
7527
|
* @param {EventsManagerApiCreateEventRequest} requestParameters Request parameters.
|
|
@@ -7934,6 +7567,15 @@ const EventsManagerApiFactory = function (configuration, basePath, axios) {
|
|
|
7934
7567
|
updateEvent(requestParameters, options) {
|
|
7935
7568
|
return localVarFp.updateEvent(requestParameters.eventId, requestParameters.updateEventRequest, options).then((request) => request(axios, basePath));
|
|
7936
7569
|
},
|
|
7570
|
+
/**
|
|
7571
|
+
* Update a published event (manager) and propagate slot changes and conflicts
|
|
7572
|
+
* @param {EventsManagerApiUpdatePublishedEventRequest} requestParameters Request parameters.
|
|
7573
|
+
* @param {*} [options] Override http request option.
|
|
7574
|
+
* @throws {RequiredError}
|
|
7575
|
+
*/
|
|
7576
|
+
updatePublishedEvent(requestParameters, options) {
|
|
7577
|
+
return localVarFp.updatePublishedEvent(requestParameters.eventId, requestParameters.updateEventRequest, options).then((request) => request(axios, basePath));
|
|
7578
|
+
},
|
|
7937
7579
|
};
|
|
7938
7580
|
};
|
|
7939
7581
|
exports.EventsManagerApiFactory = EventsManagerApiFactory;
|
|
@@ -7944,6 +7586,16 @@ exports.EventsManagerApiFactory = EventsManagerApiFactory;
|
|
|
7944
7586
|
* @extends {BaseAPI}
|
|
7945
7587
|
*/
|
|
7946
7588
|
class EventsManagerApi extends base_1.BaseAPI {
|
|
7589
|
+
/**
|
|
7590
|
+
* Check if there are bookings overlapping an event window (for create/update/delete)
|
|
7591
|
+
* @param {EventsManagerApiCheckEventConflictsRequest} requestParameters Request parameters.
|
|
7592
|
+
* @param {*} [options] Override http request option.
|
|
7593
|
+
* @throws {RequiredError}
|
|
7594
|
+
* @memberof EventsManagerApi
|
|
7595
|
+
*/
|
|
7596
|
+
checkEventConflicts(requestParameters, options) {
|
|
7597
|
+
return (0, exports.EventsManagerApiFp)(this.configuration).checkEventConflicts(requestParameters.eventConflictCheckRequest, options).then((request) => request(this.axios, this.basePath));
|
|
7598
|
+
}
|
|
7947
7599
|
/**
|
|
7948
7600
|
* Create a new event (manager)
|
|
7949
7601
|
* @param {EventsManagerApiCreateEventRequest} requestParameters Request parameters.
|
|
@@ -7994,6 +7646,16 @@ class EventsManagerApi extends base_1.BaseAPI {
|
|
|
7994
7646
|
updateEvent(requestParameters, options) {
|
|
7995
7647
|
return (0, exports.EventsManagerApiFp)(this.configuration).updateEvent(requestParameters.eventId, requestParameters.updateEventRequest, options).then((request) => request(this.axios, this.basePath));
|
|
7996
7648
|
}
|
|
7649
|
+
/**
|
|
7650
|
+
* Update a published event (manager) and propagate slot changes and conflicts
|
|
7651
|
+
* @param {EventsManagerApiUpdatePublishedEventRequest} requestParameters Request parameters.
|
|
7652
|
+
* @param {*} [options] Override http request option.
|
|
7653
|
+
* @throws {RequiredError}
|
|
7654
|
+
* @memberof EventsManagerApi
|
|
7655
|
+
*/
|
|
7656
|
+
updatePublishedEvent(requestParameters, options) {
|
|
7657
|
+
return (0, exports.EventsManagerApiFp)(this.configuration).updatePublishedEvent(requestParameters.eventId, requestParameters.updateEventRequest, options).then((request) => request(this.axios, this.basePath));
|
|
7658
|
+
}
|
|
7997
7659
|
}
|
|
7998
7660
|
exports.EventsManagerApi = EventsManagerApi;
|
|
7999
7661
|
/**
|
|
@@ -8003,47 +7665,36 @@ exports.EventsManagerApi = EventsManagerApi;
|
|
|
8003
7665
|
const EventsStaffApiAxiosParamCreator = function (configuration) {
|
|
8004
7666
|
return {
|
|
8005
7667
|
/**
|
|
8006
|
-
*
|
|
8007
|
-
* @param {string}
|
|
8008
|
-
* @param {
|
|
8009
|
-
* @param {GetDailyEventsVisibilityTypeEnum} [visibilityType]
|
|
8010
|
-
* @param {GetDailyEventsTypeEnum} [type]
|
|
8011
|
-
* @param {string} [sportId]
|
|
7668
|
+
* Check-in des participants d\'un EventBooking (clubs avec paiements)
|
|
7669
|
+
* @param {string} eventBookingId
|
|
7670
|
+
* @param {CheckInEventParticipantsRequest} checkInEventParticipantsRequest
|
|
8012
7671
|
* @param {*} [options] Override http request option.
|
|
8013
7672
|
* @throws {RequiredError}
|
|
8014
7673
|
*/
|
|
8015
|
-
|
|
8016
|
-
|
|
7674
|
+
checkInEventParticipants: (eventBookingId_1, checkInEventParticipantsRequest_1, ...args_1) => __awaiter(this, [eventBookingId_1, checkInEventParticipantsRequest_1, ...args_1], void 0, function* (eventBookingId, checkInEventParticipantsRequest, options = {}) {
|
|
7675
|
+
// verify required parameter 'eventBookingId' is not null or undefined
|
|
7676
|
+
(0, common_1.assertParamExists)('checkInEventParticipants', 'eventBookingId', eventBookingId);
|
|
7677
|
+
// verify required parameter 'checkInEventParticipantsRequest' is not null or undefined
|
|
7678
|
+
(0, common_1.assertParamExists)('checkInEventParticipants', 'checkInEventParticipantsRequest', checkInEventParticipantsRequest);
|
|
7679
|
+
const localVarPath = `/api/events/{eventBookingId}/check-in`
|
|
7680
|
+
.replace(`{${"eventBookingId"}}`, encodeURIComponent(String(eventBookingId)));
|
|
8017
7681
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8018
7682
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
8019
7683
|
let baseOptions;
|
|
8020
7684
|
if (configuration) {
|
|
8021
7685
|
baseOptions = configuration.baseOptions;
|
|
8022
7686
|
}
|
|
8023
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
7687
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
8024
7688
|
const localVarHeaderParameter = {};
|
|
8025
7689
|
const localVarQueryParameter = {};
|
|
8026
7690
|
// authentication bearerAuth required
|
|
8027
7691
|
// http bearer authentication required
|
|
8028
7692
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
8029
|
-
|
|
8030
|
-
localVarQueryParameter['clubId'] = clubId;
|
|
8031
|
-
}
|
|
8032
|
-
if (date !== undefined) {
|
|
8033
|
-
localVarQueryParameter['date'] = date;
|
|
8034
|
-
}
|
|
8035
|
-
if (visibilityType !== undefined) {
|
|
8036
|
-
localVarQueryParameter['visibilityType'] = visibilityType;
|
|
8037
|
-
}
|
|
8038
|
-
if (type !== undefined) {
|
|
8039
|
-
localVarQueryParameter['type'] = type;
|
|
8040
|
-
}
|
|
8041
|
-
if (sportId !== undefined) {
|
|
8042
|
-
localVarQueryParameter['sportId'] = sportId;
|
|
8043
|
-
}
|
|
7693
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
8044
7694
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
8045
7695
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8046
7696
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7697
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(checkInEventParticipantsRequest, localVarRequestOptions, configuration);
|
|
8047
7698
|
return {
|
|
8048
7699
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
8049
7700
|
options: localVarRequestOptions,
|
|
@@ -8076,100 +7727,6 @@ const EventsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
8076
7727
|
options: localVarRequestOptions,
|
|
8077
7728
|
};
|
|
8078
7729
|
}),
|
|
8079
|
-
/**
|
|
8080
|
-
* Get events for the entire month view (including recurring occurrences)
|
|
8081
|
-
* @param {string} [clubId]
|
|
8082
|
-
* @param {string} [date]
|
|
8083
|
-
* @param {GetMonthlyEventsVisibilityTypeEnum} [visibilityType]
|
|
8084
|
-
* @param {GetMonthlyEventsTypeEnum} [type]
|
|
8085
|
-
* @param {string} [sportId]
|
|
8086
|
-
* @param {*} [options] Override http request option.
|
|
8087
|
-
* @throws {RequiredError}
|
|
8088
|
-
*/
|
|
8089
|
-
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 = {}) {
|
|
8090
|
-
const localVarPath = `/api/events/calendar/monthly`;
|
|
8091
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8092
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
8093
|
-
let baseOptions;
|
|
8094
|
-
if (configuration) {
|
|
8095
|
-
baseOptions = configuration.baseOptions;
|
|
8096
|
-
}
|
|
8097
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
8098
|
-
const localVarHeaderParameter = {};
|
|
8099
|
-
const localVarQueryParameter = {};
|
|
8100
|
-
// authentication bearerAuth required
|
|
8101
|
-
// http bearer authentication required
|
|
8102
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
8103
|
-
if (clubId !== undefined) {
|
|
8104
|
-
localVarQueryParameter['clubId'] = clubId;
|
|
8105
|
-
}
|
|
8106
|
-
if (date !== undefined) {
|
|
8107
|
-
localVarQueryParameter['date'] = date;
|
|
8108
|
-
}
|
|
8109
|
-
if (visibilityType !== undefined) {
|
|
8110
|
-
localVarQueryParameter['visibilityType'] = visibilityType;
|
|
8111
|
-
}
|
|
8112
|
-
if (type !== undefined) {
|
|
8113
|
-
localVarQueryParameter['type'] = type;
|
|
8114
|
-
}
|
|
8115
|
-
if (sportId !== undefined) {
|
|
8116
|
-
localVarQueryParameter['sportId'] = sportId;
|
|
8117
|
-
}
|
|
8118
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
8119
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8120
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8121
|
-
return {
|
|
8122
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
8123
|
-
options: localVarRequestOptions,
|
|
8124
|
-
};
|
|
8125
|
-
}),
|
|
8126
|
-
/**
|
|
8127
|
-
* Get events for the week view (30 day sliding window)
|
|
8128
|
-
* @param {string} [clubId]
|
|
8129
|
-
* @param {string} [date]
|
|
8130
|
-
* @param {GetWeeklyEventsVisibilityTypeEnum} [visibilityType]
|
|
8131
|
-
* @param {GetWeeklyEventsTypeEnum} [type]
|
|
8132
|
-
* @param {string} [sportId]
|
|
8133
|
-
* @param {*} [options] Override http request option.
|
|
8134
|
-
* @throws {RequiredError}
|
|
8135
|
-
*/
|
|
8136
|
-
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 = {}) {
|
|
8137
|
-
const localVarPath = `/api/events/calendar/weekly`;
|
|
8138
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8139
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
8140
|
-
let baseOptions;
|
|
8141
|
-
if (configuration) {
|
|
8142
|
-
baseOptions = configuration.baseOptions;
|
|
8143
|
-
}
|
|
8144
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
8145
|
-
const localVarHeaderParameter = {};
|
|
8146
|
-
const localVarQueryParameter = {};
|
|
8147
|
-
// authentication bearerAuth required
|
|
8148
|
-
// http bearer authentication required
|
|
8149
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
8150
|
-
if (clubId !== undefined) {
|
|
8151
|
-
localVarQueryParameter['clubId'] = clubId;
|
|
8152
|
-
}
|
|
8153
|
-
if (date !== undefined) {
|
|
8154
|
-
localVarQueryParameter['date'] = date;
|
|
8155
|
-
}
|
|
8156
|
-
if (visibilityType !== undefined) {
|
|
8157
|
-
localVarQueryParameter['visibilityType'] = visibilityType;
|
|
8158
|
-
}
|
|
8159
|
-
if (type !== undefined) {
|
|
8160
|
-
localVarQueryParameter['type'] = type;
|
|
8161
|
-
}
|
|
8162
|
-
if (sportId !== undefined) {
|
|
8163
|
-
localVarQueryParameter['sportId'] = sportId;
|
|
8164
|
-
}
|
|
8165
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
8166
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8167
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8168
|
-
return {
|
|
8169
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
8170
|
-
options: localVarRequestOptions,
|
|
8171
|
-
};
|
|
8172
|
-
}),
|
|
8173
7730
|
};
|
|
8174
7731
|
};
|
|
8175
7732
|
exports.EventsStaffApiAxiosParamCreator = EventsStaffApiAxiosParamCreator;
|
|
@@ -8181,21 +7738,18 @@ const EventsStaffApiFp = function (configuration) {
|
|
|
8181
7738
|
const localVarAxiosParamCreator = (0, exports.EventsStaffApiAxiosParamCreator)(configuration);
|
|
8182
7739
|
return {
|
|
8183
7740
|
/**
|
|
8184
|
-
*
|
|
8185
|
-
* @param {string}
|
|
8186
|
-
* @param {
|
|
8187
|
-
* @param {GetDailyEventsVisibilityTypeEnum} [visibilityType]
|
|
8188
|
-
* @param {GetDailyEventsTypeEnum} [type]
|
|
8189
|
-
* @param {string} [sportId]
|
|
7741
|
+
* Check-in des participants d\'un EventBooking (clubs avec paiements)
|
|
7742
|
+
* @param {string} eventBookingId
|
|
7743
|
+
* @param {CheckInEventParticipantsRequest} checkInEventParticipantsRequest
|
|
8190
7744
|
* @param {*} [options] Override http request option.
|
|
8191
7745
|
* @throws {RequiredError}
|
|
8192
7746
|
*/
|
|
8193
|
-
|
|
7747
|
+
checkInEventParticipants(eventBookingId, checkInEventParticipantsRequest, options) {
|
|
8194
7748
|
return __awaiter(this, void 0, void 0, function* () {
|
|
8195
7749
|
var _a, _b, _c;
|
|
8196
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
7750
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.checkInEventParticipants(eventBookingId, checkInEventParticipantsRequest, options);
|
|
8197
7751
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8198
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EventsStaffApi.
|
|
7752
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EventsStaffApi.checkInEventParticipants']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8199
7753
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8200
7754
|
});
|
|
8201
7755
|
},
|
|
@@ -8213,44 +7767,6 @@ const EventsStaffApiFp = function (configuration) {
|
|
|
8213
7767
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8214
7768
|
});
|
|
8215
7769
|
},
|
|
8216
|
-
/**
|
|
8217
|
-
* Get events for the entire month view (including recurring occurrences)
|
|
8218
|
-
* @param {string} [clubId]
|
|
8219
|
-
* @param {string} [date]
|
|
8220
|
-
* @param {GetMonthlyEventsVisibilityTypeEnum} [visibilityType]
|
|
8221
|
-
* @param {GetMonthlyEventsTypeEnum} [type]
|
|
8222
|
-
* @param {string} [sportId]
|
|
8223
|
-
* @param {*} [options] Override http request option.
|
|
8224
|
-
* @throws {RequiredError}
|
|
8225
|
-
*/
|
|
8226
|
-
getMonthlyEvents(clubId, date, visibilityType, type, sportId, options) {
|
|
8227
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
8228
|
-
var _a, _b, _c;
|
|
8229
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getMonthlyEvents(clubId, date, visibilityType, type, sportId, options);
|
|
8230
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8231
|
-
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;
|
|
8232
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8233
|
-
});
|
|
8234
|
-
},
|
|
8235
|
-
/**
|
|
8236
|
-
* Get events for the week view (30 day sliding window)
|
|
8237
|
-
* @param {string} [clubId]
|
|
8238
|
-
* @param {string} [date]
|
|
8239
|
-
* @param {GetWeeklyEventsVisibilityTypeEnum} [visibilityType]
|
|
8240
|
-
* @param {GetWeeklyEventsTypeEnum} [type]
|
|
8241
|
-
* @param {string} [sportId]
|
|
8242
|
-
* @param {*} [options] Override http request option.
|
|
8243
|
-
* @throws {RequiredError}
|
|
8244
|
-
*/
|
|
8245
|
-
getWeeklyEvents(clubId, date, visibilityType, type, sportId, options) {
|
|
8246
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
8247
|
-
var _a, _b, _c;
|
|
8248
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getWeeklyEvents(clubId, date, visibilityType, type, sportId, options);
|
|
8249
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8250
|
-
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;
|
|
8251
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8252
|
-
});
|
|
8253
|
-
},
|
|
8254
7770
|
};
|
|
8255
7771
|
};
|
|
8256
7772
|
exports.EventsStaffApiFp = EventsStaffApiFp;
|
|
@@ -8262,13 +7778,13 @@ const EventsStaffApiFactory = function (configuration, basePath, axios) {
|
|
|
8262
7778
|
const localVarFp = (0, exports.EventsStaffApiFp)(configuration);
|
|
8263
7779
|
return {
|
|
8264
7780
|
/**
|
|
8265
|
-
*
|
|
8266
|
-
* @param {
|
|
7781
|
+
* Check-in des participants d\'un EventBooking (clubs avec paiements)
|
|
7782
|
+
* @param {EventsStaffApiCheckInEventParticipantsRequest} requestParameters Request parameters.
|
|
8267
7783
|
* @param {*} [options] Override http request option.
|
|
8268
7784
|
* @throws {RequiredError}
|
|
8269
7785
|
*/
|
|
8270
|
-
|
|
8271
|
-
return localVarFp.
|
|
7786
|
+
checkInEventParticipants(requestParameters, options) {
|
|
7787
|
+
return localVarFp.checkInEventParticipants(requestParameters.eventBookingId, requestParameters.checkInEventParticipantsRequest, options).then((request) => request(axios, basePath));
|
|
8272
7788
|
},
|
|
8273
7789
|
/**
|
|
8274
7790
|
* Get all events for a club (staff only)
|
|
@@ -8278,24 +7794,6 @@ const EventsStaffApiFactory = function (configuration, basePath, axios) {
|
|
|
8278
7794
|
getEventsByClub(options) {
|
|
8279
7795
|
return localVarFp.getEventsByClub(options).then((request) => request(axios, basePath));
|
|
8280
7796
|
},
|
|
8281
|
-
/**
|
|
8282
|
-
* Get events for the entire month view (including recurring occurrences)
|
|
8283
|
-
* @param {EventsStaffApiGetMonthlyEventsRequest} requestParameters Request parameters.
|
|
8284
|
-
* @param {*} [options] Override http request option.
|
|
8285
|
-
* @throws {RequiredError}
|
|
8286
|
-
*/
|
|
8287
|
-
getMonthlyEvents(requestParameters = {}, options) {
|
|
8288
|
-
return localVarFp.getMonthlyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(axios, basePath));
|
|
8289
|
-
},
|
|
8290
|
-
/**
|
|
8291
|
-
* Get events for the week view (30 day sliding window)
|
|
8292
|
-
* @param {EventsStaffApiGetWeeklyEventsRequest} requestParameters Request parameters.
|
|
8293
|
-
* @param {*} [options] Override http request option.
|
|
8294
|
-
* @throws {RequiredError}
|
|
8295
|
-
*/
|
|
8296
|
-
getWeeklyEvents(requestParameters = {}, options) {
|
|
8297
|
-
return localVarFp.getWeeklyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(axios, basePath));
|
|
8298
|
-
},
|
|
8299
7797
|
};
|
|
8300
7798
|
};
|
|
8301
7799
|
exports.EventsStaffApiFactory = EventsStaffApiFactory;
|
|
@@ -8307,14 +7805,14 @@ exports.EventsStaffApiFactory = EventsStaffApiFactory;
|
|
|
8307
7805
|
*/
|
|
8308
7806
|
class EventsStaffApi extends base_1.BaseAPI {
|
|
8309
7807
|
/**
|
|
8310
|
-
*
|
|
8311
|
-
* @param {
|
|
7808
|
+
* Check-in des participants d\'un EventBooking (clubs avec paiements)
|
|
7809
|
+
* @param {EventsStaffApiCheckInEventParticipantsRequest} requestParameters Request parameters.
|
|
8312
7810
|
* @param {*} [options] Override http request option.
|
|
8313
7811
|
* @throws {RequiredError}
|
|
8314
7812
|
* @memberof EventsStaffApi
|
|
8315
7813
|
*/
|
|
8316
|
-
|
|
8317
|
-
return (0, exports.EventsStaffApiFp)(this.configuration).
|
|
7814
|
+
checkInEventParticipants(requestParameters, options) {
|
|
7815
|
+
return (0, exports.EventsStaffApiFp)(this.configuration).checkInEventParticipants(requestParameters.eventBookingId, requestParameters.checkInEventParticipantsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
8318
7816
|
}
|
|
8319
7817
|
/**
|
|
8320
7818
|
* Get all events for a club (staff only)
|
|
@@ -8325,73 +7823,8 @@ class EventsStaffApi extends base_1.BaseAPI {
|
|
|
8325
7823
|
getEventsByClub(options) {
|
|
8326
7824
|
return (0, exports.EventsStaffApiFp)(this.configuration).getEventsByClub(options).then((request) => request(this.axios, this.basePath));
|
|
8327
7825
|
}
|
|
8328
|
-
/**
|
|
8329
|
-
* Get events for the entire month view (including recurring occurrences)
|
|
8330
|
-
* @param {EventsStaffApiGetMonthlyEventsRequest} requestParameters Request parameters.
|
|
8331
|
-
* @param {*} [options] Override http request option.
|
|
8332
|
-
* @throws {RequiredError}
|
|
8333
|
-
* @memberof EventsStaffApi
|
|
8334
|
-
*/
|
|
8335
|
-
getMonthlyEvents(requestParameters = {}, options) {
|
|
8336
|
-
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));
|
|
8337
|
-
}
|
|
8338
|
-
/**
|
|
8339
|
-
* Get events for the week view (30 day sliding window)
|
|
8340
|
-
* @param {EventsStaffApiGetWeeklyEventsRequest} requestParameters Request parameters.
|
|
8341
|
-
* @param {*} [options] Override http request option.
|
|
8342
|
-
* @throws {RequiredError}
|
|
8343
|
-
* @memberof EventsStaffApi
|
|
8344
|
-
*/
|
|
8345
|
-
getWeeklyEvents(requestParameters = {}, options) {
|
|
8346
|
-
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));
|
|
8347
|
-
}
|
|
8348
7826
|
}
|
|
8349
7827
|
exports.EventsStaffApi = EventsStaffApi;
|
|
8350
|
-
/**
|
|
8351
|
-
* @export
|
|
8352
|
-
*/
|
|
8353
|
-
exports.GetDailyEventsVisibilityTypeEnum = {
|
|
8354
|
-
Public: 'public',
|
|
8355
|
-
Private: 'private',
|
|
8356
|
-
Invitation: 'invitation'
|
|
8357
|
-
};
|
|
8358
|
-
/**
|
|
8359
|
-
* @export
|
|
8360
|
-
*/
|
|
8361
|
-
exports.GetDailyEventsTypeEnum = {
|
|
8362
|
-
Event: 'event',
|
|
8363
|
-
Closure: 'closure'
|
|
8364
|
-
};
|
|
8365
|
-
/**
|
|
8366
|
-
* @export
|
|
8367
|
-
*/
|
|
8368
|
-
exports.GetMonthlyEventsVisibilityTypeEnum = {
|
|
8369
|
-
Public: 'public',
|
|
8370
|
-
Private: 'private',
|
|
8371
|
-
Invitation: 'invitation'
|
|
8372
|
-
};
|
|
8373
|
-
/**
|
|
8374
|
-
* @export
|
|
8375
|
-
*/
|
|
8376
|
-
exports.GetMonthlyEventsTypeEnum = {
|
|
8377
|
-
Event: 'event',
|
|
8378
|
-
Closure: 'closure'
|
|
8379
|
-
};
|
|
8380
|
-
/**
|
|
8381
|
-
* @export
|
|
8382
|
-
*/
|
|
8383
|
-
exports.GetWeeklyEventsVisibilityTypeEnum = {
|
|
8384
|
-
Public: 'public',
|
|
8385
|
-
Private: 'private',
|
|
8386
|
-
Invitation: 'invitation'
|
|
8387
|
-
};
|
|
8388
|
-
/**
|
|
8389
|
-
* @export
|
|
8390
|
-
*/
|
|
8391
|
-
exports.GetWeeklyEventsTypeEnum = {
|
|
8392
|
-
Event: 'event',
|
|
8393
|
-
Closure: 'closure'
|
|
8394
|
-
};
|
|
8395
7828
|
/**
|
|
8396
7829
|
* SportsManagerApi - axios parameter creator
|
|
8397
7830
|
* @export
|