@tennac-booking/sdk 1.0.107 → 1.0.109
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +1 -0
- package/README.md +5 -0
- package/api.ts +601 -2
- package/dist/api.d.ts +368 -2
- package/dist/api.js +373 -2
- package/dist/esm/api.d.ts +368 -2
- package/dist/esm/api.js +371 -0
- package/docs/ClubPlayerDetailResponse.md +2 -0
- package/docs/ClubSummary.md +8 -2
- package/docs/ClubsStaffApi.md +55 -0
- package/docs/CreateEventRequest.md +3 -1
- package/docs/EventsStaffApi.md +198 -0
- package/docs/UpdateUserCreditsRequest.md +20 -0
- package/package.json +1 -1
package/dist/api.js
CHANGED
|
@@ -24,8 +24,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
25
|
exports.UpdateEventRequestVisibilityTypeEnum = exports.UpdateEventRequestParticipationTypeEnum = exports.UpdateEventRequestRecurringTypeEnum = exports.UpdateEventRequestTypeEnum = exports.UpdateClubRoleRequestRoleEnum = exports.UpdateClubMemberRequestRoleEnum = exports.SurfaceType = exports.StripeStripeTaxCodeObjectEnum = exports.StripeStripeResponseStripeStripePriceObjectEnum = exports.StripeStripeProductType = exports.StripeStripeProductTaxCodeObjectEnum = exports.StripeStripeProductDefaultPriceObjectEnum = exports.StripeStripeProductObjectEnum = exports.StripeStripePriceType = exports.StripeStripePriceTransformQuantityRound = exports.StripeStripePriceTiersMode = exports.StripeStripePriceTaxBehavior = exports.StripeStripePriceRecurringUsageType = exports.StripeStripePriceRecurringInterval = exports.StripeStripePriceProductObjectEnum = exports.StripeStripePriceCurrencyOptionsTaxBehavior = exports.StripeStripePriceBillingScheme = exports.StripeStripePriceObjectEnum = exports.StripeStripeDeletedProductObjectEnum = exports.SportKey = exports.RegisterRequestBodyLocationTypeEnum = exports.PlayerCategoryId = exports.PlanInterval = exports.PaymentMethod = exports.InvoiceStatus = exports.IUserLocationTypeEnum = exports.Gender = exports.EventResponseVisibilityTypeEnum = exports.EventResponseParticipationTypeEnum = exports.EventResponseRecurringTypeEnum = exports.EventResponseTypeEnum = exports.DiscountType = exports.CreateEventRequestVisibilityTypeEnum = exports.CreateEventRequestParticipationTypeEnum = exports.CreateEventRequestRecurringTypeEnum = exports.CreateEventRequestTypeEnum = exports.CreateClubRoleRequestRoleEnum = exports.CourtStatus = exports.ClubRoleResponseRoleEnum = exports.ClientAccountOnboardingRequestSubscriptionTypeEnum = exports.ClientAccountOnboardingRequestBusinessTypeEnum = exports.CaptureResultStatusEnum = exports.CaptureResultTypeEnum = exports.BookingStatus = exports.BookingHistoryPopulatedPerformedByTypeEnum = void 0;
|
|
26
26
|
exports.ClubsApiAxiosParamCreator = exports.ClubSettingsStaffApi = exports.ClubSettingsStaffApiFactory = exports.ClubSettingsStaffApiFp = exports.ClubSettingsStaffApiAxiosParamCreator = exports.ClubSettingsManagerApi = exports.ClubSettingsManagerApiFactory = exports.ClubSettingsManagerApiFp = exports.ClubSettingsManagerApiAxiosParamCreator = exports.ClubRolesStaffApi = exports.ClubRolesStaffApiFactory = exports.ClubRolesStaffApiFp = exports.ClubRolesStaffApiAxiosParamCreator = exports.ClubRolesManagerApi = exports.ClubRolesManagerApiFactory = exports.ClubRolesManagerApiFp = exports.ClubRolesManagerApiAxiosParamCreator = exports.ClubAnalyticsStaffApi = exports.ClubAnalyticsStaffApiFactory = exports.ClubAnalyticsStaffApiFp = exports.ClubAnalyticsStaffApiAxiosParamCreator = exports.ClubAnalyticsApi = exports.ClubAnalyticsApiFactory = exports.ClubAnalyticsApiFp = exports.ClubAnalyticsApiAxiosParamCreator = exports.ClientAccountsApi = exports.ClientAccountsApiFactory = exports.ClientAccountsApiFp = exports.ClientAccountsApiAxiosParamCreator = exports.ClientApi = exports.ClientApiFactory = exports.ClientApiFp = exports.ClientApiAxiosParamCreator = exports.BookingsUserApi = exports.BookingsUserApiFactory = exports.BookingsUserApiFp = exports.BookingsUserApiAxiosParamCreator = exports.BookingsStaffApi = exports.BookingsStaffApiFactory = exports.BookingsStaffApiFp = exports.BookingsStaffApiAxiosParamCreator = exports.BookingsManagerApi = exports.BookingsManagerApiFactory = exports.BookingsManagerApiFp = exports.BookingsManagerApiAxiosParamCreator = exports.BookingsApi = exports.BookingsApiFactory = exports.BookingsApiFp = exports.BookingsApiAxiosParamCreator = exports.UserLocationSummaryTypeEnum = void 0;
|
|
27
|
-
exports.
|
|
28
|
-
exports.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.SubscriptionsUserApi = exports.SubscriptionsUserApiFactory = exports.SubscriptionsUserApiFp = void 0;
|
|
27
|
+
exports.SubscriptionsPublicApiFactory = exports.SubscriptionsPublicApiFp = exports.SubscriptionsPublicApiAxiosParamCreator = exports.SubscriptionsManagerApi = exports.SubscriptionsManagerApiFactory = exports.SubscriptionsManagerApiFp = exports.SubscriptionsManagerApiAxiosParamCreator = exports.SportsPublicApi = exports.SportsPublicApiFactory = exports.SportsPublicApiFp = exports.SportsPublicApiAxiosParamCreator = exports.SportsManagerApi = exports.SportsManagerApiFactory = exports.SportsManagerApiFp = exports.SportsManagerApiAxiosParamCreator = exports.GetWeeklyEventsTypeEnum = exports.GetWeeklyEventsVisibilityTypeEnum = exports.GetMonthlyEventsTypeEnum = exports.GetMonthlyEventsVisibilityTypeEnum = exports.GetDailyEventsTypeEnum = exports.GetDailyEventsVisibilityTypeEnum = exports.EventsStaffApi = exports.EventsStaffApiFactory = exports.EventsStaffApiFp = exports.EventsStaffApiAxiosParamCreator = exports.EventsManagerApi = exports.EventsManagerApiFactory = exports.EventsManagerApiFp = exports.EventsManagerApiAxiosParamCreator = exports.GetPublishedEventsByClubIdTypeEnum = exports.GetPublishedEventsByClubIdVisibilityTypeEnum = exports.EventsApi = exports.EventsApiFactory = exports.EventsApiFp = exports.EventsApiAxiosParamCreator = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.ClubsStaffApi = exports.ClubsStaffApiFactory = exports.ClubsStaffApiFp = exports.ClubsStaffApiAxiosParamCreator = exports.ClubsManagerApi = exports.ClubsManagerApiFactory = exports.ClubsManagerApiFp = exports.ClubsManagerApiAxiosParamCreator = exports.ClubsApi = exports.ClubsApiFactory = exports.ClubsApiFp = void 0;
|
|
28
|
+
exports.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.SubscriptionsUserApi = exports.SubscriptionsUserApiFactory = exports.SubscriptionsUserApiFp = exports.SubscriptionsUserApiAxiosParamCreator = exports.SubscriptionsStaffApi = exports.SubscriptionsStaffApiFactory = exports.SubscriptionsStaffApiFp = exports.SubscriptionsStaffApiAxiosParamCreator = exports.SubscriptionsPublicApi = void 0;
|
|
29
29
|
const axios_1 = require("axios");
|
|
30
30
|
// Some imports not used depending on template conditions
|
|
31
31
|
// @ts-ignore
|
|
@@ -6768,6 +6768,42 @@ const ClubsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
6768
6768
|
options: localVarRequestOptions,
|
|
6769
6769
|
};
|
|
6770
6770
|
}),
|
|
6771
|
+
/**
|
|
6772
|
+
*
|
|
6773
|
+
* @param {string} id
|
|
6774
|
+
* @param {UpdateUserCreditsRequest} updateUserCreditsRequest
|
|
6775
|
+
* @param {*} [options] Override http request option.
|
|
6776
|
+
* @throws {RequiredError}
|
|
6777
|
+
*/
|
|
6778
|
+
updateUserCreditsStaff: (id_1, updateUserCreditsRequest_1, ...args_1) => __awaiter(this, [id_1, updateUserCreditsRequest_1, ...args_1], void 0, function* (id, updateUserCreditsRequest, options = {}) {
|
|
6779
|
+
// verify required parameter 'id' is not null or undefined
|
|
6780
|
+
(0, common_1.assertParamExists)('updateUserCreditsStaff', 'id', id);
|
|
6781
|
+
// verify required parameter 'updateUserCreditsRequest' is not null or undefined
|
|
6782
|
+
(0, common_1.assertParamExists)('updateUserCreditsStaff', 'updateUserCreditsRequest', updateUserCreditsRequest);
|
|
6783
|
+
const localVarPath = `/api/clubs/staff/user-credits/{id}`
|
|
6784
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
6785
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6786
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6787
|
+
let baseOptions;
|
|
6788
|
+
if (configuration) {
|
|
6789
|
+
baseOptions = configuration.baseOptions;
|
|
6790
|
+
}
|
|
6791
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
6792
|
+
const localVarHeaderParameter = {};
|
|
6793
|
+
const localVarQueryParameter = {};
|
|
6794
|
+
// authentication bearerAuth required
|
|
6795
|
+
// http bearer authentication required
|
|
6796
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6797
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6798
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6799
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6800
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6801
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateUserCreditsRequest, localVarRequestOptions, configuration);
|
|
6802
|
+
return {
|
|
6803
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6804
|
+
options: localVarRequestOptions,
|
|
6805
|
+
};
|
|
6806
|
+
}),
|
|
6771
6807
|
};
|
|
6772
6808
|
};
|
|
6773
6809
|
exports.ClubsStaffApiAxiosParamCreator = ClubsStaffApiAxiosParamCreator;
|
|
@@ -6891,6 +6927,22 @@ const ClubsStaffApiFp = function (configuration) {
|
|
|
6891
6927
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6892
6928
|
});
|
|
6893
6929
|
},
|
|
6930
|
+
/**
|
|
6931
|
+
*
|
|
6932
|
+
* @param {string} id
|
|
6933
|
+
* @param {UpdateUserCreditsRequest} updateUserCreditsRequest
|
|
6934
|
+
* @param {*} [options] Override http request option.
|
|
6935
|
+
* @throws {RequiredError}
|
|
6936
|
+
*/
|
|
6937
|
+
updateUserCreditsStaff(id, updateUserCreditsRequest, options) {
|
|
6938
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6939
|
+
var _a, _b, _c;
|
|
6940
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateUserCreditsStaff(id, updateUserCreditsRequest, options);
|
|
6941
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
6942
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubsStaffApi.updateUserCreditsStaff']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
6943
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6944
|
+
});
|
|
6945
|
+
},
|
|
6894
6946
|
};
|
|
6895
6947
|
};
|
|
6896
6948
|
exports.ClubsStaffApiFp = ClubsStaffApiFp;
|
|
@@ -6966,6 +7018,15 @@ const ClubsStaffApiFactory = function (configuration, basePath, axios) {
|
|
|
6966
7018
|
getUserProfileStaff(requestParameters, options) {
|
|
6967
7019
|
return localVarFp.getUserProfileStaff(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
6968
7020
|
},
|
|
7021
|
+
/**
|
|
7022
|
+
*
|
|
7023
|
+
* @param {ClubsStaffApiUpdateUserCreditsStaffRequest} requestParameters Request parameters.
|
|
7024
|
+
* @param {*} [options] Override http request option.
|
|
7025
|
+
* @throws {RequiredError}
|
|
7026
|
+
*/
|
|
7027
|
+
updateUserCreditsStaff(requestParameters, options) {
|
|
7028
|
+
return localVarFp.updateUserCreditsStaff(requestParameters.id, requestParameters.updateUserCreditsRequest, options).then((request) => request(axios, basePath));
|
|
7029
|
+
},
|
|
6969
7030
|
};
|
|
6970
7031
|
};
|
|
6971
7032
|
exports.ClubsStaffApiFactory = ClubsStaffApiFactory;
|
|
@@ -7049,6 +7110,16 @@ class ClubsStaffApi extends base_1.BaseAPI {
|
|
|
7049
7110
|
getUserProfileStaff(requestParameters, options) {
|
|
7050
7111
|
return (0, exports.ClubsStaffApiFp)(this.configuration).getUserProfileStaff(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
7051
7112
|
}
|
|
7113
|
+
/**
|
|
7114
|
+
*
|
|
7115
|
+
* @param {ClubsStaffApiUpdateUserCreditsStaffRequest} requestParameters Request parameters.
|
|
7116
|
+
* @param {*} [options] Override http request option.
|
|
7117
|
+
* @throws {RequiredError}
|
|
7118
|
+
* @memberof ClubsStaffApi
|
|
7119
|
+
*/
|
|
7120
|
+
updateUserCreditsStaff(requestParameters, options) {
|
|
7121
|
+
return (0, exports.ClubsStaffApiFp)(this.configuration).updateUserCreditsStaff(requestParameters.id, requestParameters.updateUserCreditsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
7122
|
+
}
|
|
7052
7123
|
}
|
|
7053
7124
|
exports.ClubsStaffApi = ClubsStaffApi;
|
|
7054
7125
|
/**
|
|
@@ -7856,6 +7927,53 @@ exports.EventsManagerApi = EventsManagerApi;
|
|
|
7856
7927
|
*/
|
|
7857
7928
|
const EventsStaffApiAxiosParamCreator = function (configuration) {
|
|
7858
7929
|
return {
|
|
7930
|
+
/**
|
|
7931
|
+
* Get events for the day view (entire week)
|
|
7932
|
+
* @param {string} [clubId]
|
|
7933
|
+
* @param {string} [date]
|
|
7934
|
+
* @param {GetDailyEventsVisibilityTypeEnum} [visibilityType]
|
|
7935
|
+
* @param {GetDailyEventsTypeEnum} [type]
|
|
7936
|
+
* @param {string} [sportId]
|
|
7937
|
+
* @param {*} [options] Override http request option.
|
|
7938
|
+
* @throws {RequiredError}
|
|
7939
|
+
*/
|
|
7940
|
+
getDailyEvents: (clubId_1, date_1, visibilityType_1, type_1, sportId_1, ...args_1) => __awaiter(this, [clubId_1, date_1, visibilityType_1, type_1, sportId_1, ...args_1], void 0, function* (clubId, date, visibilityType, type, sportId, options = {}) {
|
|
7941
|
+
const localVarPath = `/api/events/calendar/daily`;
|
|
7942
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7943
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7944
|
+
let baseOptions;
|
|
7945
|
+
if (configuration) {
|
|
7946
|
+
baseOptions = configuration.baseOptions;
|
|
7947
|
+
}
|
|
7948
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
7949
|
+
const localVarHeaderParameter = {};
|
|
7950
|
+
const localVarQueryParameter = {};
|
|
7951
|
+
// authentication bearerAuth required
|
|
7952
|
+
// http bearer authentication required
|
|
7953
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
7954
|
+
if (clubId !== undefined) {
|
|
7955
|
+
localVarQueryParameter['clubId'] = clubId;
|
|
7956
|
+
}
|
|
7957
|
+
if (date !== undefined) {
|
|
7958
|
+
localVarQueryParameter['date'] = date;
|
|
7959
|
+
}
|
|
7960
|
+
if (visibilityType !== undefined) {
|
|
7961
|
+
localVarQueryParameter['visibilityType'] = visibilityType;
|
|
7962
|
+
}
|
|
7963
|
+
if (type !== undefined) {
|
|
7964
|
+
localVarQueryParameter['type'] = type;
|
|
7965
|
+
}
|
|
7966
|
+
if (sportId !== undefined) {
|
|
7967
|
+
localVarQueryParameter['sportId'] = sportId;
|
|
7968
|
+
}
|
|
7969
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7970
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7971
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7972
|
+
return {
|
|
7973
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
7974
|
+
options: localVarRequestOptions,
|
|
7975
|
+
};
|
|
7976
|
+
}),
|
|
7859
7977
|
/**
|
|
7860
7978
|
* Get all events for a club (staff only)
|
|
7861
7979
|
* @param {*} [options] Override http request option.
|
|
@@ -7883,6 +8001,100 @@ const EventsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
7883
8001
|
options: localVarRequestOptions,
|
|
7884
8002
|
};
|
|
7885
8003
|
}),
|
|
8004
|
+
/**
|
|
8005
|
+
* Get events for the entire month view (including recurring occurrences)
|
|
8006
|
+
* @param {string} [clubId]
|
|
8007
|
+
* @param {string} [date]
|
|
8008
|
+
* @param {GetMonthlyEventsVisibilityTypeEnum} [visibilityType]
|
|
8009
|
+
* @param {GetMonthlyEventsTypeEnum} [type]
|
|
8010
|
+
* @param {string} [sportId]
|
|
8011
|
+
* @param {*} [options] Override http request option.
|
|
8012
|
+
* @throws {RequiredError}
|
|
8013
|
+
*/
|
|
8014
|
+
getMonthlyEvents: (clubId_1, date_1, visibilityType_1, type_1, sportId_1, ...args_1) => __awaiter(this, [clubId_1, date_1, visibilityType_1, type_1, sportId_1, ...args_1], void 0, function* (clubId, date, visibilityType, type, sportId, options = {}) {
|
|
8015
|
+
const localVarPath = `/api/events/calendar/monthly`;
|
|
8016
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8017
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
8018
|
+
let baseOptions;
|
|
8019
|
+
if (configuration) {
|
|
8020
|
+
baseOptions = configuration.baseOptions;
|
|
8021
|
+
}
|
|
8022
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
8023
|
+
const localVarHeaderParameter = {};
|
|
8024
|
+
const localVarQueryParameter = {};
|
|
8025
|
+
// authentication bearerAuth required
|
|
8026
|
+
// http bearer authentication required
|
|
8027
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
8028
|
+
if (clubId !== undefined) {
|
|
8029
|
+
localVarQueryParameter['clubId'] = clubId;
|
|
8030
|
+
}
|
|
8031
|
+
if (date !== undefined) {
|
|
8032
|
+
localVarQueryParameter['date'] = date;
|
|
8033
|
+
}
|
|
8034
|
+
if (visibilityType !== undefined) {
|
|
8035
|
+
localVarQueryParameter['visibilityType'] = visibilityType;
|
|
8036
|
+
}
|
|
8037
|
+
if (type !== undefined) {
|
|
8038
|
+
localVarQueryParameter['type'] = type;
|
|
8039
|
+
}
|
|
8040
|
+
if (sportId !== undefined) {
|
|
8041
|
+
localVarQueryParameter['sportId'] = sportId;
|
|
8042
|
+
}
|
|
8043
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
8044
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8045
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8046
|
+
return {
|
|
8047
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
8048
|
+
options: localVarRequestOptions,
|
|
8049
|
+
};
|
|
8050
|
+
}),
|
|
8051
|
+
/**
|
|
8052
|
+
* Get events for the week view (30 day sliding window)
|
|
8053
|
+
* @param {string} [clubId]
|
|
8054
|
+
* @param {string} [date]
|
|
8055
|
+
* @param {GetWeeklyEventsVisibilityTypeEnum} [visibilityType]
|
|
8056
|
+
* @param {GetWeeklyEventsTypeEnum} [type]
|
|
8057
|
+
* @param {string} [sportId]
|
|
8058
|
+
* @param {*} [options] Override http request option.
|
|
8059
|
+
* @throws {RequiredError}
|
|
8060
|
+
*/
|
|
8061
|
+
getWeeklyEvents: (clubId_1, date_1, visibilityType_1, type_1, sportId_1, ...args_1) => __awaiter(this, [clubId_1, date_1, visibilityType_1, type_1, sportId_1, ...args_1], void 0, function* (clubId, date, visibilityType, type, sportId, options = {}) {
|
|
8062
|
+
const localVarPath = `/api/events/calendar/weekly`;
|
|
8063
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8064
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
8065
|
+
let baseOptions;
|
|
8066
|
+
if (configuration) {
|
|
8067
|
+
baseOptions = configuration.baseOptions;
|
|
8068
|
+
}
|
|
8069
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
8070
|
+
const localVarHeaderParameter = {};
|
|
8071
|
+
const localVarQueryParameter = {};
|
|
8072
|
+
// authentication bearerAuth required
|
|
8073
|
+
// http bearer authentication required
|
|
8074
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
8075
|
+
if (clubId !== undefined) {
|
|
8076
|
+
localVarQueryParameter['clubId'] = clubId;
|
|
8077
|
+
}
|
|
8078
|
+
if (date !== undefined) {
|
|
8079
|
+
localVarQueryParameter['date'] = date;
|
|
8080
|
+
}
|
|
8081
|
+
if (visibilityType !== undefined) {
|
|
8082
|
+
localVarQueryParameter['visibilityType'] = visibilityType;
|
|
8083
|
+
}
|
|
8084
|
+
if (type !== undefined) {
|
|
8085
|
+
localVarQueryParameter['type'] = type;
|
|
8086
|
+
}
|
|
8087
|
+
if (sportId !== undefined) {
|
|
8088
|
+
localVarQueryParameter['sportId'] = sportId;
|
|
8089
|
+
}
|
|
8090
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
8091
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8092
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8093
|
+
return {
|
|
8094
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
8095
|
+
options: localVarRequestOptions,
|
|
8096
|
+
};
|
|
8097
|
+
}),
|
|
7886
8098
|
};
|
|
7887
8099
|
};
|
|
7888
8100
|
exports.EventsStaffApiAxiosParamCreator = EventsStaffApiAxiosParamCreator;
|
|
@@ -7893,6 +8105,25 @@ exports.EventsStaffApiAxiosParamCreator = EventsStaffApiAxiosParamCreator;
|
|
|
7893
8105
|
const EventsStaffApiFp = function (configuration) {
|
|
7894
8106
|
const localVarAxiosParamCreator = (0, exports.EventsStaffApiAxiosParamCreator)(configuration);
|
|
7895
8107
|
return {
|
|
8108
|
+
/**
|
|
8109
|
+
* Get events for the day view (entire week)
|
|
8110
|
+
* @param {string} [clubId]
|
|
8111
|
+
* @param {string} [date]
|
|
8112
|
+
* @param {GetDailyEventsVisibilityTypeEnum} [visibilityType]
|
|
8113
|
+
* @param {GetDailyEventsTypeEnum} [type]
|
|
8114
|
+
* @param {string} [sportId]
|
|
8115
|
+
* @param {*} [options] Override http request option.
|
|
8116
|
+
* @throws {RequiredError}
|
|
8117
|
+
*/
|
|
8118
|
+
getDailyEvents(clubId, date, visibilityType, type, sportId, options) {
|
|
8119
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8120
|
+
var _a, _b, _c;
|
|
8121
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getDailyEvents(clubId, date, visibilityType, type, sportId, options);
|
|
8122
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8123
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EventsStaffApi.getDailyEvents']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8124
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8125
|
+
});
|
|
8126
|
+
},
|
|
7896
8127
|
/**
|
|
7897
8128
|
* Get all events for a club (staff only)
|
|
7898
8129
|
* @param {*} [options] Override http request option.
|
|
@@ -7907,6 +8138,44 @@ const EventsStaffApiFp = function (configuration) {
|
|
|
7907
8138
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7908
8139
|
});
|
|
7909
8140
|
},
|
|
8141
|
+
/**
|
|
8142
|
+
* Get events for the entire month view (including recurring occurrences)
|
|
8143
|
+
* @param {string} [clubId]
|
|
8144
|
+
* @param {string} [date]
|
|
8145
|
+
* @param {GetMonthlyEventsVisibilityTypeEnum} [visibilityType]
|
|
8146
|
+
* @param {GetMonthlyEventsTypeEnum} [type]
|
|
8147
|
+
* @param {string} [sportId]
|
|
8148
|
+
* @param {*} [options] Override http request option.
|
|
8149
|
+
* @throws {RequiredError}
|
|
8150
|
+
*/
|
|
8151
|
+
getMonthlyEvents(clubId, date, visibilityType, type, sportId, options) {
|
|
8152
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8153
|
+
var _a, _b, _c;
|
|
8154
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getMonthlyEvents(clubId, date, visibilityType, type, sportId, options);
|
|
8155
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8156
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EventsStaffApi.getMonthlyEvents']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8157
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8158
|
+
});
|
|
8159
|
+
},
|
|
8160
|
+
/**
|
|
8161
|
+
* Get events for the week view (30 day sliding window)
|
|
8162
|
+
* @param {string} [clubId]
|
|
8163
|
+
* @param {string} [date]
|
|
8164
|
+
* @param {GetWeeklyEventsVisibilityTypeEnum} [visibilityType]
|
|
8165
|
+
* @param {GetWeeklyEventsTypeEnum} [type]
|
|
8166
|
+
* @param {string} [sportId]
|
|
8167
|
+
* @param {*} [options] Override http request option.
|
|
8168
|
+
* @throws {RequiredError}
|
|
8169
|
+
*/
|
|
8170
|
+
getWeeklyEvents(clubId, date, visibilityType, type, sportId, options) {
|
|
8171
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8172
|
+
var _a, _b, _c;
|
|
8173
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getWeeklyEvents(clubId, date, visibilityType, type, sportId, options);
|
|
8174
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8175
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EventsStaffApi.getWeeklyEvents']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8176
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8177
|
+
});
|
|
8178
|
+
},
|
|
7910
8179
|
};
|
|
7911
8180
|
};
|
|
7912
8181
|
exports.EventsStaffApiFp = EventsStaffApiFp;
|
|
@@ -7917,6 +8186,15 @@ exports.EventsStaffApiFp = EventsStaffApiFp;
|
|
|
7917
8186
|
const EventsStaffApiFactory = function (configuration, basePath, axios) {
|
|
7918
8187
|
const localVarFp = (0, exports.EventsStaffApiFp)(configuration);
|
|
7919
8188
|
return {
|
|
8189
|
+
/**
|
|
8190
|
+
* Get events for the day view (entire week)
|
|
8191
|
+
* @param {EventsStaffApiGetDailyEventsRequest} requestParameters Request parameters.
|
|
8192
|
+
* @param {*} [options] Override http request option.
|
|
8193
|
+
* @throws {RequiredError}
|
|
8194
|
+
*/
|
|
8195
|
+
getDailyEvents(requestParameters = {}, options) {
|
|
8196
|
+
return localVarFp.getDailyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(axios, basePath));
|
|
8197
|
+
},
|
|
7920
8198
|
/**
|
|
7921
8199
|
* Get all events for a club (staff only)
|
|
7922
8200
|
* @param {*} [options] Override http request option.
|
|
@@ -7925,6 +8203,24 @@ const EventsStaffApiFactory = function (configuration, basePath, axios) {
|
|
|
7925
8203
|
getEventsByClub(options) {
|
|
7926
8204
|
return localVarFp.getEventsByClub(options).then((request) => request(axios, basePath));
|
|
7927
8205
|
},
|
|
8206
|
+
/**
|
|
8207
|
+
* Get events for the entire month view (including recurring occurrences)
|
|
8208
|
+
* @param {EventsStaffApiGetMonthlyEventsRequest} requestParameters Request parameters.
|
|
8209
|
+
* @param {*} [options] Override http request option.
|
|
8210
|
+
* @throws {RequiredError}
|
|
8211
|
+
*/
|
|
8212
|
+
getMonthlyEvents(requestParameters = {}, options) {
|
|
8213
|
+
return localVarFp.getMonthlyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(axios, basePath));
|
|
8214
|
+
},
|
|
8215
|
+
/**
|
|
8216
|
+
* Get events for the week view (30 day sliding window)
|
|
8217
|
+
* @param {EventsStaffApiGetWeeklyEventsRequest} requestParameters Request parameters.
|
|
8218
|
+
* @param {*} [options] Override http request option.
|
|
8219
|
+
* @throws {RequiredError}
|
|
8220
|
+
*/
|
|
8221
|
+
getWeeklyEvents(requestParameters = {}, options) {
|
|
8222
|
+
return localVarFp.getWeeklyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(axios, basePath));
|
|
8223
|
+
},
|
|
7928
8224
|
};
|
|
7929
8225
|
};
|
|
7930
8226
|
exports.EventsStaffApiFactory = EventsStaffApiFactory;
|
|
@@ -7935,6 +8231,16 @@ exports.EventsStaffApiFactory = EventsStaffApiFactory;
|
|
|
7935
8231
|
* @extends {BaseAPI}
|
|
7936
8232
|
*/
|
|
7937
8233
|
class EventsStaffApi extends base_1.BaseAPI {
|
|
8234
|
+
/**
|
|
8235
|
+
* Get events for the day view (entire week)
|
|
8236
|
+
* @param {EventsStaffApiGetDailyEventsRequest} requestParameters Request parameters.
|
|
8237
|
+
* @param {*} [options] Override http request option.
|
|
8238
|
+
* @throws {RequiredError}
|
|
8239
|
+
* @memberof EventsStaffApi
|
|
8240
|
+
*/
|
|
8241
|
+
getDailyEvents(requestParameters = {}, options) {
|
|
8242
|
+
return (0, exports.EventsStaffApiFp)(this.configuration).getDailyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
|
|
8243
|
+
}
|
|
7938
8244
|
/**
|
|
7939
8245
|
* Get all events for a club (staff only)
|
|
7940
8246
|
* @param {*} [options] Override http request option.
|
|
@@ -7944,8 +8250,73 @@ class EventsStaffApi extends base_1.BaseAPI {
|
|
|
7944
8250
|
getEventsByClub(options) {
|
|
7945
8251
|
return (0, exports.EventsStaffApiFp)(this.configuration).getEventsByClub(options).then((request) => request(this.axios, this.basePath));
|
|
7946
8252
|
}
|
|
8253
|
+
/**
|
|
8254
|
+
* Get events for the entire month view (including recurring occurrences)
|
|
8255
|
+
* @param {EventsStaffApiGetMonthlyEventsRequest} requestParameters Request parameters.
|
|
8256
|
+
* @param {*} [options] Override http request option.
|
|
8257
|
+
* @throws {RequiredError}
|
|
8258
|
+
* @memberof EventsStaffApi
|
|
8259
|
+
*/
|
|
8260
|
+
getMonthlyEvents(requestParameters = {}, options) {
|
|
8261
|
+
return (0, exports.EventsStaffApiFp)(this.configuration).getMonthlyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
|
|
8262
|
+
}
|
|
8263
|
+
/**
|
|
8264
|
+
* Get events for the week view (30 day sliding window)
|
|
8265
|
+
* @param {EventsStaffApiGetWeeklyEventsRequest} requestParameters Request parameters.
|
|
8266
|
+
* @param {*} [options] Override http request option.
|
|
8267
|
+
* @throws {RequiredError}
|
|
8268
|
+
* @memberof EventsStaffApi
|
|
8269
|
+
*/
|
|
8270
|
+
getWeeklyEvents(requestParameters = {}, options) {
|
|
8271
|
+
return (0, exports.EventsStaffApiFp)(this.configuration).getWeeklyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
|
|
8272
|
+
}
|
|
7947
8273
|
}
|
|
7948
8274
|
exports.EventsStaffApi = EventsStaffApi;
|
|
8275
|
+
/**
|
|
8276
|
+
* @export
|
|
8277
|
+
*/
|
|
8278
|
+
exports.GetDailyEventsVisibilityTypeEnum = {
|
|
8279
|
+
Public: 'public',
|
|
8280
|
+
Private: 'private',
|
|
8281
|
+
Invitation: 'invitation'
|
|
8282
|
+
};
|
|
8283
|
+
/**
|
|
8284
|
+
* @export
|
|
8285
|
+
*/
|
|
8286
|
+
exports.GetDailyEventsTypeEnum = {
|
|
8287
|
+
Event: 'event',
|
|
8288
|
+
Closure: 'closure'
|
|
8289
|
+
};
|
|
8290
|
+
/**
|
|
8291
|
+
* @export
|
|
8292
|
+
*/
|
|
8293
|
+
exports.GetMonthlyEventsVisibilityTypeEnum = {
|
|
8294
|
+
Public: 'public',
|
|
8295
|
+
Private: 'private',
|
|
8296
|
+
Invitation: 'invitation'
|
|
8297
|
+
};
|
|
8298
|
+
/**
|
|
8299
|
+
* @export
|
|
8300
|
+
*/
|
|
8301
|
+
exports.GetMonthlyEventsTypeEnum = {
|
|
8302
|
+
Event: 'event',
|
|
8303
|
+
Closure: 'closure'
|
|
8304
|
+
};
|
|
8305
|
+
/**
|
|
8306
|
+
* @export
|
|
8307
|
+
*/
|
|
8308
|
+
exports.GetWeeklyEventsVisibilityTypeEnum = {
|
|
8309
|
+
Public: 'public',
|
|
8310
|
+
Private: 'private',
|
|
8311
|
+
Invitation: 'invitation'
|
|
8312
|
+
};
|
|
8313
|
+
/**
|
|
8314
|
+
* @export
|
|
8315
|
+
*/
|
|
8316
|
+
exports.GetWeeklyEventsTypeEnum = {
|
|
8317
|
+
Event: 'event',
|
|
8318
|
+
Closure: 'closure'
|
|
8319
|
+
};
|
|
7949
8320
|
/**
|
|
7950
8321
|
* SportsManagerApi - axios parameter creator
|
|
7951
8322
|
* @export
|