@tennac-booking/sdk 1.0.120 → 1.0.121
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 +329 -313
- package/README.md +24 -4
- package/api.ts +917 -28
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +727 -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 +727 -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/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/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/esm/api.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* openapi.json
|
|
5
5
|
* Pandook API Documentation
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.
|
|
7
|
+
* The version of the OpenAPI document: 1.0.121
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -63,6 +63,10 @@ export const CaptureResultStatusEnum = {
|
|
|
63
63
|
Captured: 'captured',
|
|
64
64
|
Failed: 'failed'
|
|
65
65
|
};
|
|
66
|
+
export const ClientOnboardingRequestBodyClubTypeEnum = {
|
|
67
|
+
Public: 'public',
|
|
68
|
+
School: 'school'
|
|
69
|
+
};
|
|
66
70
|
export const ClubRoleResponseRoleEnum = {
|
|
67
71
|
Admin: 'admin',
|
|
68
72
|
Manager: 'manager',
|
|
@@ -144,6 +148,20 @@ export const Gender = {
|
|
|
144
148
|
export const IUserLocationTypeEnum = {
|
|
145
149
|
Point: 'Point'
|
|
146
150
|
};
|
|
151
|
+
/**
|
|
152
|
+
*
|
|
153
|
+
* @export
|
|
154
|
+
* @enum {string}
|
|
155
|
+
*/
|
|
156
|
+
export const ImageContextType = {
|
|
157
|
+
UserAvatar: 'user-avatar',
|
|
158
|
+
ClubAvatar: 'club-avatar',
|
|
159
|
+
ClubGallery: 'club-gallery',
|
|
160
|
+
ClubPreview: 'club-preview',
|
|
161
|
+
ClubCarousel: 'club-carousel',
|
|
162
|
+
ClubSportImage: 'club-sport-image',
|
|
163
|
+
ClubEventImage: 'club-event-image'
|
|
164
|
+
};
|
|
147
165
|
/**
|
|
148
166
|
*
|
|
149
167
|
* @export
|
|
@@ -1600,6 +1618,33 @@ export const ClientApiAxiosParamCreator = function (configuration) {
|
|
|
1600
1618
|
options: localVarRequestOptions,
|
|
1601
1619
|
};
|
|
1602
1620
|
}),
|
|
1621
|
+
/**
|
|
1622
|
+
* Récupère les abonnements Stripe actifs du compte client de l\'utilisateur courant
|
|
1623
|
+
* @param {*} [options] Override http request option.
|
|
1624
|
+
* @throws {RequiredError}
|
|
1625
|
+
*/
|
|
1626
|
+
getClientSubscriptions: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
1627
|
+
const localVarPath = `/clients/subscriptions`;
|
|
1628
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1629
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1630
|
+
let baseOptions;
|
|
1631
|
+
if (configuration) {
|
|
1632
|
+
baseOptions = configuration.baseOptions;
|
|
1633
|
+
}
|
|
1634
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1635
|
+
const localVarHeaderParameter = {};
|
|
1636
|
+
const localVarQueryParameter = {};
|
|
1637
|
+
// authentication clientAuth required
|
|
1638
|
+
// http bearer authentication required
|
|
1639
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1640
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1641
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1642
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1643
|
+
return {
|
|
1644
|
+
url: toPathString(localVarUrlObj),
|
|
1645
|
+
options: localVarRequestOptions,
|
|
1646
|
+
};
|
|
1647
|
+
}),
|
|
1603
1648
|
/**
|
|
1604
1649
|
* Récupère la liste des clubs gérés par l\'utilisateur authentifié
|
|
1605
1650
|
* @param {*} [options] Override http request option.
|
|
@@ -1683,6 +1728,20 @@ export const ClientApiFp = function (configuration) {
|
|
|
1683
1728
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1684
1729
|
});
|
|
1685
1730
|
},
|
|
1731
|
+
/**
|
|
1732
|
+
* Récupère les abonnements Stripe actifs du compte client de l\'utilisateur courant
|
|
1733
|
+
* @param {*} [options] Override http request option.
|
|
1734
|
+
* @throws {RequiredError}
|
|
1735
|
+
*/
|
|
1736
|
+
getClientSubscriptions(options) {
|
|
1737
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1738
|
+
var _a, _b, _c;
|
|
1739
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClientSubscriptions(options);
|
|
1740
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1741
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClientApi.getClientSubscriptions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1742
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1743
|
+
});
|
|
1744
|
+
},
|
|
1686
1745
|
/**
|
|
1687
1746
|
* Récupère la liste des clubs gérés par l\'utilisateur authentifié
|
|
1688
1747
|
* @param {*} [options] Override http request option.
|
|
@@ -1730,6 +1789,14 @@ export const ClientApiFactory = function (configuration, basePath, axios) {
|
|
|
1730
1789
|
clientRegister(requestParameters, options) {
|
|
1731
1790
|
return localVarFp.clientRegister(requestParameters.clientRegisterRequest, options).then((request) => request(axios, basePath));
|
|
1732
1791
|
},
|
|
1792
|
+
/**
|
|
1793
|
+
* Récupère les abonnements Stripe actifs du compte client de l\'utilisateur courant
|
|
1794
|
+
* @param {*} [options] Override http request option.
|
|
1795
|
+
* @throws {RequiredError}
|
|
1796
|
+
*/
|
|
1797
|
+
getClientSubscriptions(options) {
|
|
1798
|
+
return localVarFp.getClientSubscriptions(options).then((request) => request(axios, basePath));
|
|
1799
|
+
},
|
|
1733
1800
|
/**
|
|
1734
1801
|
* Récupère la liste des clubs gérés par l\'utilisateur authentifié
|
|
1735
1802
|
* @param {*} [options] Override http request option.
|
|
@@ -1766,6 +1833,15 @@ export class ClientApi extends BaseAPI {
|
|
|
1766
1833
|
clientRegister(requestParameters, options) {
|
|
1767
1834
|
return ClientApiFp(this.configuration).clientRegister(requestParameters.clientRegisterRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1768
1835
|
}
|
|
1836
|
+
/**
|
|
1837
|
+
* Récupère les abonnements Stripe actifs du compte client de l\'utilisateur courant
|
|
1838
|
+
* @param {*} [options] Override http request option.
|
|
1839
|
+
* @throws {RequiredError}
|
|
1840
|
+
* @memberof ClientApi
|
|
1841
|
+
*/
|
|
1842
|
+
getClientSubscriptions(options) {
|
|
1843
|
+
return ClientApiFp(this.configuration).getClientSubscriptions(options).then((request) => request(this.axios, this.basePath));
|
|
1844
|
+
}
|
|
1769
1845
|
/**
|
|
1770
1846
|
* Récupère la liste des clubs gérés par l\'utilisateur authentifié
|
|
1771
1847
|
* @param {*} [options] Override http request option.
|
|
@@ -3477,7 +3553,7 @@ export const ClubSettingsManagerApiAxiosParamCreator = function (configuration)
|
|
|
3477
3553
|
if (configuration) {
|
|
3478
3554
|
baseOptions = configuration.baseOptions;
|
|
3479
3555
|
}
|
|
3480
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
3556
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
3481
3557
|
const localVarHeaderParameter = {};
|
|
3482
3558
|
const localVarQueryParameter = {};
|
|
3483
3559
|
// authentication bearerAuth required
|
|
@@ -3527,13 +3603,13 @@ export const ClubSettingsManagerApiAxiosParamCreator = function (configuration)
|
|
|
3527
3603
|
}),
|
|
3528
3604
|
/**
|
|
3529
3605
|
*
|
|
3530
|
-
* @param {
|
|
3606
|
+
* @param {UpdateClubPresentationSettingsRequest} updateClubPresentationSettingsRequest
|
|
3531
3607
|
* @param {*} [options] Override http request option.
|
|
3532
3608
|
* @throws {RequiredError}
|
|
3533
3609
|
*/
|
|
3534
|
-
updatePresentationSettings: (
|
|
3535
|
-
// verify required parameter '
|
|
3536
|
-
assertParamExists('updatePresentationSettings', '
|
|
3610
|
+
updatePresentationSettings: (updateClubPresentationSettingsRequest_1, ...args_1) => __awaiter(this, [updateClubPresentationSettingsRequest_1, ...args_1], void 0, function* (updateClubPresentationSettingsRequest, options = {}) {
|
|
3611
|
+
// verify required parameter 'updateClubPresentationSettingsRequest' is not null or undefined
|
|
3612
|
+
assertParamExists('updatePresentationSettings', 'updateClubPresentationSettingsRequest', updateClubPresentationSettingsRequest);
|
|
3537
3613
|
const localVarPath = `/api/club-settings/presentation`;
|
|
3538
3614
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3539
3615
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -3541,7 +3617,7 @@ export const ClubSettingsManagerApiAxiosParamCreator = function (configuration)
|
|
|
3541
3617
|
if (configuration) {
|
|
3542
3618
|
baseOptions = configuration.baseOptions;
|
|
3543
3619
|
}
|
|
3544
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
3620
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
3545
3621
|
const localVarHeaderParameter = {};
|
|
3546
3622
|
const localVarQueryParameter = {};
|
|
3547
3623
|
// authentication bearerAuth required
|
|
@@ -3551,7 +3627,7 @@ export const ClubSettingsManagerApiAxiosParamCreator = function (configuration)
|
|
|
3551
3627
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3552
3628
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3553
3629
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3554
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
3630
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateClubPresentationSettingsRequest, localVarRequestOptions, configuration);
|
|
3555
3631
|
return {
|
|
3556
3632
|
url: toPathString(localVarUrlObj),
|
|
3557
3633
|
options: localVarRequestOptions,
|
|
@@ -3630,14 +3706,14 @@ export const ClubSettingsManagerApiFp = function (configuration) {
|
|
|
3630
3706
|
},
|
|
3631
3707
|
/**
|
|
3632
3708
|
*
|
|
3633
|
-
* @param {
|
|
3709
|
+
* @param {UpdateClubPresentationSettingsRequest} updateClubPresentationSettingsRequest
|
|
3634
3710
|
* @param {*} [options] Override http request option.
|
|
3635
3711
|
* @throws {RequiredError}
|
|
3636
3712
|
*/
|
|
3637
|
-
updatePresentationSettings(
|
|
3713
|
+
updatePresentationSettings(updateClubPresentationSettingsRequest, options) {
|
|
3638
3714
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3639
3715
|
var _a, _b, _c;
|
|
3640
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.updatePresentationSettings(
|
|
3716
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updatePresentationSettings(updateClubPresentationSettingsRequest, options);
|
|
3641
3717
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3642
3718
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubSettingsManagerApi.updatePresentationSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3643
3719
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -3692,7 +3768,7 @@ export const ClubSettingsManagerApiFactory = function (configuration, basePath,
|
|
|
3692
3768
|
* @throws {RequiredError}
|
|
3693
3769
|
*/
|
|
3694
3770
|
updatePresentationSettings(requestParameters, options) {
|
|
3695
|
-
return localVarFp.updatePresentationSettings(requestParameters.
|
|
3771
|
+
return localVarFp.updatePresentationSettings(requestParameters.updateClubPresentationSettingsRequest, options).then((request) => request(axios, basePath));
|
|
3696
3772
|
},
|
|
3697
3773
|
/**
|
|
3698
3774
|
*
|
|
@@ -3740,7 +3816,7 @@ export class ClubSettingsManagerApi extends BaseAPI {
|
|
|
3740
3816
|
* @memberof ClubSettingsManagerApi
|
|
3741
3817
|
*/
|
|
3742
3818
|
updatePresentationSettings(requestParameters, options) {
|
|
3743
|
-
return ClubSettingsManagerApiFp(this.configuration).updatePresentationSettings(requestParameters.
|
|
3819
|
+
return ClubSettingsManagerApiFp(this.configuration).updatePresentationSettings(requestParameters.updateClubPresentationSettingsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3744
3820
|
}
|
|
3745
3821
|
/**
|
|
3746
3822
|
*
|
|
@@ -7132,6 +7208,71 @@ export class DefaultApi extends BaseAPI {
|
|
|
7132
7208
|
*/
|
|
7133
7209
|
export const EventsApiAxiosParamCreator = function (configuration) {
|
|
7134
7210
|
return {
|
|
7211
|
+
/**
|
|
7212
|
+
* Check team name availability for TEAM participation events
|
|
7213
|
+
* @param {string} eventId
|
|
7214
|
+
* @param {string} [teamName]
|
|
7215
|
+
* @param {*} [options] Override http request option.
|
|
7216
|
+
* @throws {RequiredError}
|
|
7217
|
+
*/
|
|
7218
|
+
checkTeamNameAvailability: (eventId_1, teamName_1, ...args_1) => __awaiter(this, [eventId_1, teamName_1, ...args_1], void 0, function* (eventId, teamName, options = {}) {
|
|
7219
|
+
// verify required parameter 'eventId' is not null or undefined
|
|
7220
|
+
assertParamExists('checkTeamNameAvailability', 'eventId', eventId);
|
|
7221
|
+
const localVarPath = `/api/events/{eventId}/team-name-availability`
|
|
7222
|
+
.replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
|
|
7223
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7224
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7225
|
+
let baseOptions;
|
|
7226
|
+
if (configuration) {
|
|
7227
|
+
baseOptions = configuration.baseOptions;
|
|
7228
|
+
}
|
|
7229
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
7230
|
+
const localVarHeaderParameter = {};
|
|
7231
|
+
const localVarQueryParameter = {};
|
|
7232
|
+
if (teamName !== undefined) {
|
|
7233
|
+
localVarQueryParameter['teamName'] = teamName;
|
|
7234
|
+
}
|
|
7235
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7236
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7237
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7238
|
+
return {
|
|
7239
|
+
url: toPathString(localVarUrlObj),
|
|
7240
|
+
options: localVarRequestOptions,
|
|
7241
|
+
};
|
|
7242
|
+
}),
|
|
7243
|
+
/**
|
|
7244
|
+
* Estime le prix de participation à un événement pour une liste de joueurs
|
|
7245
|
+
* @param {string} eventId
|
|
7246
|
+
* @param {EstimateEventPriceRequest} estimateEventPriceRequest
|
|
7247
|
+
* @param {*} [options] Override http request option.
|
|
7248
|
+
* @throws {RequiredError}
|
|
7249
|
+
*/
|
|
7250
|
+
estimateEventPrice: (eventId_1, estimateEventPriceRequest_1, ...args_1) => __awaiter(this, [eventId_1, estimateEventPriceRequest_1, ...args_1], void 0, function* (eventId, estimateEventPriceRequest, options = {}) {
|
|
7251
|
+
// verify required parameter 'eventId' is not null or undefined
|
|
7252
|
+
assertParamExists('estimateEventPrice', 'eventId', eventId);
|
|
7253
|
+
// verify required parameter 'estimateEventPriceRequest' is not null or undefined
|
|
7254
|
+
assertParamExists('estimateEventPrice', 'estimateEventPriceRequest', estimateEventPriceRequest);
|
|
7255
|
+
const localVarPath = `/api/events/{eventId}/estimate-price`
|
|
7256
|
+
.replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
|
|
7257
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7258
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7259
|
+
let baseOptions;
|
|
7260
|
+
if (configuration) {
|
|
7261
|
+
baseOptions = configuration.baseOptions;
|
|
7262
|
+
}
|
|
7263
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
7264
|
+
const localVarHeaderParameter = {};
|
|
7265
|
+
const localVarQueryParameter = {};
|
|
7266
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
7267
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7268
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7269
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7270
|
+
localVarRequestOptions.data = serializeDataIfNeeded(estimateEventPriceRequest, localVarRequestOptions, configuration);
|
|
7271
|
+
return {
|
|
7272
|
+
url: toPathString(localVarUrlObj),
|
|
7273
|
+
options: localVarRequestOptions,
|
|
7274
|
+
};
|
|
7275
|
+
}),
|
|
7135
7276
|
/**
|
|
7136
7277
|
* Get a specific event by ID
|
|
7137
7278
|
* @param {string} eventId
|
|
@@ -7276,6 +7417,38 @@ export const EventsApiAxiosParamCreator = function (configuration) {
|
|
|
7276
7417
|
export const EventsApiFp = function (configuration) {
|
|
7277
7418
|
const localVarAxiosParamCreator = EventsApiAxiosParamCreator(configuration);
|
|
7278
7419
|
return {
|
|
7420
|
+
/**
|
|
7421
|
+
* Check team name availability for TEAM participation events
|
|
7422
|
+
* @param {string} eventId
|
|
7423
|
+
* @param {string} [teamName]
|
|
7424
|
+
* @param {*} [options] Override http request option.
|
|
7425
|
+
* @throws {RequiredError}
|
|
7426
|
+
*/
|
|
7427
|
+
checkTeamNameAvailability(eventId, teamName, options) {
|
|
7428
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7429
|
+
var _a, _b, _c;
|
|
7430
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.checkTeamNameAvailability(eventId, teamName, options);
|
|
7431
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7432
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsApi.checkTeamNameAvailability']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7433
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7434
|
+
});
|
|
7435
|
+
},
|
|
7436
|
+
/**
|
|
7437
|
+
* Estime le prix de participation à un événement pour une liste de joueurs
|
|
7438
|
+
* @param {string} eventId
|
|
7439
|
+
* @param {EstimateEventPriceRequest} estimateEventPriceRequest
|
|
7440
|
+
* @param {*} [options] Override http request option.
|
|
7441
|
+
* @throws {RequiredError}
|
|
7442
|
+
*/
|
|
7443
|
+
estimateEventPrice(eventId, estimateEventPriceRequest, options) {
|
|
7444
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7445
|
+
var _a, _b, _c;
|
|
7446
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.estimateEventPrice(eventId, estimateEventPriceRequest, options);
|
|
7447
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7448
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsApi.estimateEventPrice']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7449
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7450
|
+
});
|
|
7451
|
+
},
|
|
7279
7452
|
/**
|
|
7280
7453
|
* Get a specific event by ID
|
|
7281
7454
|
* @param {string} eventId
|
|
@@ -7349,6 +7522,24 @@ export const EventsApiFp = function (configuration) {
|
|
|
7349
7522
|
export const EventsApiFactory = function (configuration, basePath, axios) {
|
|
7350
7523
|
const localVarFp = EventsApiFp(configuration);
|
|
7351
7524
|
return {
|
|
7525
|
+
/**
|
|
7526
|
+
* Check team name availability for TEAM participation events
|
|
7527
|
+
* @param {EventsApiCheckTeamNameAvailabilityRequest} requestParameters Request parameters.
|
|
7528
|
+
* @param {*} [options] Override http request option.
|
|
7529
|
+
* @throws {RequiredError}
|
|
7530
|
+
*/
|
|
7531
|
+
checkTeamNameAvailability(requestParameters, options) {
|
|
7532
|
+
return localVarFp.checkTeamNameAvailability(requestParameters.eventId, requestParameters.teamName, options).then((request) => request(axios, basePath));
|
|
7533
|
+
},
|
|
7534
|
+
/**
|
|
7535
|
+
* Estime le prix de participation à un événement pour une liste de joueurs
|
|
7536
|
+
* @param {EventsApiEstimateEventPriceRequest} requestParameters Request parameters.
|
|
7537
|
+
* @param {*} [options] Override http request option.
|
|
7538
|
+
* @throws {RequiredError}
|
|
7539
|
+
*/
|
|
7540
|
+
estimateEventPrice(requestParameters, options) {
|
|
7541
|
+
return localVarFp.estimateEventPrice(requestParameters.eventId, requestParameters.estimateEventPriceRequest, options).then((request) => request(axios, basePath));
|
|
7542
|
+
},
|
|
7352
7543
|
/**
|
|
7353
7544
|
* Get a specific event by ID
|
|
7354
7545
|
* @param {EventsApiGetEventByIdRequest} requestParameters Request parameters.
|
|
@@ -7394,6 +7585,26 @@ export const EventsApiFactory = function (configuration, basePath, axios) {
|
|
|
7394
7585
|
* @extends {BaseAPI}
|
|
7395
7586
|
*/
|
|
7396
7587
|
export class EventsApi extends BaseAPI {
|
|
7588
|
+
/**
|
|
7589
|
+
* Check team name availability for TEAM participation events
|
|
7590
|
+
* @param {EventsApiCheckTeamNameAvailabilityRequest} requestParameters Request parameters.
|
|
7591
|
+
* @param {*} [options] Override http request option.
|
|
7592
|
+
* @throws {RequiredError}
|
|
7593
|
+
* @memberof EventsApi
|
|
7594
|
+
*/
|
|
7595
|
+
checkTeamNameAvailability(requestParameters, options) {
|
|
7596
|
+
return EventsApiFp(this.configuration).checkTeamNameAvailability(requestParameters.eventId, requestParameters.teamName, options).then((request) => request(this.axios, this.basePath));
|
|
7597
|
+
}
|
|
7598
|
+
/**
|
|
7599
|
+
* Estime le prix de participation à un événement pour une liste de joueurs
|
|
7600
|
+
* @param {EventsApiEstimateEventPriceRequest} requestParameters Request parameters.
|
|
7601
|
+
* @param {*} [options] Override http request option.
|
|
7602
|
+
* @throws {RequiredError}
|
|
7603
|
+
* @memberof EventsApi
|
|
7604
|
+
*/
|
|
7605
|
+
estimateEventPrice(requestParameters, options) {
|
|
7606
|
+
return EventsApiFp(this.configuration).estimateEventPrice(requestParameters.eventId, requestParameters.estimateEventPriceRequest, options).then((request) => request(this.axios, this.basePath));
|
|
7607
|
+
}
|
|
7397
7608
|
/**
|
|
7398
7609
|
* Get a specific event by ID
|
|
7399
7610
|
* @param {EventsApiGetEventByIdRequest} requestParameters Request parameters.
|
|
@@ -8416,6 +8627,106 @@ export const GetWeeklyEventsTypeEnum = {
|
|
|
8416
8627
|
Event: 'event',
|
|
8417
8628
|
Closure: 'closure'
|
|
8418
8629
|
};
|
|
8630
|
+
/**
|
|
8631
|
+
* ImagesApi - axios parameter creator
|
|
8632
|
+
* @export
|
|
8633
|
+
*/
|
|
8634
|
+
export const ImagesApiAxiosParamCreator = function (configuration) {
|
|
8635
|
+
return {
|
|
8636
|
+
/**
|
|
8637
|
+
*
|
|
8638
|
+
* @param {ImageCleanupRequestBody} imageCleanupRequestBody
|
|
8639
|
+
* @param {*} [options] Override http request option.
|
|
8640
|
+
* @throws {RequiredError}
|
|
8641
|
+
*/
|
|
8642
|
+
cleanupImages: (imageCleanupRequestBody_1, ...args_1) => __awaiter(this, [imageCleanupRequestBody_1, ...args_1], void 0, function* (imageCleanupRequestBody, options = {}) {
|
|
8643
|
+
// verify required parameter 'imageCleanupRequestBody' is not null or undefined
|
|
8644
|
+
assertParamExists('cleanupImages', 'imageCleanupRequestBody', imageCleanupRequestBody);
|
|
8645
|
+
const localVarPath = `/api/images/cleanup`;
|
|
8646
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8647
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
8648
|
+
let baseOptions;
|
|
8649
|
+
if (configuration) {
|
|
8650
|
+
baseOptions = configuration.baseOptions;
|
|
8651
|
+
}
|
|
8652
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
8653
|
+
const localVarHeaderParameter = {};
|
|
8654
|
+
const localVarQueryParameter = {};
|
|
8655
|
+
// authentication bearerAuth required
|
|
8656
|
+
// http bearer authentication required
|
|
8657
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
8658
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
8659
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
8660
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8661
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8662
|
+
localVarRequestOptions.data = serializeDataIfNeeded(imageCleanupRequestBody, localVarRequestOptions, configuration);
|
|
8663
|
+
return {
|
|
8664
|
+
url: toPathString(localVarUrlObj),
|
|
8665
|
+
options: localVarRequestOptions,
|
|
8666
|
+
};
|
|
8667
|
+
}),
|
|
8668
|
+
};
|
|
8669
|
+
};
|
|
8670
|
+
/**
|
|
8671
|
+
* ImagesApi - functional programming interface
|
|
8672
|
+
* @export
|
|
8673
|
+
*/
|
|
8674
|
+
export const ImagesApiFp = function (configuration) {
|
|
8675
|
+
const localVarAxiosParamCreator = ImagesApiAxiosParamCreator(configuration);
|
|
8676
|
+
return {
|
|
8677
|
+
/**
|
|
8678
|
+
*
|
|
8679
|
+
* @param {ImageCleanupRequestBody} imageCleanupRequestBody
|
|
8680
|
+
* @param {*} [options] Override http request option.
|
|
8681
|
+
* @throws {RequiredError}
|
|
8682
|
+
*/
|
|
8683
|
+
cleanupImages(imageCleanupRequestBody, options) {
|
|
8684
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8685
|
+
var _a, _b, _c;
|
|
8686
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.cleanupImages(imageCleanupRequestBody, options);
|
|
8687
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8688
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ImagesApi.cleanupImages']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8689
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8690
|
+
});
|
|
8691
|
+
},
|
|
8692
|
+
};
|
|
8693
|
+
};
|
|
8694
|
+
/**
|
|
8695
|
+
* ImagesApi - factory interface
|
|
8696
|
+
* @export
|
|
8697
|
+
*/
|
|
8698
|
+
export const ImagesApiFactory = function (configuration, basePath, axios) {
|
|
8699
|
+
const localVarFp = ImagesApiFp(configuration);
|
|
8700
|
+
return {
|
|
8701
|
+
/**
|
|
8702
|
+
*
|
|
8703
|
+
* @param {ImagesApiCleanupImagesRequest} requestParameters Request parameters.
|
|
8704
|
+
* @param {*} [options] Override http request option.
|
|
8705
|
+
* @throws {RequiredError}
|
|
8706
|
+
*/
|
|
8707
|
+
cleanupImages(requestParameters, options) {
|
|
8708
|
+
return localVarFp.cleanupImages(requestParameters.imageCleanupRequestBody, options).then((request) => request(axios, basePath));
|
|
8709
|
+
},
|
|
8710
|
+
};
|
|
8711
|
+
};
|
|
8712
|
+
/**
|
|
8713
|
+
* ImagesApi - object-oriented interface
|
|
8714
|
+
* @export
|
|
8715
|
+
* @class ImagesApi
|
|
8716
|
+
* @extends {BaseAPI}
|
|
8717
|
+
*/
|
|
8718
|
+
export class ImagesApi extends BaseAPI {
|
|
8719
|
+
/**
|
|
8720
|
+
*
|
|
8721
|
+
* @param {ImagesApiCleanupImagesRequest} requestParameters Request parameters.
|
|
8722
|
+
* @param {*} [options] Override http request option.
|
|
8723
|
+
* @throws {RequiredError}
|
|
8724
|
+
* @memberof ImagesApi
|
|
8725
|
+
*/
|
|
8726
|
+
cleanupImages(requestParameters, options) {
|
|
8727
|
+
return ImagesApiFp(this.configuration).cleanupImages(requestParameters.imageCleanupRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
8728
|
+
}
|
|
8729
|
+
}
|
|
8419
8730
|
/**
|
|
8420
8731
|
* SportsManagerApi - axios parameter creator
|
|
8421
8732
|
* @export
|
package/dist/esm/base.d.ts
CHANGED
package/dist/esm/base.js
CHANGED
package/dist/esm/common.d.ts
CHANGED
package/dist/esm/common.js
CHANGED
package/dist/esm/index.d.ts
CHANGED
package/dist/esm/index.js
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# CheckTeamNameAvailability200Response
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**available** | **boolean** | | [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { CheckTeamNameAvailability200Response } from '@tennac-booking/sdk';
|
|
14
|
+
|
|
15
|
+
const instance: CheckTeamNameAvailability200Response = {
|
|
16
|
+
available,
|
|
17
|
+
};
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
package/docs/ClientApi.md
CHANGED
|
@@ -5,6 +5,7 @@ All URIs are relative to *http://localhost*
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
7
|
|[**clientRegister**](#clientregister) | **POST** /clients/register | |
|
|
8
|
+
|[**getClientSubscriptions**](#getclientsubscriptions) | **GET** /clients/subscriptions | |
|
|
8
9
|
|[**getManagedClubs**](#getmanagedclubs) | **GET** /clients/managed-clubs | |
|
|
9
10
|
|[**onboardClub**](#onboardclub) | **POST** /clients/onboarding | |
|
|
10
11
|
|
|
@@ -62,6 +63,52 @@ No authorization required
|
|
|
62
63
|
|
|
63
64
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
64
65
|
|
|
66
|
+
# **getClientSubscriptions**
|
|
67
|
+
> ClientSubscriptionsResponse getClientSubscriptions()
|
|
68
|
+
|
|
69
|
+
Récupère les abonnements Stripe actifs du compte client de l\'utilisateur courant
|
|
70
|
+
|
|
71
|
+
### Example
|
|
72
|
+
|
|
73
|
+
```typescript
|
|
74
|
+
import {
|
|
75
|
+
ClientApi,
|
|
76
|
+
Configuration
|
|
77
|
+
} from '@tennac-booking/sdk';
|
|
78
|
+
|
|
79
|
+
const configuration = new Configuration();
|
|
80
|
+
const apiInstance = new ClientApi(configuration);
|
|
81
|
+
|
|
82
|
+
const { status, data } = await apiInstance.getClientSubscriptions();
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
### Parameters
|
|
86
|
+
This endpoint does not have any parameters.
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
### Return type
|
|
90
|
+
|
|
91
|
+
**ClientSubscriptionsResponse**
|
|
92
|
+
|
|
93
|
+
### Authorization
|
|
94
|
+
|
|
95
|
+
[clientAuth](../README.md#clientAuth)
|
|
96
|
+
|
|
97
|
+
### HTTP request headers
|
|
98
|
+
|
|
99
|
+
- **Content-Type**: Not defined
|
|
100
|
+
- **Accept**: application/json
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
### HTTP response details
|
|
104
|
+
| Status code | Description | Response headers |
|
|
105
|
+
|-------------|-------------|------------------|
|
|
106
|
+
|**200** | Abonnements récupérés | - |
|
|
107
|
+
|**401** | Non authentifié | - |
|
|
108
|
+
|**404** | Compte client introuvable | - |
|
|
109
|
+
|
|
110
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
111
|
+
|
|
65
112
|
# **getManagedClubs**
|
|
66
113
|
> ManagedClubsResponse getManagedClubs()
|
|
67
114
|
|