@tennac-booking/sdk 1.0.112 → 1.0.114
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 +7 -1
- package/README.md +15 -2
- package/api.ts +977 -8
- package/dist/api.d.ts +656 -4
- package/dist/api.js +514 -6
- package/dist/esm/api.d.ts +656 -4
- package/dist/esm/api.js +510 -2
- package/docs/AgendaBooking.md +30 -0
- package/docs/AgendaBookingPlayer.md +26 -0
- package/docs/AgendaBookingSlot.md +30 -0
- package/docs/AgendaPaymentStatus.md +12 -0
- package/docs/BookingsWithTimeBoundsResponse.md +1 -1
- package/docs/ClubMetadataResponse.md +30 -0
- package/docs/ClubMetadataResponseLocation.md +27 -0
- package/docs/ClubPlayerDetailResponse.md +2 -0
- package/docs/ClubSettingsManagerApi.md +2 -2
- package/docs/ClubSummary.md +8 -2
- package/docs/ClubsApi.md +55 -0
- package/docs/ClubsManagerApi.md +56 -0
- package/docs/ClubsStaffApi.md +55 -0
- package/docs/CreateEventRequest.md +3 -1
- package/docs/EventsStaffApi.md +198 -0
- package/docs/UpdateUserCreditsRequest.md +20 -0
- package/package.json +1 -1
package/dist/api.js
CHANGED
|
@@ -22,16 +22,26 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.
|
|
26
|
-
exports.
|
|
27
|
-
exports.
|
|
28
|
-
exports.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = exports.UserApi = void 0;
|
|
25
|
+
exports.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 = exports.AgendaPaymentStatus = void 0;
|
|
26
|
+
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 = exports.BookingsApiAxiosParamCreator = void 0;
|
|
27
|
+
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.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 = 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 = 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
|
+
};
|
|
35
45
|
exports.BookingHistoryPopulatedPerformedByTypeEnum = {
|
|
36
46
|
User: 'user',
|
|
37
47
|
Manager: 'manager',
|
|
@@ -3323,7 +3333,7 @@ const ClubSettingsManagerApiAxiosParamCreator = function (configuration) {
|
|
|
3323
3333
|
if (configuration) {
|
|
3324
3334
|
baseOptions = configuration.baseOptions;
|
|
3325
3335
|
}
|
|
3326
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
3336
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
3327
3337
|
const localVarHeaderParameter = {};
|
|
3328
3338
|
const localVarQueryParameter = {};
|
|
3329
3339
|
// authentication bearerAuth required
|
|
@@ -3387,7 +3397,7 @@ const ClubSettingsManagerApiAxiosParamCreator = function (configuration) {
|
|
|
3387
3397
|
if (configuration) {
|
|
3388
3398
|
baseOptions = configuration.baseOptions;
|
|
3389
3399
|
}
|
|
3390
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
3400
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
3391
3401
|
const localVarHeaderParameter = {};
|
|
3392
3402
|
const localVarQueryParameter = {};
|
|
3393
3403
|
// authentication bearerAuth required
|
|
@@ -4050,6 +4060,34 @@ const ClubsApiAxiosParamCreator = function (configuration) {
|
|
|
4050
4060
|
options: localVarRequestOptions,
|
|
4051
4061
|
};
|
|
4052
4062
|
}),
|
|
4063
|
+
/**
|
|
4064
|
+
* Récupère les métadonnées publiques d\'un club
|
|
4065
|
+
* @param {string} clubId
|
|
4066
|
+
* @param {*} [options] Override http request option.
|
|
4067
|
+
* @throws {RequiredError}
|
|
4068
|
+
*/
|
|
4069
|
+
getClubMetadata: (clubId_1, ...args_1) => __awaiter(this, [clubId_1, ...args_1], void 0, function* (clubId, options = {}) {
|
|
4070
|
+
// verify required parameter 'clubId' is not null or undefined
|
|
4071
|
+
(0, common_1.assertParamExists)('getClubMetadata', 'clubId', clubId);
|
|
4072
|
+
const localVarPath = `/api/clubs/{clubId}/metadata`
|
|
4073
|
+
.replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
|
|
4074
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4075
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4076
|
+
let baseOptions;
|
|
4077
|
+
if (configuration) {
|
|
4078
|
+
baseOptions = configuration.baseOptions;
|
|
4079
|
+
}
|
|
4080
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
4081
|
+
const localVarHeaderParameter = {};
|
|
4082
|
+
const localVarQueryParameter = {};
|
|
4083
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4084
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4085
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4086
|
+
return {
|
|
4087
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4088
|
+
options: localVarRequestOptions,
|
|
4089
|
+
};
|
|
4090
|
+
}),
|
|
4053
4091
|
/**
|
|
4054
4092
|
*
|
|
4055
4093
|
* @param {string} clubId
|
|
@@ -4346,6 +4384,21 @@ const ClubsApiFp = function (configuration) {
|
|
|
4346
4384
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4347
4385
|
});
|
|
4348
4386
|
},
|
|
4387
|
+
/**
|
|
4388
|
+
* Récupère les métadonnées publiques d\'un club
|
|
4389
|
+
* @param {string} clubId
|
|
4390
|
+
* @param {*} [options] Override http request option.
|
|
4391
|
+
* @throws {RequiredError}
|
|
4392
|
+
*/
|
|
4393
|
+
getClubMetadata(clubId, options) {
|
|
4394
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4395
|
+
var _a, _b, _c;
|
|
4396
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubMetadata(clubId, options);
|
|
4397
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4398
|
+
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;
|
|
4399
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4400
|
+
});
|
|
4401
|
+
},
|
|
4349
4402
|
/**
|
|
4350
4403
|
*
|
|
4351
4404
|
* @param {string} clubId
|
|
@@ -4512,6 +4565,15 @@ const ClubsApiFactory = function (configuration, basePath, axios) {
|
|
|
4512
4565
|
getClubInfo(options) {
|
|
4513
4566
|
return localVarFp.getClubInfo(options).then((request) => request(axios, basePath));
|
|
4514
4567
|
},
|
|
4568
|
+
/**
|
|
4569
|
+
* Récupère les métadonnées publiques d\'un club
|
|
4570
|
+
* @param {ClubsApiGetClubMetadataRequest} requestParameters Request parameters.
|
|
4571
|
+
* @param {*} [options] Override http request option.
|
|
4572
|
+
* @throws {RequiredError}
|
|
4573
|
+
*/
|
|
4574
|
+
getClubMetadata(requestParameters, options) {
|
|
4575
|
+
return localVarFp.getClubMetadata(requestParameters.clubId, options).then((request) => request(axios, basePath));
|
|
4576
|
+
},
|
|
4515
4577
|
/**
|
|
4516
4578
|
*
|
|
4517
4579
|
* @param {ClubsApiGetClubPageInfoRequest} requestParameters Request parameters.
|
|
@@ -4641,6 +4703,16 @@ class ClubsApi extends base_1.BaseAPI {
|
|
|
4641
4703
|
getClubInfo(options) {
|
|
4642
4704
|
return (0, exports.ClubsApiFp)(this.configuration).getClubInfo(options).then((request) => request(this.axios, this.basePath));
|
|
4643
4705
|
}
|
|
4706
|
+
/**
|
|
4707
|
+
* Récupère les métadonnées publiques d\'un club
|
|
4708
|
+
* @param {ClubsApiGetClubMetadataRequest} requestParameters Request parameters.
|
|
4709
|
+
* @param {*} [options] Override http request option.
|
|
4710
|
+
* @throws {RequiredError}
|
|
4711
|
+
* @memberof ClubsApi
|
|
4712
|
+
*/
|
|
4713
|
+
getClubMetadata(requestParameters, options) {
|
|
4714
|
+
return (0, exports.ClubsApiFp)(this.configuration).getClubMetadata(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
|
|
4715
|
+
}
|
|
4644
4716
|
/**
|
|
4645
4717
|
*
|
|
4646
4718
|
* @param {ClubsApiGetClubPageInfoRequest} requestParameters Request parameters.
|
|
@@ -4944,6 +5016,37 @@ const ClubsManagerApiAxiosParamCreator = function (configuration) {
|
|
|
4944
5016
|
options: localVarRequestOptions,
|
|
4945
5017
|
};
|
|
4946
5018
|
}),
|
|
5019
|
+
/**
|
|
5020
|
+
* Supprime un membre d\'un club
|
|
5021
|
+
* @param {string} userId
|
|
5022
|
+
* @param {*} [options] Override http request option.
|
|
5023
|
+
* @throws {RequiredError}
|
|
5024
|
+
*/
|
|
5025
|
+
deleteClubMember: (userId_1, ...args_1) => __awaiter(this, [userId_1, ...args_1], void 0, function* (userId, options = {}) {
|
|
5026
|
+
// verify required parameter 'userId' is not null or undefined
|
|
5027
|
+
(0, common_1.assertParamExists)('deleteClubMember', 'userId', userId);
|
|
5028
|
+
const localVarPath = `/api/clubs/members/{userId}`
|
|
5029
|
+
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
|
5030
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5031
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5032
|
+
let baseOptions;
|
|
5033
|
+
if (configuration) {
|
|
5034
|
+
baseOptions = configuration.baseOptions;
|
|
5035
|
+
}
|
|
5036
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
5037
|
+
const localVarHeaderParameter = {};
|
|
5038
|
+
const localVarQueryParameter = {};
|
|
5039
|
+
// authentication bearerAuth required
|
|
5040
|
+
// http bearer authentication required
|
|
5041
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
5042
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
5043
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5044
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5045
|
+
return {
|
|
5046
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
5047
|
+
options: localVarRequestOptions,
|
|
5048
|
+
};
|
|
5049
|
+
}),
|
|
4947
5050
|
/**
|
|
4948
5051
|
* Supprime un terrain et ses créneaux futurs
|
|
4949
5052
|
* @param {string} courtId
|
|
@@ -5482,6 +5585,21 @@ const ClubsManagerApiFp = function (configuration) {
|
|
|
5482
5585
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5483
5586
|
});
|
|
5484
5587
|
},
|
|
5588
|
+
/**
|
|
5589
|
+
* Supprime un membre d\'un club
|
|
5590
|
+
* @param {string} userId
|
|
5591
|
+
* @param {*} [options] Override http request option.
|
|
5592
|
+
* @throws {RequiredError}
|
|
5593
|
+
*/
|
|
5594
|
+
deleteClubMember(userId, options) {
|
|
5595
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5596
|
+
var _a, _b, _c;
|
|
5597
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteClubMember(userId, options);
|
|
5598
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5599
|
+
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;
|
|
5600
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5601
|
+
});
|
|
5602
|
+
},
|
|
5485
5603
|
/**
|
|
5486
5604
|
* Supprime un terrain et ses créneaux futurs
|
|
5487
5605
|
* @param {string} courtId
|
|
@@ -5753,6 +5871,15 @@ const ClubsManagerApiFactory = function (configuration, basePath, axios) {
|
|
|
5753
5871
|
deleteActuality(requestParameters, options) {
|
|
5754
5872
|
return localVarFp.deleteActuality(requestParameters.actualityId, options).then((request) => request(axios, basePath));
|
|
5755
5873
|
},
|
|
5874
|
+
/**
|
|
5875
|
+
* Supprime un membre d\'un club
|
|
5876
|
+
* @param {ClubsManagerApiDeleteClubMemberRequest} requestParameters Request parameters.
|
|
5877
|
+
* @param {*} [options] Override http request option.
|
|
5878
|
+
* @throws {RequiredError}
|
|
5879
|
+
*/
|
|
5880
|
+
deleteClubMember(requestParameters, options) {
|
|
5881
|
+
return localVarFp.deleteClubMember(requestParameters.userId, options).then((request) => request(axios, basePath));
|
|
5882
|
+
},
|
|
5756
5883
|
/**
|
|
5757
5884
|
* Supprime un terrain et ses créneaux futurs
|
|
5758
5885
|
* @param {ClubsManagerApiDeleteCourtRequest} requestParameters Request parameters.
|
|
@@ -5949,6 +6076,16 @@ class ClubsManagerApi extends base_1.BaseAPI {
|
|
|
5949
6076
|
deleteActuality(requestParameters, options) {
|
|
5950
6077
|
return (0, exports.ClubsManagerApiFp)(this.configuration).deleteActuality(requestParameters.actualityId, options).then((request) => request(this.axios, this.basePath));
|
|
5951
6078
|
}
|
|
6079
|
+
/**
|
|
6080
|
+
* Supprime un membre d\'un club
|
|
6081
|
+
* @param {ClubsManagerApiDeleteClubMemberRequest} requestParameters Request parameters.
|
|
6082
|
+
* @param {*} [options] Override http request option.
|
|
6083
|
+
* @throws {RequiredError}
|
|
6084
|
+
* @memberof ClubsManagerApi
|
|
6085
|
+
*/
|
|
6086
|
+
deleteClubMember(requestParameters, options) {
|
|
6087
|
+
return (0, exports.ClubsManagerApiFp)(this.configuration).deleteClubMember(requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
|
|
6088
|
+
}
|
|
5952
6089
|
/**
|
|
5953
6090
|
* Supprime un terrain et ses créneaux futurs
|
|
5954
6091
|
* @param {ClubsManagerApiDeleteCourtRequest} requestParameters Request parameters.
|
|
@@ -6342,6 +6479,42 @@ const ClubsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
6342
6479
|
options: localVarRequestOptions,
|
|
6343
6480
|
};
|
|
6344
6481
|
}),
|
|
6482
|
+
/**
|
|
6483
|
+
*
|
|
6484
|
+
* @param {string} id
|
|
6485
|
+
* @param {UpdateUserCreditsRequest} updateUserCreditsRequest
|
|
6486
|
+
* @param {*} [options] Override http request option.
|
|
6487
|
+
* @throws {RequiredError}
|
|
6488
|
+
*/
|
|
6489
|
+
updateUserCreditsStaff: (id_1, updateUserCreditsRequest_1, ...args_1) => __awaiter(this, [id_1, updateUserCreditsRequest_1, ...args_1], void 0, function* (id, updateUserCreditsRequest, options = {}) {
|
|
6490
|
+
// verify required parameter 'id' is not null or undefined
|
|
6491
|
+
(0, common_1.assertParamExists)('updateUserCreditsStaff', 'id', id);
|
|
6492
|
+
// verify required parameter 'updateUserCreditsRequest' is not null or undefined
|
|
6493
|
+
(0, common_1.assertParamExists)('updateUserCreditsStaff', 'updateUserCreditsRequest', updateUserCreditsRequest);
|
|
6494
|
+
const localVarPath = `/api/clubs/staff/user-credits/{id}`
|
|
6495
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
6496
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6497
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6498
|
+
let baseOptions;
|
|
6499
|
+
if (configuration) {
|
|
6500
|
+
baseOptions = configuration.baseOptions;
|
|
6501
|
+
}
|
|
6502
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
6503
|
+
const localVarHeaderParameter = {};
|
|
6504
|
+
const localVarQueryParameter = {};
|
|
6505
|
+
// authentication bearerAuth required
|
|
6506
|
+
// http bearer authentication required
|
|
6507
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6508
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6509
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6510
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6511
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6512
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateUserCreditsRequest, localVarRequestOptions, configuration);
|
|
6513
|
+
return {
|
|
6514
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6515
|
+
options: localVarRequestOptions,
|
|
6516
|
+
};
|
|
6517
|
+
}),
|
|
6345
6518
|
};
|
|
6346
6519
|
};
|
|
6347
6520
|
exports.ClubsStaffApiAxiosParamCreator = ClubsStaffApiAxiosParamCreator;
|
|
@@ -6481,6 +6654,22 @@ const ClubsStaffApiFp = function (configuration) {
|
|
|
6481
6654
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6482
6655
|
});
|
|
6483
6656
|
},
|
|
6657
|
+
/**
|
|
6658
|
+
*
|
|
6659
|
+
* @param {string} id
|
|
6660
|
+
* @param {UpdateUserCreditsRequest} updateUserCreditsRequest
|
|
6661
|
+
* @param {*} [options] Override http request option.
|
|
6662
|
+
* @throws {RequiredError}
|
|
6663
|
+
*/
|
|
6664
|
+
updateUserCreditsStaff(id, updateUserCreditsRequest, options) {
|
|
6665
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6666
|
+
var _a, _b, _c;
|
|
6667
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateUserCreditsStaff(id, updateUserCreditsRequest, options);
|
|
6668
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
6669
|
+
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;
|
|
6670
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6671
|
+
});
|
|
6672
|
+
},
|
|
6484
6673
|
};
|
|
6485
6674
|
};
|
|
6486
6675
|
exports.ClubsStaffApiFp = ClubsStaffApiFp;
|
|
@@ -6565,6 +6754,15 @@ const ClubsStaffApiFactory = function (configuration, basePath, axios) {
|
|
|
6565
6754
|
getUserProfileStaff(requestParameters, options) {
|
|
6566
6755
|
return localVarFp.getUserProfileStaff(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
6567
6756
|
},
|
|
6757
|
+
/**
|
|
6758
|
+
*
|
|
6759
|
+
* @param {ClubsStaffApiUpdateUserCreditsStaffRequest} requestParameters Request parameters.
|
|
6760
|
+
* @param {*} [options] Override http request option.
|
|
6761
|
+
* @throws {RequiredError}
|
|
6762
|
+
*/
|
|
6763
|
+
updateUserCreditsStaff(requestParameters, options) {
|
|
6764
|
+
return localVarFp.updateUserCreditsStaff(requestParameters.id, requestParameters.updateUserCreditsRequest, options).then((request) => request(axios, basePath));
|
|
6765
|
+
},
|
|
6568
6766
|
};
|
|
6569
6767
|
};
|
|
6570
6768
|
exports.ClubsStaffApiFactory = ClubsStaffApiFactory;
|
|
@@ -6658,6 +6856,16 @@ class ClubsStaffApi extends base_1.BaseAPI {
|
|
|
6658
6856
|
getUserProfileStaff(requestParameters, options) {
|
|
6659
6857
|
return (0, exports.ClubsStaffApiFp)(this.configuration).getUserProfileStaff(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
6660
6858
|
}
|
|
6859
|
+
/**
|
|
6860
|
+
*
|
|
6861
|
+
* @param {ClubsStaffApiUpdateUserCreditsStaffRequest} requestParameters Request parameters.
|
|
6862
|
+
* @param {*} [options] Override http request option.
|
|
6863
|
+
* @throws {RequiredError}
|
|
6864
|
+
* @memberof ClubsStaffApi
|
|
6865
|
+
*/
|
|
6866
|
+
updateUserCreditsStaff(requestParameters, options) {
|
|
6867
|
+
return (0, exports.ClubsStaffApiFp)(this.configuration).updateUserCreditsStaff(requestParameters.id, requestParameters.updateUserCreditsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
6868
|
+
}
|
|
6661
6869
|
}
|
|
6662
6870
|
exports.ClubsStaffApi = ClubsStaffApi;
|
|
6663
6871
|
/**
|
|
@@ -7638,6 +7846,53 @@ const EventsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
7638
7846
|
options: localVarRequestOptions,
|
|
7639
7847
|
};
|
|
7640
7848
|
}),
|
|
7849
|
+
/**
|
|
7850
|
+
* Get events for the day view (entire week)
|
|
7851
|
+
* @param {string} [clubId]
|
|
7852
|
+
* @param {string} [date]
|
|
7853
|
+
* @param {GetDailyEventsVisibilityTypeEnum} [visibilityType]
|
|
7854
|
+
* @param {GetDailyEventsTypeEnum} [type]
|
|
7855
|
+
* @param {string} [sportId]
|
|
7856
|
+
* @param {*} [options] Override http request option.
|
|
7857
|
+
* @throws {RequiredError}
|
|
7858
|
+
*/
|
|
7859
|
+
getDailyEvents: (clubId_1, date_1, visibilityType_1, type_1, sportId_1, ...args_1) => __awaiter(this, [clubId_1, date_1, visibilityType_1, type_1, sportId_1, ...args_1], void 0, function* (clubId, date, visibilityType, type, sportId, options = {}) {
|
|
7860
|
+
const localVarPath = `/api/events/calendar/daily`;
|
|
7861
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7862
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7863
|
+
let baseOptions;
|
|
7864
|
+
if (configuration) {
|
|
7865
|
+
baseOptions = configuration.baseOptions;
|
|
7866
|
+
}
|
|
7867
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
7868
|
+
const localVarHeaderParameter = {};
|
|
7869
|
+
const localVarQueryParameter = {};
|
|
7870
|
+
// authentication bearerAuth required
|
|
7871
|
+
// http bearer authentication required
|
|
7872
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
7873
|
+
if (clubId !== undefined) {
|
|
7874
|
+
localVarQueryParameter['clubId'] = clubId;
|
|
7875
|
+
}
|
|
7876
|
+
if (date !== undefined) {
|
|
7877
|
+
localVarQueryParameter['date'] = date;
|
|
7878
|
+
}
|
|
7879
|
+
if (visibilityType !== undefined) {
|
|
7880
|
+
localVarQueryParameter['visibilityType'] = visibilityType;
|
|
7881
|
+
}
|
|
7882
|
+
if (type !== undefined) {
|
|
7883
|
+
localVarQueryParameter['type'] = type;
|
|
7884
|
+
}
|
|
7885
|
+
if (sportId !== undefined) {
|
|
7886
|
+
localVarQueryParameter['sportId'] = sportId;
|
|
7887
|
+
}
|
|
7888
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7889
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7890
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7891
|
+
return {
|
|
7892
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
7893
|
+
options: localVarRequestOptions,
|
|
7894
|
+
};
|
|
7895
|
+
}),
|
|
7641
7896
|
/**
|
|
7642
7897
|
* Get all events for a club (staff only)
|
|
7643
7898
|
* @param {*} [options] Override http request option.
|
|
@@ -7665,6 +7920,100 @@ const EventsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
7665
7920
|
options: localVarRequestOptions,
|
|
7666
7921
|
};
|
|
7667
7922
|
}),
|
|
7923
|
+
/**
|
|
7924
|
+
* Get events for the entire month view (including recurring occurrences)
|
|
7925
|
+
* @param {string} [clubId]
|
|
7926
|
+
* @param {string} [date]
|
|
7927
|
+
* @param {GetMonthlyEventsVisibilityTypeEnum} [visibilityType]
|
|
7928
|
+
* @param {GetMonthlyEventsTypeEnum} [type]
|
|
7929
|
+
* @param {string} [sportId]
|
|
7930
|
+
* @param {*} [options] Override http request option.
|
|
7931
|
+
* @throws {RequiredError}
|
|
7932
|
+
*/
|
|
7933
|
+
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 = {}) {
|
|
7934
|
+
const localVarPath = `/api/events/calendar/monthly`;
|
|
7935
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7936
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7937
|
+
let baseOptions;
|
|
7938
|
+
if (configuration) {
|
|
7939
|
+
baseOptions = configuration.baseOptions;
|
|
7940
|
+
}
|
|
7941
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
7942
|
+
const localVarHeaderParameter = {};
|
|
7943
|
+
const localVarQueryParameter = {};
|
|
7944
|
+
// authentication bearerAuth required
|
|
7945
|
+
// http bearer authentication required
|
|
7946
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
7947
|
+
if (clubId !== undefined) {
|
|
7948
|
+
localVarQueryParameter['clubId'] = clubId;
|
|
7949
|
+
}
|
|
7950
|
+
if (date !== undefined) {
|
|
7951
|
+
localVarQueryParameter['date'] = date;
|
|
7952
|
+
}
|
|
7953
|
+
if (visibilityType !== undefined) {
|
|
7954
|
+
localVarQueryParameter['visibilityType'] = visibilityType;
|
|
7955
|
+
}
|
|
7956
|
+
if (type !== undefined) {
|
|
7957
|
+
localVarQueryParameter['type'] = type;
|
|
7958
|
+
}
|
|
7959
|
+
if (sportId !== undefined) {
|
|
7960
|
+
localVarQueryParameter['sportId'] = sportId;
|
|
7961
|
+
}
|
|
7962
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7963
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7964
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7965
|
+
return {
|
|
7966
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
7967
|
+
options: localVarRequestOptions,
|
|
7968
|
+
};
|
|
7969
|
+
}),
|
|
7970
|
+
/**
|
|
7971
|
+
* Get events for the week view (30 day sliding window)
|
|
7972
|
+
* @param {string} [clubId]
|
|
7973
|
+
* @param {string} [date]
|
|
7974
|
+
* @param {GetWeeklyEventsVisibilityTypeEnum} [visibilityType]
|
|
7975
|
+
* @param {GetWeeklyEventsTypeEnum} [type]
|
|
7976
|
+
* @param {string} [sportId]
|
|
7977
|
+
* @param {*} [options] Override http request option.
|
|
7978
|
+
* @throws {RequiredError}
|
|
7979
|
+
*/
|
|
7980
|
+
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 = {}) {
|
|
7981
|
+
const localVarPath = `/api/events/calendar/weekly`;
|
|
7982
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7983
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7984
|
+
let baseOptions;
|
|
7985
|
+
if (configuration) {
|
|
7986
|
+
baseOptions = configuration.baseOptions;
|
|
7987
|
+
}
|
|
7988
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
7989
|
+
const localVarHeaderParameter = {};
|
|
7990
|
+
const localVarQueryParameter = {};
|
|
7991
|
+
// authentication bearerAuth required
|
|
7992
|
+
// http bearer authentication required
|
|
7993
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
7994
|
+
if (clubId !== undefined) {
|
|
7995
|
+
localVarQueryParameter['clubId'] = clubId;
|
|
7996
|
+
}
|
|
7997
|
+
if (date !== undefined) {
|
|
7998
|
+
localVarQueryParameter['date'] = date;
|
|
7999
|
+
}
|
|
8000
|
+
if (visibilityType !== undefined) {
|
|
8001
|
+
localVarQueryParameter['visibilityType'] = visibilityType;
|
|
8002
|
+
}
|
|
8003
|
+
if (type !== undefined) {
|
|
8004
|
+
localVarQueryParameter['type'] = type;
|
|
8005
|
+
}
|
|
8006
|
+
if (sportId !== undefined) {
|
|
8007
|
+
localVarQueryParameter['sportId'] = sportId;
|
|
8008
|
+
}
|
|
8009
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
8010
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8011
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8012
|
+
return {
|
|
8013
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
8014
|
+
options: localVarRequestOptions,
|
|
8015
|
+
};
|
|
8016
|
+
}),
|
|
7668
8017
|
};
|
|
7669
8018
|
};
|
|
7670
8019
|
exports.EventsStaffApiAxiosParamCreator = EventsStaffApiAxiosParamCreator;
|
|
@@ -7691,6 +8040,25 @@ const EventsStaffApiFp = function (configuration) {
|
|
|
7691
8040
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7692
8041
|
});
|
|
7693
8042
|
},
|
|
8043
|
+
/**
|
|
8044
|
+
* Get events for the day view (entire week)
|
|
8045
|
+
* @param {string} [clubId]
|
|
8046
|
+
* @param {string} [date]
|
|
8047
|
+
* @param {GetDailyEventsVisibilityTypeEnum} [visibilityType]
|
|
8048
|
+
* @param {GetDailyEventsTypeEnum} [type]
|
|
8049
|
+
* @param {string} [sportId]
|
|
8050
|
+
* @param {*} [options] Override http request option.
|
|
8051
|
+
* @throws {RequiredError}
|
|
8052
|
+
*/
|
|
8053
|
+
getDailyEvents(clubId, date, visibilityType, type, sportId, options) {
|
|
8054
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8055
|
+
var _a, _b, _c;
|
|
8056
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getDailyEvents(clubId, date, visibilityType, type, sportId, options);
|
|
8057
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8058
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EventsStaffApi.getDailyEvents']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8059
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8060
|
+
});
|
|
8061
|
+
},
|
|
7694
8062
|
/**
|
|
7695
8063
|
* Get all events for a club (staff only)
|
|
7696
8064
|
* @param {*} [options] Override http request option.
|
|
@@ -7705,6 +8073,44 @@ const EventsStaffApiFp = function (configuration) {
|
|
|
7705
8073
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7706
8074
|
});
|
|
7707
8075
|
},
|
|
8076
|
+
/**
|
|
8077
|
+
* Get events for the entire month view (including recurring occurrences)
|
|
8078
|
+
* @param {string} [clubId]
|
|
8079
|
+
* @param {string} [date]
|
|
8080
|
+
* @param {GetMonthlyEventsVisibilityTypeEnum} [visibilityType]
|
|
8081
|
+
* @param {GetMonthlyEventsTypeEnum} [type]
|
|
8082
|
+
* @param {string} [sportId]
|
|
8083
|
+
* @param {*} [options] Override http request option.
|
|
8084
|
+
* @throws {RequiredError}
|
|
8085
|
+
*/
|
|
8086
|
+
getMonthlyEvents(clubId, date, visibilityType, type, sportId, options) {
|
|
8087
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8088
|
+
var _a, _b, _c;
|
|
8089
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getMonthlyEvents(clubId, date, visibilityType, type, sportId, options);
|
|
8090
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8091
|
+
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;
|
|
8092
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8093
|
+
});
|
|
8094
|
+
},
|
|
8095
|
+
/**
|
|
8096
|
+
* Get events for the week view (30 day sliding window)
|
|
8097
|
+
* @param {string} [clubId]
|
|
8098
|
+
* @param {string} [date]
|
|
8099
|
+
* @param {GetWeeklyEventsVisibilityTypeEnum} [visibilityType]
|
|
8100
|
+
* @param {GetWeeklyEventsTypeEnum} [type]
|
|
8101
|
+
* @param {string} [sportId]
|
|
8102
|
+
* @param {*} [options] Override http request option.
|
|
8103
|
+
* @throws {RequiredError}
|
|
8104
|
+
*/
|
|
8105
|
+
getWeeklyEvents(clubId, date, visibilityType, type, sportId, options) {
|
|
8106
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8107
|
+
var _a, _b, _c;
|
|
8108
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getWeeklyEvents(clubId, date, visibilityType, type, sportId, options);
|
|
8109
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8110
|
+
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;
|
|
8111
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8112
|
+
});
|
|
8113
|
+
},
|
|
7708
8114
|
};
|
|
7709
8115
|
};
|
|
7710
8116
|
exports.EventsStaffApiFp = EventsStaffApiFp;
|
|
@@ -7724,6 +8130,15 @@ const EventsStaffApiFactory = function (configuration, basePath, axios) {
|
|
|
7724
8130
|
checkInEventParticipants(requestParameters, options) {
|
|
7725
8131
|
return localVarFp.checkInEventParticipants(requestParameters.eventBookingId, requestParameters.checkInEventParticipantsRequest, options).then((request) => request(axios, basePath));
|
|
7726
8132
|
},
|
|
8133
|
+
/**
|
|
8134
|
+
* Get events for the day view (entire week)
|
|
8135
|
+
* @param {EventsStaffApiGetDailyEventsRequest} requestParameters Request parameters.
|
|
8136
|
+
* @param {*} [options] Override http request option.
|
|
8137
|
+
* @throws {RequiredError}
|
|
8138
|
+
*/
|
|
8139
|
+
getDailyEvents(requestParameters = {}, options) {
|
|
8140
|
+
return localVarFp.getDailyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(axios, basePath));
|
|
8141
|
+
},
|
|
7727
8142
|
/**
|
|
7728
8143
|
* Get all events for a club (staff only)
|
|
7729
8144
|
* @param {*} [options] Override http request option.
|
|
@@ -7732,6 +8147,24 @@ const EventsStaffApiFactory = function (configuration, basePath, axios) {
|
|
|
7732
8147
|
getEventsByClub(options) {
|
|
7733
8148
|
return localVarFp.getEventsByClub(options).then((request) => request(axios, basePath));
|
|
7734
8149
|
},
|
|
8150
|
+
/**
|
|
8151
|
+
* Get events for the entire month view (including recurring occurrences)
|
|
8152
|
+
* @param {EventsStaffApiGetMonthlyEventsRequest} requestParameters Request parameters.
|
|
8153
|
+
* @param {*} [options] Override http request option.
|
|
8154
|
+
* @throws {RequiredError}
|
|
8155
|
+
*/
|
|
8156
|
+
getMonthlyEvents(requestParameters = {}, options) {
|
|
8157
|
+
return localVarFp.getMonthlyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(axios, basePath));
|
|
8158
|
+
},
|
|
8159
|
+
/**
|
|
8160
|
+
* Get events for the week view (30 day sliding window)
|
|
8161
|
+
* @param {EventsStaffApiGetWeeklyEventsRequest} requestParameters Request parameters.
|
|
8162
|
+
* @param {*} [options] Override http request option.
|
|
8163
|
+
* @throws {RequiredError}
|
|
8164
|
+
*/
|
|
8165
|
+
getWeeklyEvents(requestParameters = {}, options) {
|
|
8166
|
+
return localVarFp.getWeeklyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(axios, basePath));
|
|
8167
|
+
},
|
|
7735
8168
|
};
|
|
7736
8169
|
};
|
|
7737
8170
|
exports.EventsStaffApiFactory = EventsStaffApiFactory;
|
|
@@ -7752,6 +8185,16 @@ class EventsStaffApi extends base_1.BaseAPI {
|
|
|
7752
8185
|
checkInEventParticipants(requestParameters, options) {
|
|
7753
8186
|
return (0, exports.EventsStaffApiFp)(this.configuration).checkInEventParticipants(requestParameters.eventBookingId, requestParameters.checkInEventParticipantsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
7754
8187
|
}
|
|
8188
|
+
/**
|
|
8189
|
+
* Get events for the day view (entire week)
|
|
8190
|
+
* @param {EventsStaffApiGetDailyEventsRequest} requestParameters Request parameters.
|
|
8191
|
+
* @param {*} [options] Override http request option.
|
|
8192
|
+
* @throws {RequiredError}
|
|
8193
|
+
* @memberof EventsStaffApi
|
|
8194
|
+
*/
|
|
8195
|
+
getDailyEvents(requestParameters = {}, options) {
|
|
8196
|
+
return (0, exports.EventsStaffApiFp)(this.configuration).getDailyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
|
|
8197
|
+
}
|
|
7755
8198
|
/**
|
|
7756
8199
|
* Get all events for a club (staff only)
|
|
7757
8200
|
* @param {*} [options] Override http request option.
|
|
@@ -7761,8 +8204,73 @@ class EventsStaffApi extends base_1.BaseAPI {
|
|
|
7761
8204
|
getEventsByClub(options) {
|
|
7762
8205
|
return (0, exports.EventsStaffApiFp)(this.configuration).getEventsByClub(options).then((request) => request(this.axios, this.basePath));
|
|
7763
8206
|
}
|
|
8207
|
+
/**
|
|
8208
|
+
* Get events for the entire month view (including recurring occurrences)
|
|
8209
|
+
* @param {EventsStaffApiGetMonthlyEventsRequest} requestParameters Request parameters.
|
|
8210
|
+
* @param {*} [options] Override http request option.
|
|
8211
|
+
* @throws {RequiredError}
|
|
8212
|
+
* @memberof EventsStaffApi
|
|
8213
|
+
*/
|
|
8214
|
+
getMonthlyEvents(requestParameters = {}, options) {
|
|
8215
|
+
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));
|
|
8216
|
+
}
|
|
8217
|
+
/**
|
|
8218
|
+
* Get events for the week view (30 day sliding window)
|
|
8219
|
+
* @param {EventsStaffApiGetWeeklyEventsRequest} requestParameters Request parameters.
|
|
8220
|
+
* @param {*} [options] Override http request option.
|
|
8221
|
+
* @throws {RequiredError}
|
|
8222
|
+
* @memberof EventsStaffApi
|
|
8223
|
+
*/
|
|
8224
|
+
getWeeklyEvents(requestParameters = {}, options) {
|
|
8225
|
+
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));
|
|
8226
|
+
}
|
|
7764
8227
|
}
|
|
7765
8228
|
exports.EventsStaffApi = EventsStaffApi;
|
|
8229
|
+
/**
|
|
8230
|
+
* @export
|
|
8231
|
+
*/
|
|
8232
|
+
exports.GetDailyEventsVisibilityTypeEnum = {
|
|
8233
|
+
Public: 'public',
|
|
8234
|
+
Private: 'private',
|
|
8235
|
+
Invitation: 'invitation'
|
|
8236
|
+
};
|
|
8237
|
+
/**
|
|
8238
|
+
* @export
|
|
8239
|
+
*/
|
|
8240
|
+
exports.GetDailyEventsTypeEnum = {
|
|
8241
|
+
Event: 'event',
|
|
8242
|
+
Closure: 'closure'
|
|
8243
|
+
};
|
|
8244
|
+
/**
|
|
8245
|
+
* @export
|
|
8246
|
+
*/
|
|
8247
|
+
exports.GetMonthlyEventsVisibilityTypeEnum = {
|
|
8248
|
+
Public: 'public',
|
|
8249
|
+
Private: 'private',
|
|
8250
|
+
Invitation: 'invitation'
|
|
8251
|
+
};
|
|
8252
|
+
/**
|
|
8253
|
+
* @export
|
|
8254
|
+
*/
|
|
8255
|
+
exports.GetMonthlyEventsTypeEnum = {
|
|
8256
|
+
Event: 'event',
|
|
8257
|
+
Closure: 'closure'
|
|
8258
|
+
};
|
|
8259
|
+
/**
|
|
8260
|
+
* @export
|
|
8261
|
+
*/
|
|
8262
|
+
exports.GetWeeklyEventsVisibilityTypeEnum = {
|
|
8263
|
+
Public: 'public',
|
|
8264
|
+
Private: 'private',
|
|
8265
|
+
Invitation: 'invitation'
|
|
8266
|
+
};
|
|
8267
|
+
/**
|
|
8268
|
+
* @export
|
|
8269
|
+
*/
|
|
8270
|
+
exports.GetWeeklyEventsTypeEnum = {
|
|
8271
|
+
Event: 'event',
|
|
8272
|
+
Closure: 'closure'
|
|
8273
|
+
};
|
|
7766
8274
|
/**
|
|
7767
8275
|
* SportsManagerApi - axios parameter creator
|
|
7768
8276
|
* @export
|