@tennac-booking/sdk 1.0.120 → 1.0.122
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 +17 -0
- package/README.md +24 -4
- package/api.ts +930 -28
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +740 -17
- package/dist/api.js +332 -17
- 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 +740 -17
- package/dist/esm/api.js +324 -13
- 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/CheckTeamNameAvailability200Response.md +20 -0
- package/docs/ClientApi.md +47 -0
- package/docs/ClientFullOnboardingResponseClub.md +2 -0
- package/docs/ClientOnboardingRequestBody.md +2 -0
- package/docs/ClientSubscription.md +31 -0
- package/docs/ClientSubscriptionItem.md +25 -0
- package/docs/ClientSubscriptionsResponse.md +21 -0
- package/docs/ClubSettingsManagerApi.md +7 -7
- package/docs/CreateCourtRequest.md +2 -0
- package/docs/CreateSubscriptionPlanRequestDiscount.md +2 -0
- package/docs/EstimateEventPrice200Response.md +32 -0
- package/docs/EstimateEventPriceRequest.md +26 -0
- package/docs/EstimateEventPriceRequestSharesInner.md +22 -0
- package/docs/EventResponse.md +3 -1
- package/docs/EventUser.md +28 -0
- package/docs/EventsApi.md +115 -0
- package/docs/ImageCleanupItem.md +22 -0
- package/docs/ImageCleanupRequestBody.md +20 -0
- package/docs/ImageCleanupResponse.md +22 -0
- package/docs/ImageContext.md +30 -0
- package/docs/ImageContextType.md +20 -0
- package/docs/ImageReferencePayload.md +24 -0
- package/docs/ImagesApi.md +59 -0
- package/docs/JoinEventRequest.md +2 -0
- package/docs/JoinEventRequestPlayersPaymentMethodsInner.md +2 -0
- package/docs/JoinEventResponse.md +14 -0
- package/docs/JoinEventResponseOnsitePaymentsInner.md +24 -0
- package/docs/OffPeakRule.md +2 -0
- package/docs/Team.md +1 -1
- package/docs/UpdateClubGeneralSettingsRequest.md +1 -1
- package/docs/UpdateClubGeneralSettingsRequestLogo.md +24 -0
- package/docs/UpdateClubPresentationSettingsRequest.md +2 -2
- package/docs/UserProfileResponse.md +2 -0
- package/index.ts +1 -1
- package/package.json +1 -1
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.121
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -22,10 +22,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.
|
|
26
|
-
exports.
|
|
27
|
-
exports.
|
|
28
|
-
exports.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.SubscriptionsUserApi = exports.SubscriptionsUserApiFactory = exports.SubscriptionsUserApiFp = exports.SubscriptionsUserApiAxiosParamCreator = exports.SubscriptionsStaffApi = void 0;
|
|
25
|
+
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.StaffBookingPaymentState = exports.SportKey = exports.RegisterRequestBodyLocationTypeEnum = exports.PlayerCategoryId = exports.PlanInterval = exports.PaymentMethod = exports.InvoiceStatus = exports.ImageContextType = 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.ClientOnboardingRequestBodyClubTypeEnum = exports.CaptureResultStatusEnum = exports.CaptureResultTypeEnum = exports.BookingStatus = exports.BookingHistoryPopulatedPerformedByTypeEnum = exports.AgendaPaymentStatus = void 0;
|
|
26
|
+
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 = exports.BookingsApiAxiosParamCreator = exports.UserLocationSummaryTypeEnum = exports.UpdateEventRequestVisibilityTypeEnum = exports.UpdateEventRequestParticipationTypeEnum = void 0;
|
|
27
|
+
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.ImagesApi = exports.ImagesApiFactory = exports.ImagesApiFp = exports.ImagesApiAxiosParamCreator = exports.GetWeeklyEventsTypeEnum = exports.GetWeeklyEventsVisibilityTypeEnum = exports.GetMonthlyEventsTypeEnum = exports.GetMonthlyEventsVisibilityTypeEnum = exports.GetDailyEventsTypeEnum = exports.GetDailyEventsVisibilityTypeEnum = exports.EventsStaffApi = exports.EventsStaffApiFactory = exports.EventsStaffApiFp = exports.EventsStaffApiAxiosParamCreator = exports.EventsManagerApi = exports.EventsManagerApiFactory = exports.EventsManagerApiFp = exports.EventsManagerApiAxiosParamCreator = exports.GetPublishedEventsByClubIdTypeEnum = exports.GetPublishedEventsByClubIdVisibilityTypeEnum = exports.EventsApi = exports.EventsApiFactory = exports.EventsApiFp = exports.EventsApiAxiosParamCreator = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.ClubsStaffApi = exports.ClubsStaffApiFactory = exports.ClubsStaffApiFp = exports.ClubsStaffApiAxiosParamCreator = exports.ClubsManagerApi = exports.ClubsManagerApiFactory = exports.ClubsManagerApiFp = exports.ClubsManagerApiAxiosParamCreator = exports.ClubsApi = void 0;
|
|
28
|
+
exports.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.SubscriptionsUserApi = exports.SubscriptionsUserApiFactory = exports.SubscriptionsUserApiFp = exports.SubscriptionsUserApiAxiosParamCreator = exports.SubscriptionsStaffApi = exports.SubscriptionsStaffApiFactory = exports.SubscriptionsStaffApiFp = exports.SubscriptionsStaffApiAxiosParamCreator = exports.SubscriptionsPublicApi = exports.SubscriptionsPublicApiFactory = exports.SubscriptionsPublicApiFp = void 0;
|
|
29
29
|
const axios_1 = require("axios");
|
|
30
30
|
// Some imports not used depending on template conditions
|
|
31
31
|
// @ts-ignore
|
|
@@ -69,6 +69,10 @@ exports.CaptureResultStatusEnum = {
|
|
|
69
69
|
Captured: 'captured',
|
|
70
70
|
Failed: 'failed'
|
|
71
71
|
};
|
|
72
|
+
exports.ClientOnboardingRequestBodyClubTypeEnum = {
|
|
73
|
+
Public: 'public',
|
|
74
|
+
School: 'school'
|
|
75
|
+
};
|
|
72
76
|
exports.ClubRoleResponseRoleEnum = {
|
|
73
77
|
Admin: 'admin',
|
|
74
78
|
Manager: 'manager',
|
|
@@ -150,6 +154,20 @@ exports.Gender = {
|
|
|
150
154
|
exports.IUserLocationTypeEnum = {
|
|
151
155
|
Point: 'Point'
|
|
152
156
|
};
|
|
157
|
+
/**
|
|
158
|
+
*
|
|
159
|
+
* @export
|
|
160
|
+
* @enum {string}
|
|
161
|
+
*/
|
|
162
|
+
exports.ImageContextType = {
|
|
163
|
+
UserAvatar: 'user-avatar',
|
|
164
|
+
ClubAvatar: 'club-avatar',
|
|
165
|
+
ClubGallery: 'club-gallery',
|
|
166
|
+
ClubPreview: 'club-preview',
|
|
167
|
+
ClubCarousel: 'club-carousel',
|
|
168
|
+
ClubSportImage: 'club-sport-image',
|
|
169
|
+
ClubEventImage: 'club-event-image'
|
|
170
|
+
};
|
|
153
171
|
/**
|
|
154
172
|
*
|
|
155
173
|
* @export
|
|
@@ -1622,6 +1640,33 @@ const ClientApiAxiosParamCreator = function (configuration) {
|
|
|
1622
1640
|
options: localVarRequestOptions,
|
|
1623
1641
|
};
|
|
1624
1642
|
}),
|
|
1643
|
+
/**
|
|
1644
|
+
* Récupère les abonnements Stripe actifs du compte client de l\'utilisateur courant
|
|
1645
|
+
* @param {*} [options] Override http request option.
|
|
1646
|
+
* @throws {RequiredError}
|
|
1647
|
+
*/
|
|
1648
|
+
getClientSubscriptions: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
1649
|
+
const localVarPath = `/clients/subscriptions`;
|
|
1650
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1651
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1652
|
+
let baseOptions;
|
|
1653
|
+
if (configuration) {
|
|
1654
|
+
baseOptions = configuration.baseOptions;
|
|
1655
|
+
}
|
|
1656
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1657
|
+
const localVarHeaderParameter = {};
|
|
1658
|
+
const localVarQueryParameter = {};
|
|
1659
|
+
// authentication clientAuth required
|
|
1660
|
+
// http bearer authentication required
|
|
1661
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1662
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1663
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1664
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1665
|
+
return {
|
|
1666
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1667
|
+
options: localVarRequestOptions,
|
|
1668
|
+
};
|
|
1669
|
+
}),
|
|
1625
1670
|
/**
|
|
1626
1671
|
* Récupère la liste des clubs gérés par l\'utilisateur authentifié
|
|
1627
1672
|
* @param {*} [options] Override http request option.
|
|
@@ -1706,6 +1751,20 @@ const ClientApiFp = function (configuration) {
|
|
|
1706
1751
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1707
1752
|
});
|
|
1708
1753
|
},
|
|
1754
|
+
/**
|
|
1755
|
+
* Récupère les abonnements Stripe actifs du compte client de l\'utilisateur courant
|
|
1756
|
+
* @param {*} [options] Override http request option.
|
|
1757
|
+
* @throws {RequiredError}
|
|
1758
|
+
*/
|
|
1759
|
+
getClientSubscriptions(options) {
|
|
1760
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1761
|
+
var _a, _b, _c;
|
|
1762
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClientSubscriptions(options);
|
|
1763
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1764
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClientApi.getClientSubscriptions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1765
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1766
|
+
});
|
|
1767
|
+
},
|
|
1709
1768
|
/**
|
|
1710
1769
|
* Récupère la liste des clubs gérés par l\'utilisateur authentifié
|
|
1711
1770
|
* @param {*} [options] Override http request option.
|
|
@@ -1754,6 +1813,14 @@ const ClientApiFactory = function (configuration, basePath, axios) {
|
|
|
1754
1813
|
clientRegister(requestParameters, options) {
|
|
1755
1814
|
return localVarFp.clientRegister(requestParameters.clientRegisterRequest, options).then((request) => request(axios, basePath));
|
|
1756
1815
|
},
|
|
1816
|
+
/**
|
|
1817
|
+
* Récupère les abonnements Stripe actifs du compte client de l\'utilisateur courant
|
|
1818
|
+
* @param {*} [options] Override http request option.
|
|
1819
|
+
* @throws {RequiredError}
|
|
1820
|
+
*/
|
|
1821
|
+
getClientSubscriptions(options) {
|
|
1822
|
+
return localVarFp.getClientSubscriptions(options).then((request) => request(axios, basePath));
|
|
1823
|
+
},
|
|
1757
1824
|
/**
|
|
1758
1825
|
* Récupère la liste des clubs gérés par l\'utilisateur authentifié
|
|
1759
1826
|
* @param {*} [options] Override http request option.
|
|
@@ -1791,6 +1858,15 @@ class ClientApi extends base_1.BaseAPI {
|
|
|
1791
1858
|
clientRegister(requestParameters, options) {
|
|
1792
1859
|
return (0, exports.ClientApiFp)(this.configuration).clientRegister(requestParameters.clientRegisterRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1793
1860
|
}
|
|
1861
|
+
/**
|
|
1862
|
+
* Récupère les abonnements Stripe actifs du compte client de l\'utilisateur courant
|
|
1863
|
+
* @param {*} [options] Override http request option.
|
|
1864
|
+
* @throws {RequiredError}
|
|
1865
|
+
* @memberof ClientApi
|
|
1866
|
+
*/
|
|
1867
|
+
getClientSubscriptions(options) {
|
|
1868
|
+
return (0, exports.ClientApiFp)(this.configuration).getClientSubscriptions(options).then((request) => request(this.axios, this.basePath));
|
|
1869
|
+
}
|
|
1794
1870
|
/**
|
|
1795
1871
|
* Récupère la liste des clubs gérés par l\'utilisateur authentifié
|
|
1796
1872
|
* @param {*} [options] Override http request option.
|
|
@@ -3519,7 +3595,7 @@ const ClubSettingsManagerApiAxiosParamCreator = function (configuration) {
|
|
|
3519
3595
|
if (configuration) {
|
|
3520
3596
|
baseOptions = configuration.baseOptions;
|
|
3521
3597
|
}
|
|
3522
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
3598
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
3523
3599
|
const localVarHeaderParameter = {};
|
|
3524
3600
|
const localVarQueryParameter = {};
|
|
3525
3601
|
// authentication bearerAuth required
|
|
@@ -3569,13 +3645,13 @@ const ClubSettingsManagerApiAxiosParamCreator = function (configuration) {
|
|
|
3569
3645
|
}),
|
|
3570
3646
|
/**
|
|
3571
3647
|
*
|
|
3572
|
-
* @param {
|
|
3648
|
+
* @param {UpdateClubPresentationSettingsRequest} updateClubPresentationSettingsRequest
|
|
3573
3649
|
* @param {*} [options] Override http request option.
|
|
3574
3650
|
* @throws {RequiredError}
|
|
3575
3651
|
*/
|
|
3576
|
-
updatePresentationSettings: (
|
|
3577
|
-
// verify required parameter '
|
|
3578
|
-
(0, common_1.assertParamExists)('updatePresentationSettings', '
|
|
3652
|
+
updatePresentationSettings: (updateClubPresentationSettingsRequest_1, ...args_1) => __awaiter(this, [updateClubPresentationSettingsRequest_1, ...args_1], void 0, function* (updateClubPresentationSettingsRequest, options = {}) {
|
|
3653
|
+
// verify required parameter 'updateClubPresentationSettingsRequest' is not null or undefined
|
|
3654
|
+
(0, common_1.assertParamExists)('updatePresentationSettings', 'updateClubPresentationSettingsRequest', updateClubPresentationSettingsRequest);
|
|
3579
3655
|
const localVarPath = `/api/club-settings/presentation`;
|
|
3580
3656
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3581
3657
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -3583,7 +3659,7 @@ const ClubSettingsManagerApiAxiosParamCreator = function (configuration) {
|
|
|
3583
3659
|
if (configuration) {
|
|
3584
3660
|
baseOptions = configuration.baseOptions;
|
|
3585
3661
|
}
|
|
3586
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
3662
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
3587
3663
|
const localVarHeaderParameter = {};
|
|
3588
3664
|
const localVarQueryParameter = {};
|
|
3589
3665
|
// authentication bearerAuth required
|
|
@@ -3593,7 +3669,7 @@ const ClubSettingsManagerApiAxiosParamCreator = function (configuration) {
|
|
|
3593
3669
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3594
3670
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3595
3671
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3596
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
3672
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateClubPresentationSettingsRequest, localVarRequestOptions, configuration);
|
|
3597
3673
|
return {
|
|
3598
3674
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3599
3675
|
options: localVarRequestOptions,
|
|
@@ -3673,14 +3749,14 @@ const ClubSettingsManagerApiFp = function (configuration) {
|
|
|
3673
3749
|
},
|
|
3674
3750
|
/**
|
|
3675
3751
|
*
|
|
3676
|
-
* @param {
|
|
3752
|
+
* @param {UpdateClubPresentationSettingsRequest} updateClubPresentationSettingsRequest
|
|
3677
3753
|
* @param {*} [options] Override http request option.
|
|
3678
3754
|
* @throws {RequiredError}
|
|
3679
3755
|
*/
|
|
3680
|
-
updatePresentationSettings(
|
|
3756
|
+
updatePresentationSettings(updateClubPresentationSettingsRequest, options) {
|
|
3681
3757
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3682
3758
|
var _a, _b, _c;
|
|
3683
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.updatePresentationSettings(
|
|
3759
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updatePresentationSettings(updateClubPresentationSettingsRequest, options);
|
|
3684
3760
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3685
3761
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubSettingsManagerApi.updatePresentationSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3686
3762
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -3736,7 +3812,7 @@ const ClubSettingsManagerApiFactory = function (configuration, basePath, axios)
|
|
|
3736
3812
|
* @throws {RequiredError}
|
|
3737
3813
|
*/
|
|
3738
3814
|
updatePresentationSettings(requestParameters, options) {
|
|
3739
|
-
return localVarFp.updatePresentationSettings(requestParameters.
|
|
3815
|
+
return localVarFp.updatePresentationSettings(requestParameters.updateClubPresentationSettingsRequest, options).then((request) => request(axios, basePath));
|
|
3740
3816
|
},
|
|
3741
3817
|
/**
|
|
3742
3818
|
*
|
|
@@ -3785,7 +3861,7 @@ class ClubSettingsManagerApi extends base_1.BaseAPI {
|
|
|
3785
3861
|
* @memberof ClubSettingsManagerApi
|
|
3786
3862
|
*/
|
|
3787
3863
|
updatePresentationSettings(requestParameters, options) {
|
|
3788
|
-
return (0, exports.ClubSettingsManagerApiFp)(this.configuration).updatePresentationSettings(requestParameters.
|
|
3864
|
+
return (0, exports.ClubSettingsManagerApiFp)(this.configuration).updatePresentationSettings(requestParameters.updateClubPresentationSettingsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3789
3865
|
}
|
|
3790
3866
|
/**
|
|
3791
3867
|
*
|
|
@@ -7198,6 +7274,71 @@ exports.DefaultApi = DefaultApi;
|
|
|
7198
7274
|
*/
|
|
7199
7275
|
const EventsApiAxiosParamCreator = function (configuration) {
|
|
7200
7276
|
return {
|
|
7277
|
+
/**
|
|
7278
|
+
* Check team name availability for TEAM participation events
|
|
7279
|
+
* @param {string} eventId
|
|
7280
|
+
* @param {string} [teamName]
|
|
7281
|
+
* @param {*} [options] Override http request option.
|
|
7282
|
+
* @throws {RequiredError}
|
|
7283
|
+
*/
|
|
7284
|
+
checkTeamNameAvailability: (eventId_1, teamName_1, ...args_1) => __awaiter(this, [eventId_1, teamName_1, ...args_1], void 0, function* (eventId, teamName, options = {}) {
|
|
7285
|
+
// verify required parameter 'eventId' is not null or undefined
|
|
7286
|
+
(0, common_1.assertParamExists)('checkTeamNameAvailability', 'eventId', eventId);
|
|
7287
|
+
const localVarPath = `/api/events/{eventId}/team-name-availability`
|
|
7288
|
+
.replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
|
|
7289
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7290
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7291
|
+
let baseOptions;
|
|
7292
|
+
if (configuration) {
|
|
7293
|
+
baseOptions = configuration.baseOptions;
|
|
7294
|
+
}
|
|
7295
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
7296
|
+
const localVarHeaderParameter = {};
|
|
7297
|
+
const localVarQueryParameter = {};
|
|
7298
|
+
if (teamName !== undefined) {
|
|
7299
|
+
localVarQueryParameter['teamName'] = teamName;
|
|
7300
|
+
}
|
|
7301
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7302
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7303
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7304
|
+
return {
|
|
7305
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
7306
|
+
options: localVarRequestOptions,
|
|
7307
|
+
};
|
|
7308
|
+
}),
|
|
7309
|
+
/**
|
|
7310
|
+
* Estime le prix de participation à un événement pour une liste de joueurs
|
|
7311
|
+
* @param {string} eventId
|
|
7312
|
+
* @param {EstimateEventPriceRequest} estimateEventPriceRequest
|
|
7313
|
+
* @param {*} [options] Override http request option.
|
|
7314
|
+
* @throws {RequiredError}
|
|
7315
|
+
*/
|
|
7316
|
+
estimateEventPrice: (eventId_1, estimateEventPriceRequest_1, ...args_1) => __awaiter(this, [eventId_1, estimateEventPriceRequest_1, ...args_1], void 0, function* (eventId, estimateEventPriceRequest, options = {}) {
|
|
7317
|
+
// verify required parameter 'eventId' is not null or undefined
|
|
7318
|
+
(0, common_1.assertParamExists)('estimateEventPrice', 'eventId', eventId);
|
|
7319
|
+
// verify required parameter 'estimateEventPriceRequest' is not null or undefined
|
|
7320
|
+
(0, common_1.assertParamExists)('estimateEventPrice', 'estimateEventPriceRequest', estimateEventPriceRequest);
|
|
7321
|
+
const localVarPath = `/api/events/{eventId}/estimate-price`
|
|
7322
|
+
.replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
|
|
7323
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7324
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7325
|
+
let baseOptions;
|
|
7326
|
+
if (configuration) {
|
|
7327
|
+
baseOptions = configuration.baseOptions;
|
|
7328
|
+
}
|
|
7329
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
7330
|
+
const localVarHeaderParameter = {};
|
|
7331
|
+
const localVarQueryParameter = {};
|
|
7332
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
7333
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7334
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7335
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7336
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(estimateEventPriceRequest, localVarRequestOptions, configuration);
|
|
7337
|
+
return {
|
|
7338
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
7339
|
+
options: localVarRequestOptions,
|
|
7340
|
+
};
|
|
7341
|
+
}),
|
|
7201
7342
|
/**
|
|
7202
7343
|
* Get a specific event by ID
|
|
7203
7344
|
* @param {string} eventId
|
|
@@ -7343,6 +7484,38 @@ exports.EventsApiAxiosParamCreator = EventsApiAxiosParamCreator;
|
|
|
7343
7484
|
const EventsApiFp = function (configuration) {
|
|
7344
7485
|
const localVarAxiosParamCreator = (0, exports.EventsApiAxiosParamCreator)(configuration);
|
|
7345
7486
|
return {
|
|
7487
|
+
/**
|
|
7488
|
+
* Check team name availability for TEAM participation events
|
|
7489
|
+
* @param {string} eventId
|
|
7490
|
+
* @param {string} [teamName]
|
|
7491
|
+
* @param {*} [options] Override http request option.
|
|
7492
|
+
* @throws {RequiredError}
|
|
7493
|
+
*/
|
|
7494
|
+
checkTeamNameAvailability(eventId, teamName, options) {
|
|
7495
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7496
|
+
var _a, _b, _c;
|
|
7497
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.checkTeamNameAvailability(eventId, teamName, options);
|
|
7498
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7499
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EventsApi.checkTeamNameAvailability']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7500
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7501
|
+
});
|
|
7502
|
+
},
|
|
7503
|
+
/**
|
|
7504
|
+
* Estime le prix de participation à un événement pour une liste de joueurs
|
|
7505
|
+
* @param {string} eventId
|
|
7506
|
+
* @param {EstimateEventPriceRequest} estimateEventPriceRequest
|
|
7507
|
+
* @param {*} [options] Override http request option.
|
|
7508
|
+
* @throws {RequiredError}
|
|
7509
|
+
*/
|
|
7510
|
+
estimateEventPrice(eventId, estimateEventPriceRequest, options) {
|
|
7511
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7512
|
+
var _a, _b, _c;
|
|
7513
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.estimateEventPrice(eventId, estimateEventPriceRequest, options);
|
|
7514
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7515
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EventsApi.estimateEventPrice']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7516
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7517
|
+
});
|
|
7518
|
+
},
|
|
7346
7519
|
/**
|
|
7347
7520
|
* Get a specific event by ID
|
|
7348
7521
|
* @param {string} eventId
|
|
@@ -7417,6 +7590,24 @@ exports.EventsApiFp = EventsApiFp;
|
|
|
7417
7590
|
const EventsApiFactory = function (configuration, basePath, axios) {
|
|
7418
7591
|
const localVarFp = (0, exports.EventsApiFp)(configuration);
|
|
7419
7592
|
return {
|
|
7593
|
+
/**
|
|
7594
|
+
* Check team name availability for TEAM participation events
|
|
7595
|
+
* @param {EventsApiCheckTeamNameAvailabilityRequest} requestParameters Request parameters.
|
|
7596
|
+
* @param {*} [options] Override http request option.
|
|
7597
|
+
* @throws {RequiredError}
|
|
7598
|
+
*/
|
|
7599
|
+
checkTeamNameAvailability(requestParameters, options) {
|
|
7600
|
+
return localVarFp.checkTeamNameAvailability(requestParameters.eventId, requestParameters.teamName, options).then((request) => request(axios, basePath));
|
|
7601
|
+
},
|
|
7602
|
+
/**
|
|
7603
|
+
* Estime le prix de participation à un événement pour une liste de joueurs
|
|
7604
|
+
* @param {EventsApiEstimateEventPriceRequest} requestParameters Request parameters.
|
|
7605
|
+
* @param {*} [options] Override http request option.
|
|
7606
|
+
* @throws {RequiredError}
|
|
7607
|
+
*/
|
|
7608
|
+
estimateEventPrice(requestParameters, options) {
|
|
7609
|
+
return localVarFp.estimateEventPrice(requestParameters.eventId, requestParameters.estimateEventPriceRequest, options).then((request) => request(axios, basePath));
|
|
7610
|
+
},
|
|
7420
7611
|
/**
|
|
7421
7612
|
* Get a specific event by ID
|
|
7422
7613
|
* @param {EventsApiGetEventByIdRequest} requestParameters Request parameters.
|
|
@@ -7463,6 +7654,26 @@ exports.EventsApiFactory = EventsApiFactory;
|
|
|
7463
7654
|
* @extends {BaseAPI}
|
|
7464
7655
|
*/
|
|
7465
7656
|
class EventsApi extends base_1.BaseAPI {
|
|
7657
|
+
/**
|
|
7658
|
+
* Check team name availability for TEAM participation events
|
|
7659
|
+
* @param {EventsApiCheckTeamNameAvailabilityRequest} requestParameters Request parameters.
|
|
7660
|
+
* @param {*} [options] Override http request option.
|
|
7661
|
+
* @throws {RequiredError}
|
|
7662
|
+
* @memberof EventsApi
|
|
7663
|
+
*/
|
|
7664
|
+
checkTeamNameAvailability(requestParameters, options) {
|
|
7665
|
+
return (0, exports.EventsApiFp)(this.configuration).checkTeamNameAvailability(requestParameters.eventId, requestParameters.teamName, options).then((request) => request(this.axios, this.basePath));
|
|
7666
|
+
}
|
|
7667
|
+
/**
|
|
7668
|
+
* Estime le prix de participation à un événement pour une liste de joueurs
|
|
7669
|
+
* @param {EventsApiEstimateEventPriceRequest} requestParameters Request parameters.
|
|
7670
|
+
* @param {*} [options] Override http request option.
|
|
7671
|
+
* @throws {RequiredError}
|
|
7672
|
+
* @memberof EventsApi
|
|
7673
|
+
*/
|
|
7674
|
+
estimateEventPrice(requestParameters, options) {
|
|
7675
|
+
return (0, exports.EventsApiFp)(this.configuration).estimateEventPrice(requestParameters.eventId, requestParameters.estimateEventPriceRequest, options).then((request) => request(this.axios, this.basePath));
|
|
7676
|
+
}
|
|
7466
7677
|
/**
|
|
7467
7678
|
* Get a specific event by ID
|
|
7468
7679
|
* @param {EventsApiGetEventByIdRequest} requestParameters Request parameters.
|
|
@@ -8494,6 +8705,110 @@ exports.GetWeeklyEventsTypeEnum = {
|
|
|
8494
8705
|
Event: 'event',
|
|
8495
8706
|
Closure: 'closure'
|
|
8496
8707
|
};
|
|
8708
|
+
/**
|
|
8709
|
+
* ImagesApi - axios parameter creator
|
|
8710
|
+
* @export
|
|
8711
|
+
*/
|
|
8712
|
+
const ImagesApiAxiosParamCreator = function (configuration) {
|
|
8713
|
+
return {
|
|
8714
|
+
/**
|
|
8715
|
+
*
|
|
8716
|
+
* @param {ImageCleanupRequestBody} imageCleanupRequestBody
|
|
8717
|
+
* @param {*} [options] Override http request option.
|
|
8718
|
+
* @throws {RequiredError}
|
|
8719
|
+
*/
|
|
8720
|
+
cleanupImages: (imageCleanupRequestBody_1, ...args_1) => __awaiter(this, [imageCleanupRequestBody_1, ...args_1], void 0, function* (imageCleanupRequestBody, options = {}) {
|
|
8721
|
+
// verify required parameter 'imageCleanupRequestBody' is not null or undefined
|
|
8722
|
+
(0, common_1.assertParamExists)('cleanupImages', 'imageCleanupRequestBody', imageCleanupRequestBody);
|
|
8723
|
+
const localVarPath = `/api/images/cleanup`;
|
|
8724
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8725
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
8726
|
+
let baseOptions;
|
|
8727
|
+
if (configuration) {
|
|
8728
|
+
baseOptions = configuration.baseOptions;
|
|
8729
|
+
}
|
|
8730
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
8731
|
+
const localVarHeaderParameter = {};
|
|
8732
|
+
const localVarQueryParameter = {};
|
|
8733
|
+
// authentication bearerAuth required
|
|
8734
|
+
// http bearer authentication required
|
|
8735
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
8736
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
8737
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
8738
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8739
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8740
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(imageCleanupRequestBody, localVarRequestOptions, configuration);
|
|
8741
|
+
return {
|
|
8742
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
8743
|
+
options: localVarRequestOptions,
|
|
8744
|
+
};
|
|
8745
|
+
}),
|
|
8746
|
+
};
|
|
8747
|
+
};
|
|
8748
|
+
exports.ImagesApiAxiosParamCreator = ImagesApiAxiosParamCreator;
|
|
8749
|
+
/**
|
|
8750
|
+
* ImagesApi - functional programming interface
|
|
8751
|
+
* @export
|
|
8752
|
+
*/
|
|
8753
|
+
const ImagesApiFp = function (configuration) {
|
|
8754
|
+
const localVarAxiosParamCreator = (0, exports.ImagesApiAxiosParamCreator)(configuration);
|
|
8755
|
+
return {
|
|
8756
|
+
/**
|
|
8757
|
+
*
|
|
8758
|
+
* @param {ImageCleanupRequestBody} imageCleanupRequestBody
|
|
8759
|
+
* @param {*} [options] Override http request option.
|
|
8760
|
+
* @throws {RequiredError}
|
|
8761
|
+
*/
|
|
8762
|
+
cleanupImages(imageCleanupRequestBody, options) {
|
|
8763
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8764
|
+
var _a, _b, _c;
|
|
8765
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.cleanupImages(imageCleanupRequestBody, options);
|
|
8766
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8767
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ImagesApi.cleanupImages']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8768
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8769
|
+
});
|
|
8770
|
+
},
|
|
8771
|
+
};
|
|
8772
|
+
};
|
|
8773
|
+
exports.ImagesApiFp = ImagesApiFp;
|
|
8774
|
+
/**
|
|
8775
|
+
* ImagesApi - factory interface
|
|
8776
|
+
* @export
|
|
8777
|
+
*/
|
|
8778
|
+
const ImagesApiFactory = function (configuration, basePath, axios) {
|
|
8779
|
+
const localVarFp = (0, exports.ImagesApiFp)(configuration);
|
|
8780
|
+
return {
|
|
8781
|
+
/**
|
|
8782
|
+
*
|
|
8783
|
+
* @param {ImagesApiCleanupImagesRequest} requestParameters Request parameters.
|
|
8784
|
+
* @param {*} [options] Override http request option.
|
|
8785
|
+
* @throws {RequiredError}
|
|
8786
|
+
*/
|
|
8787
|
+
cleanupImages(requestParameters, options) {
|
|
8788
|
+
return localVarFp.cleanupImages(requestParameters.imageCleanupRequestBody, options).then((request) => request(axios, basePath));
|
|
8789
|
+
},
|
|
8790
|
+
};
|
|
8791
|
+
};
|
|
8792
|
+
exports.ImagesApiFactory = ImagesApiFactory;
|
|
8793
|
+
/**
|
|
8794
|
+
* ImagesApi - object-oriented interface
|
|
8795
|
+
* @export
|
|
8796
|
+
* @class ImagesApi
|
|
8797
|
+
* @extends {BaseAPI}
|
|
8798
|
+
*/
|
|
8799
|
+
class ImagesApi extends base_1.BaseAPI {
|
|
8800
|
+
/**
|
|
8801
|
+
*
|
|
8802
|
+
* @param {ImagesApiCleanupImagesRequest} requestParameters Request parameters.
|
|
8803
|
+
* @param {*} [options] Override http request option.
|
|
8804
|
+
* @throws {RequiredError}
|
|
8805
|
+
* @memberof ImagesApi
|
|
8806
|
+
*/
|
|
8807
|
+
cleanupImages(requestParameters, options) {
|
|
8808
|
+
return (0, exports.ImagesApiFp)(this.configuration).cleanupImages(requestParameters.imageCleanupRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
8809
|
+
}
|
|
8810
|
+
}
|
|
8811
|
+
exports.ImagesApi = ImagesApi;
|
|
8497
8812
|
/**
|
|
8498
8813
|
* SportsManagerApi - axios parameter creator
|
|
8499
8814
|
* @export
|
package/dist/base.d.ts
CHANGED
package/dist/base.js
CHANGED
package/dist/common.d.ts
CHANGED
package/dist/common.js
CHANGED
package/dist/configuration.d.ts
CHANGED
package/dist/configuration.js
CHANGED