@tennac-booking/sdk 1.0.118 → 1.0.119
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 +313 -309
- package/README.md +18 -14
- package/api.ts +1052 -635
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +828 -507
- package/dist/api.js +325 -233
- 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 +828 -507
- package/dist/esm/api.js +324 -232
- 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/BookingsStaffApi.md +117 -0
- package/docs/BookingsUserApi.md +1 -1
- package/docs/ClientApi.md +2 -49
- package/docs/ClientFullOnboardingResponseClub.md +0 -2
- package/docs/ClientOnboardingRequestBody.md +0 -2
- package/docs/ClubAnalyticsStaffApi.md +20 -4
- package/docs/ClubPlayersPaginatedResponse.md +28 -0
- package/docs/ClubsApi.md +2 -2
- package/docs/ClubsStaffApi.md +27 -2
- package/docs/CreateEventRequest.md +3 -1
- package/docs/EventResponse.md +5 -1
- package/docs/EventSponsor.md +24 -0
- package/docs/EventsApi.md +0 -115
- package/docs/JoinEventRequest.md +0 -2
- package/docs/JoinEventRequestPlayersPaymentMethodsInner.md +0 -2
- package/docs/JoinEventResponse.md +0 -14
- package/docs/SendSubscriptionInvitationRequest.md +22 -0
- package/docs/{CheckTeamNameAvailability200Response.md → SendSubscriptionInvitationResponse.md} +7 -5
- package/docs/StaffBookingCourtSummary.md +26 -0
- package/docs/StaffBookingCustomerPayload.md +28 -0
- package/docs/StaffBookingListItem.md +54 -0
- package/docs/StaffBookingPaymentState.md +18 -0
- package/docs/StaffBookingPaymentSummary.md +34 -0
- package/docs/StaffBookingSportSummary.md +24 -0
- package/docs/StaffBookingUserSummary.md +28 -0
- package/docs/StaffBookingsPaginatedResponse.md +28 -0
- package/docs/StaffCreateBookingRequest.md +26 -0
- package/docs/SubscriptionsStaffApi.md +55 -0
- package/docs/Team.md +1 -1
- package/docs/UpdateEventRequest.md +6 -0
- package/index.ts +1 -1
- package/package.json +1 -1
- package/docs/ClientSubscription.md +0 -31
- package/docs/ClientSubscriptionItem.md +0 -25
- package/docs/ClientSubscriptionsResponse.md +0 -21
- package/docs/EstimateEventPrice200Response.md +0 -32
- package/docs/EstimateEventPriceRequest.md +0 -26
- package/docs/EstimateEventPriceRequestSharesInner.md +0 -22
- package/docs/EventUser.md +0 -28
- package/docs/JoinEventResponseOnsitePaymentsInner.md +0 -24
package/dist/api.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* openapi.json
|
|
6
6
|
* Pandook API Documentation
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.
|
|
8
|
+
* The version of the OpenAPI document: 1.0.110
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -22,7 +22,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
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.
|
|
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.StaffBookingPaymentState = 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
26
|
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 = exports.UserLocationSummaryTypeEnum = void 0;
|
|
27
27
|
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 = exports.ClubsManagerApiFp = void 0;
|
|
28
28
|
exports.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.SubscriptionsUserApi = exports.SubscriptionsUserApiFactory = exports.SubscriptionsUserApiFp = exports.SubscriptionsUserApiAxiosParamCreator = exports.SubscriptionsStaffApi = void 0;
|
|
@@ -69,10 +69,6 @@ exports.CaptureResultStatusEnum = {
|
|
|
69
69
|
Captured: 'captured',
|
|
70
70
|
Failed: 'failed'
|
|
71
71
|
};
|
|
72
|
-
exports.ClientOnboardingRequestBodyClubTypeEnum = {
|
|
73
|
-
Public: 'public',
|
|
74
|
-
School: 'school'
|
|
75
|
-
};
|
|
76
72
|
exports.ClubRoleResponseRoleEnum = {
|
|
77
73
|
Admin: 'admin',
|
|
78
74
|
Manager: 'manager',
|
|
@@ -218,6 +214,19 @@ exports.SportKey = {
|
|
|
218
214
|
Pickleball: 'Pickleball',
|
|
219
215
|
Autres: 'Autres'
|
|
220
216
|
};
|
|
217
|
+
/**
|
|
218
|
+
*
|
|
219
|
+
* @export
|
|
220
|
+
* @enum {string}
|
|
221
|
+
*/
|
|
222
|
+
exports.StaffBookingPaymentState = {
|
|
223
|
+
None: 'none',
|
|
224
|
+
Paid: 'paid',
|
|
225
|
+
Pending: 'pending',
|
|
226
|
+
Authorized: 'authorized',
|
|
227
|
+
Failed: 'failed',
|
|
228
|
+
Partial: 'partial'
|
|
229
|
+
};
|
|
221
230
|
exports.StripeStripeDeletedProductObjectEnum = {
|
|
222
231
|
Product: 'product'
|
|
223
232
|
};
|
|
@@ -866,6 +875,38 @@ const BookingsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
866
875
|
options: localVarRequestOptions,
|
|
867
876
|
};
|
|
868
877
|
}),
|
|
878
|
+
/**
|
|
879
|
+
* Créer une réservation pour un joueur depuis l\'espace staff
|
|
880
|
+
* @param {StaffCreateBookingRequest} staffCreateBookingRequest
|
|
881
|
+
* @param {*} [options] Override http request option.
|
|
882
|
+
* @throws {RequiredError}
|
|
883
|
+
*/
|
|
884
|
+
createStaffBooking: (staffCreateBookingRequest_1, ...args_1) => __awaiter(this, [staffCreateBookingRequest_1, ...args_1], void 0, function* (staffCreateBookingRequest, options = {}) {
|
|
885
|
+
// verify required parameter 'staffCreateBookingRequest' is not null or undefined
|
|
886
|
+
(0, common_1.assertParamExists)('createStaffBooking', 'staffCreateBookingRequest', staffCreateBookingRequest);
|
|
887
|
+
const localVarPath = `/api/bookings/staff`;
|
|
888
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
889
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
890
|
+
let baseOptions;
|
|
891
|
+
if (configuration) {
|
|
892
|
+
baseOptions = configuration.baseOptions;
|
|
893
|
+
}
|
|
894
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
895
|
+
const localVarHeaderParameter = {};
|
|
896
|
+
const localVarQueryParameter = {};
|
|
897
|
+
// authentication bearerAuth required
|
|
898
|
+
// http bearer authentication required
|
|
899
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
900
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
901
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
902
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
903
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
904
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(staffCreateBookingRequest, localVarRequestOptions, configuration);
|
|
905
|
+
return {
|
|
906
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
907
|
+
options: localVarRequestOptions,
|
|
908
|
+
};
|
|
909
|
+
}),
|
|
869
910
|
/**
|
|
870
911
|
* Obtenir une réservation par ID
|
|
871
912
|
* @param {string} bookingId
|
|
@@ -1021,6 +1062,53 @@ const BookingsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
1021
1062
|
options: localVarRequestOptions,
|
|
1022
1063
|
};
|
|
1023
1064
|
}),
|
|
1065
|
+
/**
|
|
1066
|
+
* Liste paginée des réservations du club pour le staff
|
|
1067
|
+
* @param {number} [page]
|
|
1068
|
+
* @param {number} [pageSize]
|
|
1069
|
+
* @param {string} [search]
|
|
1070
|
+
* @param {string} [filters]
|
|
1071
|
+
* @param {string} [sorting]
|
|
1072
|
+
* @param {*} [options] Override http request option.
|
|
1073
|
+
* @throws {RequiredError}
|
|
1074
|
+
*/
|
|
1075
|
+
listClubBookings: (page_1, pageSize_1, search_1, filters_1, sorting_1, ...args_1) => __awaiter(this, [page_1, pageSize_1, search_1, filters_1, sorting_1, ...args_1], void 0, function* (page, pageSize, search, filters, sorting, options = {}) {
|
|
1076
|
+
const localVarPath = `/api/bookings/staff`;
|
|
1077
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1078
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1079
|
+
let baseOptions;
|
|
1080
|
+
if (configuration) {
|
|
1081
|
+
baseOptions = configuration.baseOptions;
|
|
1082
|
+
}
|
|
1083
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1084
|
+
const localVarHeaderParameter = {};
|
|
1085
|
+
const localVarQueryParameter = {};
|
|
1086
|
+
// authentication bearerAuth required
|
|
1087
|
+
// http bearer authentication required
|
|
1088
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1089
|
+
if (page !== undefined) {
|
|
1090
|
+
localVarQueryParameter['page'] = page;
|
|
1091
|
+
}
|
|
1092
|
+
if (pageSize !== undefined) {
|
|
1093
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
1094
|
+
}
|
|
1095
|
+
if (search !== undefined) {
|
|
1096
|
+
localVarQueryParameter['search'] = search;
|
|
1097
|
+
}
|
|
1098
|
+
if (filters !== undefined) {
|
|
1099
|
+
localVarQueryParameter['filters'] = filters;
|
|
1100
|
+
}
|
|
1101
|
+
if (sorting !== undefined) {
|
|
1102
|
+
localVarQueryParameter['sorting'] = sorting;
|
|
1103
|
+
}
|
|
1104
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1105
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1106
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1107
|
+
return {
|
|
1108
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1109
|
+
options: localVarRequestOptions,
|
|
1110
|
+
};
|
|
1111
|
+
}),
|
|
1024
1112
|
};
|
|
1025
1113
|
};
|
|
1026
1114
|
exports.BookingsStaffApiAxiosParamCreator = BookingsStaffApiAxiosParamCreator;
|
|
@@ -1047,6 +1135,21 @@ const BookingsStaffApiFp = function (configuration) {
|
|
|
1047
1135
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1048
1136
|
});
|
|
1049
1137
|
},
|
|
1138
|
+
/**
|
|
1139
|
+
* Créer une réservation pour un joueur depuis l\'espace staff
|
|
1140
|
+
* @param {StaffCreateBookingRequest} staffCreateBookingRequest
|
|
1141
|
+
* @param {*} [options] Override http request option.
|
|
1142
|
+
* @throws {RequiredError}
|
|
1143
|
+
*/
|
|
1144
|
+
createStaffBooking(staffCreateBookingRequest, options) {
|
|
1145
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1146
|
+
var _a, _b, _c;
|
|
1147
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createStaffBooking(staffCreateBookingRequest, options);
|
|
1148
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1149
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsStaffApi.createStaffBooking']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1150
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1151
|
+
});
|
|
1152
|
+
},
|
|
1050
1153
|
/**
|
|
1051
1154
|
* Obtenir une réservation par ID
|
|
1052
1155
|
* @param {string} bookingId
|
|
@@ -1122,6 +1225,25 @@ const BookingsStaffApiFp = function (configuration) {
|
|
|
1122
1225
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1123
1226
|
});
|
|
1124
1227
|
},
|
|
1228
|
+
/**
|
|
1229
|
+
* Liste paginée des réservations du club pour le staff
|
|
1230
|
+
* @param {number} [page]
|
|
1231
|
+
* @param {number} [pageSize]
|
|
1232
|
+
* @param {string} [search]
|
|
1233
|
+
* @param {string} [filters]
|
|
1234
|
+
* @param {string} [sorting]
|
|
1235
|
+
* @param {*} [options] Override http request option.
|
|
1236
|
+
* @throws {RequiredError}
|
|
1237
|
+
*/
|
|
1238
|
+
listClubBookings(page, pageSize, search, filters, sorting, options) {
|
|
1239
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1240
|
+
var _a, _b, _c;
|
|
1241
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listClubBookings(page, pageSize, search, filters, sorting, options);
|
|
1242
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1243
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsStaffApi.listClubBookings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1244
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1245
|
+
});
|
|
1246
|
+
},
|
|
1125
1247
|
};
|
|
1126
1248
|
};
|
|
1127
1249
|
exports.BookingsStaffApiFp = BookingsStaffApiFp;
|
|
@@ -1141,6 +1263,15 @@ const BookingsStaffApiFactory = function (configuration, basePath, axios) {
|
|
|
1141
1263
|
checkInPlayers(requestParameters, options) {
|
|
1142
1264
|
return localVarFp.checkInPlayers(requestParameters.bookingId, requestParameters.checkInPlayersRequest, options).then((request) => request(axios, basePath));
|
|
1143
1265
|
},
|
|
1266
|
+
/**
|
|
1267
|
+
* Créer une réservation pour un joueur depuis l\'espace staff
|
|
1268
|
+
* @param {BookingsStaffApiCreateStaffBookingRequest} requestParameters Request parameters.
|
|
1269
|
+
* @param {*} [options] Override http request option.
|
|
1270
|
+
* @throws {RequiredError}
|
|
1271
|
+
*/
|
|
1272
|
+
createStaffBooking(requestParameters, options) {
|
|
1273
|
+
return localVarFp.createStaffBooking(requestParameters.staffCreateBookingRequest, options).then((request) => request(axios, basePath));
|
|
1274
|
+
},
|
|
1144
1275
|
/**
|
|
1145
1276
|
* Obtenir une réservation par ID
|
|
1146
1277
|
* @param {BookingsStaffApiGetBookingByIdRequest} requestParameters Request parameters.
|
|
@@ -1186,6 +1317,15 @@ const BookingsStaffApiFactory = function (configuration, basePath, axios) {
|
|
|
1186
1317
|
getWeeklyBookings(requestParameters, options) {
|
|
1187
1318
|
return localVarFp.getWeeklyBookings(requestParameters.weekId, options).then((request) => request(axios, basePath));
|
|
1188
1319
|
},
|
|
1320
|
+
/**
|
|
1321
|
+
* Liste paginée des réservations du club pour le staff
|
|
1322
|
+
* @param {BookingsStaffApiListClubBookingsRequest} requestParameters Request parameters.
|
|
1323
|
+
* @param {*} [options] Override http request option.
|
|
1324
|
+
* @throws {RequiredError}
|
|
1325
|
+
*/
|
|
1326
|
+
listClubBookings(requestParameters = {}, options) {
|
|
1327
|
+
return localVarFp.listClubBookings(requestParameters.page, requestParameters.pageSize, requestParameters.search, requestParameters.filters, requestParameters.sorting, options).then((request) => request(axios, basePath));
|
|
1328
|
+
},
|
|
1189
1329
|
};
|
|
1190
1330
|
};
|
|
1191
1331
|
exports.BookingsStaffApiFactory = BookingsStaffApiFactory;
|
|
@@ -1206,6 +1346,16 @@ class BookingsStaffApi extends base_1.BaseAPI {
|
|
|
1206
1346
|
checkInPlayers(requestParameters, options) {
|
|
1207
1347
|
return (0, exports.BookingsStaffApiFp)(this.configuration).checkInPlayers(requestParameters.bookingId, requestParameters.checkInPlayersRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1208
1348
|
}
|
|
1349
|
+
/**
|
|
1350
|
+
* Créer une réservation pour un joueur depuis l\'espace staff
|
|
1351
|
+
* @param {BookingsStaffApiCreateStaffBookingRequest} requestParameters Request parameters.
|
|
1352
|
+
* @param {*} [options] Override http request option.
|
|
1353
|
+
* @throws {RequiredError}
|
|
1354
|
+
* @memberof BookingsStaffApi
|
|
1355
|
+
*/
|
|
1356
|
+
createStaffBooking(requestParameters, options) {
|
|
1357
|
+
return (0, exports.BookingsStaffApiFp)(this.configuration).createStaffBooking(requestParameters.staffCreateBookingRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1358
|
+
}
|
|
1209
1359
|
/**
|
|
1210
1360
|
* Obtenir une réservation par ID
|
|
1211
1361
|
* @param {BookingsStaffApiGetBookingByIdRequest} requestParameters Request parameters.
|
|
@@ -1256,6 +1406,16 @@ class BookingsStaffApi extends base_1.BaseAPI {
|
|
|
1256
1406
|
getWeeklyBookings(requestParameters, options) {
|
|
1257
1407
|
return (0, exports.BookingsStaffApiFp)(this.configuration).getWeeklyBookings(requestParameters.weekId, options).then((request) => request(this.axios, this.basePath));
|
|
1258
1408
|
}
|
|
1409
|
+
/**
|
|
1410
|
+
* Liste paginée des réservations du club pour le staff
|
|
1411
|
+
* @param {BookingsStaffApiListClubBookingsRequest} requestParameters Request parameters.
|
|
1412
|
+
* @param {*} [options] Override http request option.
|
|
1413
|
+
* @throws {RequiredError}
|
|
1414
|
+
* @memberof BookingsStaffApi
|
|
1415
|
+
*/
|
|
1416
|
+
listClubBookings(requestParameters = {}, options) {
|
|
1417
|
+
return (0, exports.BookingsStaffApiFp)(this.configuration).listClubBookings(requestParameters.page, requestParameters.pageSize, requestParameters.search, requestParameters.filters, requestParameters.sorting, options).then((request) => request(this.axios, this.basePath));
|
|
1418
|
+
}
|
|
1259
1419
|
}
|
|
1260
1420
|
exports.BookingsStaffApi = BookingsStaffApi;
|
|
1261
1421
|
/**
|
|
@@ -1296,7 +1456,7 @@ const BookingsUserApiAxiosParamCreator = function (configuration) {
|
|
|
1296
1456
|
};
|
|
1297
1457
|
}),
|
|
1298
1458
|
/**
|
|
1299
|
-
* Créer une réservation
|
|
1459
|
+
* Créer une réservation Gère tous les scénarios de paiement (créateur paie tout, paiement divisé, gratuit)
|
|
1300
1460
|
* @param {CreateBookingRequest} createBookingRequest
|
|
1301
1461
|
* @param {*} [options] Override http request option.
|
|
1302
1462
|
* @throws {RequiredError}
|
|
@@ -1353,7 +1513,7 @@ const BookingsUserApiFp = function (configuration) {
|
|
|
1353
1513
|
});
|
|
1354
1514
|
},
|
|
1355
1515
|
/**
|
|
1356
|
-
* Créer une réservation
|
|
1516
|
+
* Créer une réservation Gère tous les scénarios de paiement (créateur paie tout, paiement divisé, gratuit)
|
|
1357
1517
|
* @param {CreateBookingRequest} createBookingRequest
|
|
1358
1518
|
* @param {*} [options] Override http request option.
|
|
1359
1519
|
* @throws {RequiredError}
|
|
@@ -1387,7 +1547,7 @@ const BookingsUserApiFactory = function (configuration, basePath, axios) {
|
|
|
1387
1547
|
return localVarFp.cancelBooking(requestParameters.bookingId, options).then((request) => request(axios, basePath));
|
|
1388
1548
|
},
|
|
1389
1549
|
/**
|
|
1390
|
-
* Créer une réservation
|
|
1550
|
+
* Créer une réservation Gère tous les scénarios de paiement (créateur paie tout, paiement divisé, gratuit)
|
|
1391
1551
|
* @param {BookingsUserApiCreateBookingRequest} requestParameters Request parameters.
|
|
1392
1552
|
* @param {*} [options] Override http request option.
|
|
1393
1553
|
* @throws {RequiredError}
|
|
@@ -1416,7 +1576,7 @@ class BookingsUserApi extends base_1.BaseAPI {
|
|
|
1416
1576
|
return (0, exports.BookingsUserApiFp)(this.configuration).cancelBooking(requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
|
|
1417
1577
|
}
|
|
1418
1578
|
/**
|
|
1419
|
-
* Créer une réservation
|
|
1579
|
+
* Créer une réservation Gère tous les scénarios de paiement (créateur paie tout, paiement divisé, gratuit)
|
|
1420
1580
|
* @param {BookingsUserApiCreateBookingRequest} requestParameters Request parameters.
|
|
1421
1581
|
* @param {*} [options] Override http request option.
|
|
1422
1582
|
* @throws {RequiredError}
|
|
@@ -1434,7 +1594,7 @@ exports.BookingsUserApi = BookingsUserApi;
|
|
|
1434
1594
|
const ClientApiAxiosParamCreator = function (configuration) {
|
|
1435
1595
|
return {
|
|
1436
1596
|
/**
|
|
1437
|
-
* Enregistre un nouvel utilisateur client
|
|
1597
|
+
* Enregistre un nouvel utilisateur client - Crée l\'utilisateur avec un Stripe Customer
|
|
1438
1598
|
* @param {ClientRegisterRequest} clientRegisterRequest
|
|
1439
1599
|
* @param {*} [options] Override http request option.
|
|
1440
1600
|
* @throws {RequiredError}
|
|
@@ -1462,33 +1622,6 @@ const ClientApiAxiosParamCreator = function (configuration) {
|
|
|
1462
1622
|
options: localVarRequestOptions,
|
|
1463
1623
|
};
|
|
1464
1624
|
}),
|
|
1465
|
-
/**
|
|
1466
|
-
* Récupère les abonnements Stripe actifs du compte client de l\'utilisateur courant
|
|
1467
|
-
* @param {*} [options] Override http request option.
|
|
1468
|
-
* @throws {RequiredError}
|
|
1469
|
-
*/
|
|
1470
|
-
getClientSubscriptions: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
1471
|
-
const localVarPath = `/clients/subscriptions`;
|
|
1472
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1473
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1474
|
-
let baseOptions;
|
|
1475
|
-
if (configuration) {
|
|
1476
|
-
baseOptions = configuration.baseOptions;
|
|
1477
|
-
}
|
|
1478
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1479
|
-
const localVarHeaderParameter = {};
|
|
1480
|
-
const localVarQueryParameter = {};
|
|
1481
|
-
// authentication clientAuth required
|
|
1482
|
-
// http bearer authentication required
|
|
1483
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1484
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1485
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1486
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1487
|
-
return {
|
|
1488
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1489
|
-
options: localVarRequestOptions,
|
|
1490
|
-
};
|
|
1491
|
-
}),
|
|
1492
1625
|
/**
|
|
1493
1626
|
* Récupère la liste des clubs gérés par l\'utilisateur authentifié
|
|
1494
1627
|
* @param {*} [options] Override http request option.
|
|
@@ -1517,7 +1650,7 @@ const ClientApiAxiosParamCreator = function (configuration) {
|
|
|
1517
1650
|
};
|
|
1518
1651
|
}),
|
|
1519
1652
|
/**
|
|
1520
|
-
* Enregistre un nouveau club pour la plateforme
|
|
1653
|
+
* Enregistre un nouveau club pour la plateforme - Crée un compte Stripe Connect Express - Crée le club dans la base de données - Assigne l\'utilisateur comme manager du club - Crée les paramètres par défaut du club - Envoie le lien d\'onboarding Stripe par email
|
|
1521
1654
|
* @param {ClientOnboardingRequestBody} clientOnboardingRequestBody Les données du club à créer
|
|
1522
1655
|
* @param {*} [options] Override http request option.
|
|
1523
1656
|
* @throws {RequiredError}
|
|
@@ -1559,7 +1692,7 @@ const ClientApiFp = function (configuration) {
|
|
|
1559
1692
|
const localVarAxiosParamCreator = (0, exports.ClientApiAxiosParamCreator)(configuration);
|
|
1560
1693
|
return {
|
|
1561
1694
|
/**
|
|
1562
|
-
* Enregistre un nouvel utilisateur client
|
|
1695
|
+
* Enregistre un nouvel utilisateur client - Crée l\'utilisateur avec un Stripe Customer
|
|
1563
1696
|
* @param {ClientRegisterRequest} clientRegisterRequest
|
|
1564
1697
|
* @param {*} [options] Override http request option.
|
|
1565
1698
|
* @throws {RequiredError}
|
|
@@ -1573,20 +1706,6 @@ const ClientApiFp = function (configuration) {
|
|
|
1573
1706
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1574
1707
|
});
|
|
1575
1708
|
},
|
|
1576
|
-
/**
|
|
1577
|
-
* Récupère les abonnements Stripe actifs du compte client de l\'utilisateur courant
|
|
1578
|
-
* @param {*} [options] Override http request option.
|
|
1579
|
-
* @throws {RequiredError}
|
|
1580
|
-
*/
|
|
1581
|
-
getClientSubscriptions(options) {
|
|
1582
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1583
|
-
var _a, _b, _c;
|
|
1584
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClientSubscriptions(options);
|
|
1585
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1586
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClientApi.getClientSubscriptions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1587
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1588
|
-
});
|
|
1589
|
-
},
|
|
1590
1709
|
/**
|
|
1591
1710
|
* Récupère la liste des clubs gérés par l\'utilisateur authentifié
|
|
1592
1711
|
* @param {*} [options] Override http request option.
|
|
@@ -1602,7 +1721,7 @@ const ClientApiFp = function (configuration) {
|
|
|
1602
1721
|
});
|
|
1603
1722
|
},
|
|
1604
1723
|
/**
|
|
1605
|
-
* Enregistre un nouveau club pour la plateforme
|
|
1724
|
+
* Enregistre un nouveau club pour la plateforme - Crée un compte Stripe Connect Express - Crée le club dans la base de données - Assigne l\'utilisateur comme manager du club - Crée les paramètres par défaut du club - Envoie le lien d\'onboarding Stripe par email
|
|
1606
1725
|
* @param {ClientOnboardingRequestBody} clientOnboardingRequestBody Les données du club à créer
|
|
1607
1726
|
* @param {*} [options] Override http request option.
|
|
1608
1727
|
* @throws {RequiredError}
|
|
@@ -1627,7 +1746,7 @@ const ClientApiFactory = function (configuration, basePath, axios) {
|
|
|
1627
1746
|
const localVarFp = (0, exports.ClientApiFp)(configuration);
|
|
1628
1747
|
return {
|
|
1629
1748
|
/**
|
|
1630
|
-
* Enregistre un nouvel utilisateur client
|
|
1749
|
+
* Enregistre un nouvel utilisateur client - Crée l\'utilisateur avec un Stripe Customer
|
|
1631
1750
|
* @param {ClientApiClientRegisterRequest} requestParameters Request parameters.
|
|
1632
1751
|
* @param {*} [options] Override http request option.
|
|
1633
1752
|
* @throws {RequiredError}
|
|
@@ -1635,14 +1754,6 @@ const ClientApiFactory = function (configuration, basePath, axios) {
|
|
|
1635
1754
|
clientRegister(requestParameters, options) {
|
|
1636
1755
|
return localVarFp.clientRegister(requestParameters.clientRegisterRequest, options).then((request) => request(axios, basePath));
|
|
1637
1756
|
},
|
|
1638
|
-
/**
|
|
1639
|
-
* Récupère les abonnements Stripe actifs du compte client de l\'utilisateur courant
|
|
1640
|
-
* @param {*} [options] Override http request option.
|
|
1641
|
-
* @throws {RequiredError}
|
|
1642
|
-
*/
|
|
1643
|
-
getClientSubscriptions(options) {
|
|
1644
|
-
return localVarFp.getClientSubscriptions(options).then((request) => request(axios, basePath));
|
|
1645
|
-
},
|
|
1646
1757
|
/**
|
|
1647
1758
|
* Récupère la liste des clubs gérés par l\'utilisateur authentifié
|
|
1648
1759
|
* @param {*} [options] Override http request option.
|
|
@@ -1652,7 +1763,7 @@ const ClientApiFactory = function (configuration, basePath, axios) {
|
|
|
1652
1763
|
return localVarFp.getManagedClubs(options).then((request) => request(axios, basePath));
|
|
1653
1764
|
},
|
|
1654
1765
|
/**
|
|
1655
|
-
* Enregistre un nouveau club pour la plateforme
|
|
1766
|
+
* Enregistre un nouveau club pour la plateforme - Crée un compte Stripe Connect Express - Crée le club dans la base de données - Assigne l\'utilisateur comme manager du club - Crée les paramètres par défaut du club - Envoie le lien d\'onboarding Stripe par email
|
|
1656
1767
|
* @param {ClientApiOnboardClubRequest} requestParameters Request parameters.
|
|
1657
1768
|
* @param {*} [options] Override http request option.
|
|
1658
1769
|
* @throws {RequiredError}
|
|
@@ -1671,7 +1782,7 @@ exports.ClientApiFactory = ClientApiFactory;
|
|
|
1671
1782
|
*/
|
|
1672
1783
|
class ClientApi extends base_1.BaseAPI {
|
|
1673
1784
|
/**
|
|
1674
|
-
* Enregistre un nouvel utilisateur client
|
|
1785
|
+
* Enregistre un nouvel utilisateur client - Crée l\'utilisateur avec un Stripe Customer
|
|
1675
1786
|
* @param {ClientApiClientRegisterRequest} requestParameters Request parameters.
|
|
1676
1787
|
* @param {*} [options] Override http request option.
|
|
1677
1788
|
* @throws {RequiredError}
|
|
@@ -1680,15 +1791,6 @@ class ClientApi extends base_1.BaseAPI {
|
|
|
1680
1791
|
clientRegister(requestParameters, options) {
|
|
1681
1792
|
return (0, exports.ClientApiFp)(this.configuration).clientRegister(requestParameters.clientRegisterRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1682
1793
|
}
|
|
1683
|
-
/**
|
|
1684
|
-
* Récupère les abonnements Stripe actifs du compte client de l\'utilisateur courant
|
|
1685
|
-
* @param {*} [options] Override http request option.
|
|
1686
|
-
* @throws {RequiredError}
|
|
1687
|
-
* @memberof ClientApi
|
|
1688
|
-
*/
|
|
1689
|
-
getClientSubscriptions(options) {
|
|
1690
|
-
return (0, exports.ClientApiFp)(this.configuration).getClientSubscriptions(options).then((request) => request(this.axios, this.basePath));
|
|
1691
|
-
}
|
|
1692
1794
|
/**
|
|
1693
1795
|
* Récupère la liste des clubs gérés par l\'utilisateur authentifié
|
|
1694
1796
|
* @param {*} [options] Override http request option.
|
|
@@ -1699,7 +1801,7 @@ class ClientApi extends base_1.BaseAPI {
|
|
|
1699
1801
|
return (0, exports.ClientApiFp)(this.configuration).getManagedClubs(options).then((request) => request(this.axios, this.basePath));
|
|
1700
1802
|
}
|
|
1701
1803
|
/**
|
|
1702
|
-
* Enregistre un nouveau club pour la plateforme
|
|
1804
|
+
* Enregistre un nouveau club pour la plateforme - Crée un compte Stripe Connect Express - Crée le club dans la base de données - Assigne l\'utilisateur comme manager du club - Crée les paramètres par défaut du club - Envoie le lien d\'onboarding Stripe par email
|
|
1703
1805
|
* @param {ClientApiOnboardClubRequest} requestParameters Request parameters.
|
|
1704
1806
|
* @param {*} [options] Override http request option.
|
|
1705
1807
|
* @throws {RequiredError}
|
|
@@ -2004,10 +2106,14 @@ const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
2004
2106
|
}),
|
|
2005
2107
|
/**
|
|
2006
2108
|
* Récupère la liste des joueurs du club
|
|
2109
|
+
* @param {number} [page]
|
|
2110
|
+
* @param {number} [pageSize]
|
|
2111
|
+
* @param {string} [search]
|
|
2112
|
+
* @param {string} [filters]
|
|
2007
2113
|
* @param {*} [options] Override http request option.
|
|
2008
2114
|
* @throws {RequiredError}
|
|
2009
2115
|
*/
|
|
2010
|
-
getClubPlayers: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
2116
|
+
getClubPlayers: (page_1, pageSize_1, search_1, filters_1, ...args_1) => __awaiter(this, [page_1, pageSize_1, search_1, filters_1, ...args_1], void 0, function* (page, pageSize, search, filters, options = {}) {
|
|
2011
2117
|
const localVarPath = `/api/club-analytics/players`;
|
|
2012
2118
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2013
2119
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -2021,6 +2127,18 @@ const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
2021
2127
|
// authentication bearerAuth required
|
|
2022
2128
|
// http bearer authentication required
|
|
2023
2129
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2130
|
+
if (page !== undefined) {
|
|
2131
|
+
localVarQueryParameter['page'] = page;
|
|
2132
|
+
}
|
|
2133
|
+
if (pageSize !== undefined) {
|
|
2134
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
2135
|
+
}
|
|
2136
|
+
if (search !== undefined) {
|
|
2137
|
+
localVarQueryParameter['search'] = search;
|
|
2138
|
+
}
|
|
2139
|
+
if (filters !== undefined) {
|
|
2140
|
+
localVarQueryParameter['filters'] = filters;
|
|
2141
|
+
}
|
|
2024
2142
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2025
2143
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2026
2144
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -2432,13 +2550,17 @@ const ClubAnalyticsStaffApiFp = function (configuration) {
|
|
|
2432
2550
|
},
|
|
2433
2551
|
/**
|
|
2434
2552
|
* Récupère la liste des joueurs du club
|
|
2553
|
+
* @param {number} [page]
|
|
2554
|
+
* @param {number} [pageSize]
|
|
2555
|
+
* @param {string} [search]
|
|
2556
|
+
* @param {string} [filters]
|
|
2435
2557
|
* @param {*} [options] Override http request option.
|
|
2436
2558
|
* @throws {RequiredError}
|
|
2437
2559
|
*/
|
|
2438
|
-
getClubPlayers(options) {
|
|
2560
|
+
getClubPlayers(page, pageSize, search, filters, options) {
|
|
2439
2561
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2440
2562
|
var _a, _b, _c;
|
|
2441
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubPlayers(options);
|
|
2563
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubPlayers(page, pageSize, search, filters, options);
|
|
2442
2564
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2443
2565
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubAnalyticsStaffApi.getClubPlayers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2444
2566
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -2652,11 +2774,12 @@ const ClubAnalyticsStaffApiFactory = function (configuration, basePath, axios) {
|
|
|
2652
2774
|
},
|
|
2653
2775
|
/**
|
|
2654
2776
|
* Récupère la liste des joueurs du club
|
|
2777
|
+
* @param {ClubAnalyticsStaffApiGetClubPlayersRequest} requestParameters Request parameters.
|
|
2655
2778
|
* @param {*} [options] Override http request option.
|
|
2656
2779
|
* @throws {RequiredError}
|
|
2657
2780
|
*/
|
|
2658
|
-
getClubPlayers(options) {
|
|
2659
|
-
return localVarFp.getClubPlayers(options).then((request) => request(axios, basePath));
|
|
2781
|
+
getClubPlayers(requestParameters = {}, options) {
|
|
2782
|
+
return localVarFp.getClubPlayers(requestParameters.page, requestParameters.pageSize, requestParameters.search, requestParameters.filters, options).then((request) => request(axios, basePath));
|
|
2660
2783
|
},
|
|
2661
2784
|
/**
|
|
2662
2785
|
* Récupère le chiffre d\'affaires quotidien
|
|
@@ -2802,12 +2925,13 @@ class ClubAnalyticsStaffApi extends base_1.BaseAPI {
|
|
|
2802
2925
|
}
|
|
2803
2926
|
/**
|
|
2804
2927
|
* Récupère la liste des joueurs du club
|
|
2928
|
+
* @param {ClubAnalyticsStaffApiGetClubPlayersRequest} requestParameters Request parameters.
|
|
2805
2929
|
* @param {*} [options] Override http request option.
|
|
2806
2930
|
* @throws {RequiredError}
|
|
2807
2931
|
* @memberof ClubAnalyticsStaffApi
|
|
2808
2932
|
*/
|
|
2809
|
-
getClubPlayers(options) {
|
|
2810
|
-
return (0, exports.ClubAnalyticsStaffApiFp)(this.configuration).getClubPlayers(options).then((request) => request(this.axios, this.basePath));
|
|
2933
|
+
getClubPlayers(requestParameters = {}, options) {
|
|
2934
|
+
return (0, exports.ClubAnalyticsStaffApiFp)(this.configuration).getClubPlayers(requestParameters.page, requestParameters.pageSize, requestParameters.search, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
2811
2935
|
}
|
|
2812
2936
|
/**
|
|
2813
2937
|
* Récupère le chiffre d\'affaires quotidien
|
|
@@ -3952,7 +4076,7 @@ exports.ClubSettingsStaffApi = ClubSettingsStaffApi;
|
|
|
3952
4076
|
const ClubsApiAxiosParamCreator = function (configuration) {
|
|
3953
4077
|
return {
|
|
3954
4078
|
/**
|
|
3955
|
-
* Récupère la liste des clubs actifs publics
|
|
4079
|
+
* Récupère la liste des clubs actifs publics Authentification optionnelle : si authentifié, retourne aussi les clubs vérifiés
|
|
3956
4080
|
* @param {*} [options] Override http request option.
|
|
3957
4081
|
* @throws {RequiredError}
|
|
3958
4082
|
*/
|
|
@@ -4207,7 +4331,7 @@ const ClubsApiAxiosParamCreator = function (configuration) {
|
|
|
4207
4331
|
};
|
|
4208
4332
|
}),
|
|
4209
4333
|
/**
|
|
4210
|
-
* Récupère la liste des clubs qui ont des domaines d\'email pour vérification
|
|
4334
|
+
* Récupère la liste des clubs qui ont des domaines d\'email pour vérification Accessible sans token
|
|
4211
4335
|
* @param {*} [options] Override http request option.
|
|
4212
4336
|
* @throws {RequiredError}
|
|
4213
4337
|
*/
|
|
@@ -4357,7 +4481,7 @@ const ClubsApiFp = function (configuration) {
|
|
|
4357
4481
|
const localVarAxiosParamCreator = (0, exports.ClubsApiAxiosParamCreator)(configuration);
|
|
4358
4482
|
return {
|
|
4359
4483
|
/**
|
|
4360
|
-
* Récupère la liste des clubs actifs publics
|
|
4484
|
+
* Récupère la liste des clubs actifs publics Authentification optionnelle : si authentifié, retourne aussi les clubs vérifiés
|
|
4361
4485
|
* @param {*} [options] Override http request option.
|
|
4362
4486
|
* @throws {RequiredError}
|
|
4363
4487
|
*/
|
|
@@ -4492,7 +4616,7 @@ const ClubsApiFp = function (configuration) {
|
|
|
4492
4616
|
});
|
|
4493
4617
|
},
|
|
4494
4618
|
/**
|
|
4495
|
-
* Récupère la liste des clubs qui ont des domaines d\'email pour vérification
|
|
4619
|
+
* Récupère la liste des clubs qui ont des domaines d\'email pour vérification Accessible sans token
|
|
4496
4620
|
* @param {*} [options] Override http request option.
|
|
4497
4621
|
* @throws {RequiredError}
|
|
4498
4622
|
*/
|
|
@@ -4577,7 +4701,7 @@ const ClubsApiFactory = function (configuration, basePath, axios) {
|
|
|
4577
4701
|
const localVarFp = (0, exports.ClubsApiFp)(configuration);
|
|
4578
4702
|
return {
|
|
4579
4703
|
/**
|
|
4580
|
-
* Récupère la liste des clubs actifs publics
|
|
4704
|
+
* Récupère la liste des clubs actifs publics Authentification optionnelle : si authentifié, retourne aussi les clubs vérifiés
|
|
4581
4705
|
* @param {*} [options] Override http request option.
|
|
4582
4706
|
* @throws {RequiredError}
|
|
4583
4707
|
*/
|
|
@@ -4655,7 +4779,7 @@ const ClubsApiFactory = function (configuration, basePath, axios) {
|
|
|
4655
4779
|
return localVarFp.getClubUsersById(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
4656
4780
|
},
|
|
4657
4781
|
/**
|
|
4658
|
-
* Récupère la liste des clubs qui ont des domaines d\'email pour vérification
|
|
4782
|
+
* Récupère la liste des clubs qui ont des domaines d\'email pour vérification Accessible sans token
|
|
4659
4783
|
* @param {*} [options] Override http request option.
|
|
4660
4784
|
* @throws {RequiredError}
|
|
4661
4785
|
*/
|
|
@@ -4709,7 +4833,7 @@ exports.ClubsApiFactory = ClubsApiFactory;
|
|
|
4709
4833
|
*/
|
|
4710
4834
|
class ClubsApi extends base_1.BaseAPI {
|
|
4711
4835
|
/**
|
|
4712
|
-
* Récupère la liste des clubs actifs publics
|
|
4836
|
+
* Récupère la liste des clubs actifs publics Authentification optionnelle : si authentifié, retourne aussi les clubs vérifiés
|
|
4713
4837
|
* @param {*} [options] Override http request option.
|
|
4714
4838
|
* @throws {RequiredError}
|
|
4715
4839
|
* @memberof ClubsApi
|
|
@@ -4796,7 +4920,7 @@ class ClubsApi extends base_1.BaseAPI {
|
|
|
4796
4920
|
return (0, exports.ClubsApiFp)(this.configuration).getClubUsersById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
4797
4921
|
}
|
|
4798
4922
|
/**
|
|
4799
|
-
* Récupère la liste des clubs qui ont des domaines d\'email pour vérification
|
|
4923
|
+
* Récupère la liste des clubs qui ont des domaines d\'email pour vérification Accessible sans token
|
|
4800
4924
|
* @param {*} [options] Override http request option.
|
|
4801
4925
|
* @throws {RequiredError}
|
|
4802
4926
|
* @memberof ClubsApi
|
|
@@ -6485,10 +6609,17 @@ const ClubsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
6485
6609
|
}),
|
|
6486
6610
|
/**
|
|
6487
6611
|
*
|
|
6612
|
+
* @param {number} [page]
|
|
6613
|
+
* @param {number} [pageSize]
|
|
6614
|
+
* @param {string} [search]
|
|
6615
|
+
* @param {string} [filters]
|
|
6616
|
+
* @param {string} [status]
|
|
6617
|
+
* @param {string} [startDate]
|
|
6618
|
+
* @param {string} [endDate]
|
|
6488
6619
|
* @param {*} [options] Override http request option.
|
|
6489
6620
|
* @throws {RequiredError}
|
|
6490
6621
|
*/
|
|
6491
|
-
getInvoices: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
6622
|
+
getInvoices: (page_1, pageSize_1, search_1, filters_1, status_1, startDate_1, endDate_1, ...args_1) => __awaiter(this, [page_1, pageSize_1, search_1, filters_1, status_1, startDate_1, endDate_1, ...args_1], void 0, function* (page, pageSize, search, filters, status, startDate, endDate, options = {}) {
|
|
6492
6623
|
const localVarPath = `/api/clubs/invoices`;
|
|
6493
6624
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6494
6625
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -6502,6 +6633,27 @@ const ClubsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
6502
6633
|
// authentication bearerAuth required
|
|
6503
6634
|
// http bearer authentication required
|
|
6504
6635
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
6636
|
+
if (page !== undefined) {
|
|
6637
|
+
localVarQueryParameter['page'] = page;
|
|
6638
|
+
}
|
|
6639
|
+
if (pageSize !== undefined) {
|
|
6640
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
6641
|
+
}
|
|
6642
|
+
if (search !== undefined) {
|
|
6643
|
+
localVarQueryParameter['search'] = search;
|
|
6644
|
+
}
|
|
6645
|
+
if (filters !== undefined) {
|
|
6646
|
+
localVarQueryParameter['filters'] = filters;
|
|
6647
|
+
}
|
|
6648
|
+
if (status !== undefined) {
|
|
6649
|
+
localVarQueryParameter['status'] = status;
|
|
6650
|
+
}
|
|
6651
|
+
if (startDate !== undefined) {
|
|
6652
|
+
localVarQueryParameter['startDate'] = startDate;
|
|
6653
|
+
}
|
|
6654
|
+
if (endDate !== undefined) {
|
|
6655
|
+
localVarQueryParameter['endDate'] = endDate;
|
|
6656
|
+
}
|
|
6505
6657
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6506
6658
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6507
6659
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -6689,13 +6841,20 @@ const ClubsStaffApiFp = function (configuration) {
|
|
|
6689
6841
|
},
|
|
6690
6842
|
/**
|
|
6691
6843
|
*
|
|
6844
|
+
* @param {number} [page]
|
|
6845
|
+
* @param {number} [pageSize]
|
|
6846
|
+
* @param {string} [search]
|
|
6847
|
+
* @param {string} [filters]
|
|
6848
|
+
* @param {string} [status]
|
|
6849
|
+
* @param {string} [startDate]
|
|
6850
|
+
* @param {string} [endDate]
|
|
6692
6851
|
* @param {*} [options] Override http request option.
|
|
6693
6852
|
* @throws {RequiredError}
|
|
6694
6853
|
*/
|
|
6695
|
-
getInvoices(options) {
|
|
6854
|
+
getInvoices(page, pageSize, search, filters, status, startDate, endDate, options) {
|
|
6696
6855
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6697
6856
|
var _a, _b, _c;
|
|
6698
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getInvoices(options);
|
|
6857
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getInvoices(page, pageSize, search, filters, status, startDate, endDate, options);
|
|
6699
6858
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
6700
6859
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubsStaffApi.getInvoices']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
6701
6860
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -6801,11 +6960,12 @@ const ClubsStaffApiFactory = function (configuration, basePath, axios) {
|
|
|
6801
6960
|
},
|
|
6802
6961
|
/**
|
|
6803
6962
|
*
|
|
6963
|
+
* @param {ClubsStaffApiGetInvoicesRequest} requestParameters Request parameters.
|
|
6804
6964
|
* @param {*} [options] Override http request option.
|
|
6805
6965
|
* @throws {RequiredError}
|
|
6806
6966
|
*/
|
|
6807
|
-
getInvoices(options) {
|
|
6808
|
-
return localVarFp.getInvoices(options).then((request) => request(axios, basePath));
|
|
6967
|
+
getInvoices(requestParameters = {}, options) {
|
|
6968
|
+
return localVarFp.getInvoices(requestParameters.page, requestParameters.pageSize, requestParameters.search, requestParameters.filters, requestParameters.status, requestParameters.startDate, requestParameters.endDate, options).then((request) => request(axios, basePath));
|
|
6809
6969
|
},
|
|
6810
6970
|
/**
|
|
6811
6971
|
*
|
|
@@ -6901,12 +7061,13 @@ class ClubsStaffApi extends base_1.BaseAPI {
|
|
|
6901
7061
|
}
|
|
6902
7062
|
/**
|
|
6903
7063
|
*
|
|
7064
|
+
* @param {ClubsStaffApiGetInvoicesRequest} requestParameters Request parameters.
|
|
6904
7065
|
* @param {*} [options] Override http request option.
|
|
6905
7066
|
* @throws {RequiredError}
|
|
6906
7067
|
* @memberof ClubsStaffApi
|
|
6907
7068
|
*/
|
|
6908
|
-
getInvoices(options) {
|
|
6909
|
-
return (0, exports.ClubsStaffApiFp)(this.configuration).getInvoices(options).then((request) => request(this.axios, this.basePath));
|
|
7069
|
+
getInvoices(requestParameters = {}, options) {
|
|
7070
|
+
return (0, exports.ClubsStaffApiFp)(this.configuration).getInvoices(requestParameters.page, requestParameters.pageSize, requestParameters.search, requestParameters.filters, requestParameters.status, requestParameters.startDate, requestParameters.endDate, options).then((request) => request(this.axios, this.basePath));
|
|
6910
7071
|
}
|
|
6911
7072
|
/**
|
|
6912
7073
|
*
|
|
@@ -7037,71 +7198,6 @@ exports.DefaultApi = DefaultApi;
|
|
|
7037
7198
|
*/
|
|
7038
7199
|
const EventsApiAxiosParamCreator = function (configuration) {
|
|
7039
7200
|
return {
|
|
7040
|
-
/**
|
|
7041
|
-
* Check team name availability for TEAM participation events
|
|
7042
|
-
* @param {string} eventId
|
|
7043
|
-
* @param {string} [teamName]
|
|
7044
|
-
* @param {*} [options] Override http request option.
|
|
7045
|
-
* @throws {RequiredError}
|
|
7046
|
-
*/
|
|
7047
|
-
checkTeamNameAvailability: (eventId_1, teamName_1, ...args_1) => __awaiter(this, [eventId_1, teamName_1, ...args_1], void 0, function* (eventId, teamName, options = {}) {
|
|
7048
|
-
// verify required parameter 'eventId' is not null or undefined
|
|
7049
|
-
(0, common_1.assertParamExists)('checkTeamNameAvailability', 'eventId', eventId);
|
|
7050
|
-
const localVarPath = `/api/events/{eventId}/team-name-availability`
|
|
7051
|
-
.replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
|
|
7052
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7053
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7054
|
-
let baseOptions;
|
|
7055
|
-
if (configuration) {
|
|
7056
|
-
baseOptions = configuration.baseOptions;
|
|
7057
|
-
}
|
|
7058
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
7059
|
-
const localVarHeaderParameter = {};
|
|
7060
|
-
const localVarQueryParameter = {};
|
|
7061
|
-
if (teamName !== undefined) {
|
|
7062
|
-
localVarQueryParameter['teamName'] = teamName;
|
|
7063
|
-
}
|
|
7064
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7065
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7066
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7067
|
-
return {
|
|
7068
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
7069
|
-
options: localVarRequestOptions,
|
|
7070
|
-
};
|
|
7071
|
-
}),
|
|
7072
|
-
/**
|
|
7073
|
-
* Estime le prix de participation à un événement pour une liste de joueurs
|
|
7074
|
-
* @param {string} eventId
|
|
7075
|
-
* @param {EstimateEventPriceRequest} estimateEventPriceRequest
|
|
7076
|
-
* @param {*} [options] Override http request option.
|
|
7077
|
-
* @throws {RequiredError}
|
|
7078
|
-
*/
|
|
7079
|
-
estimateEventPrice: (eventId_1, estimateEventPriceRequest_1, ...args_1) => __awaiter(this, [eventId_1, estimateEventPriceRequest_1, ...args_1], void 0, function* (eventId, estimateEventPriceRequest, options = {}) {
|
|
7080
|
-
// verify required parameter 'eventId' is not null or undefined
|
|
7081
|
-
(0, common_1.assertParamExists)('estimateEventPrice', 'eventId', eventId);
|
|
7082
|
-
// verify required parameter 'estimateEventPriceRequest' is not null or undefined
|
|
7083
|
-
(0, common_1.assertParamExists)('estimateEventPrice', 'estimateEventPriceRequest', estimateEventPriceRequest);
|
|
7084
|
-
const localVarPath = `/api/events/{eventId}/estimate-price`
|
|
7085
|
-
.replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
|
|
7086
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7087
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7088
|
-
let baseOptions;
|
|
7089
|
-
if (configuration) {
|
|
7090
|
-
baseOptions = configuration.baseOptions;
|
|
7091
|
-
}
|
|
7092
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
7093
|
-
const localVarHeaderParameter = {};
|
|
7094
|
-
const localVarQueryParameter = {};
|
|
7095
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
7096
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7097
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7098
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7099
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(estimateEventPriceRequest, localVarRequestOptions, configuration);
|
|
7100
|
-
return {
|
|
7101
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
7102
|
-
options: localVarRequestOptions,
|
|
7103
|
-
};
|
|
7104
|
-
}),
|
|
7105
7201
|
/**
|
|
7106
7202
|
* Get a specific event by ID
|
|
7107
7203
|
* @param {string} eventId
|
|
@@ -7247,38 +7343,6 @@ exports.EventsApiAxiosParamCreator = EventsApiAxiosParamCreator;
|
|
|
7247
7343
|
const EventsApiFp = function (configuration) {
|
|
7248
7344
|
const localVarAxiosParamCreator = (0, exports.EventsApiAxiosParamCreator)(configuration);
|
|
7249
7345
|
return {
|
|
7250
|
-
/**
|
|
7251
|
-
* Check team name availability for TEAM participation events
|
|
7252
|
-
* @param {string} eventId
|
|
7253
|
-
* @param {string} [teamName]
|
|
7254
|
-
* @param {*} [options] Override http request option.
|
|
7255
|
-
* @throws {RequiredError}
|
|
7256
|
-
*/
|
|
7257
|
-
checkTeamNameAvailability(eventId, teamName, options) {
|
|
7258
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
7259
|
-
var _a, _b, _c;
|
|
7260
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.checkTeamNameAvailability(eventId, teamName, options);
|
|
7261
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7262
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EventsApi.checkTeamNameAvailability']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7263
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7264
|
-
});
|
|
7265
|
-
},
|
|
7266
|
-
/**
|
|
7267
|
-
* Estime le prix de participation à un événement pour une liste de joueurs
|
|
7268
|
-
* @param {string} eventId
|
|
7269
|
-
* @param {EstimateEventPriceRequest} estimateEventPriceRequest
|
|
7270
|
-
* @param {*} [options] Override http request option.
|
|
7271
|
-
* @throws {RequiredError}
|
|
7272
|
-
*/
|
|
7273
|
-
estimateEventPrice(eventId, estimateEventPriceRequest, options) {
|
|
7274
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
7275
|
-
var _a, _b, _c;
|
|
7276
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.estimateEventPrice(eventId, estimateEventPriceRequest, options);
|
|
7277
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7278
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EventsApi.estimateEventPrice']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7279
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7280
|
-
});
|
|
7281
|
-
},
|
|
7282
7346
|
/**
|
|
7283
7347
|
* Get a specific event by ID
|
|
7284
7348
|
* @param {string} eventId
|
|
@@ -7353,24 +7417,6 @@ exports.EventsApiFp = EventsApiFp;
|
|
|
7353
7417
|
const EventsApiFactory = function (configuration, basePath, axios) {
|
|
7354
7418
|
const localVarFp = (0, exports.EventsApiFp)(configuration);
|
|
7355
7419
|
return {
|
|
7356
|
-
/**
|
|
7357
|
-
* Check team name availability for TEAM participation events
|
|
7358
|
-
* @param {EventsApiCheckTeamNameAvailabilityRequest} requestParameters Request parameters.
|
|
7359
|
-
* @param {*} [options] Override http request option.
|
|
7360
|
-
* @throws {RequiredError}
|
|
7361
|
-
*/
|
|
7362
|
-
checkTeamNameAvailability(requestParameters, options) {
|
|
7363
|
-
return localVarFp.checkTeamNameAvailability(requestParameters.eventId, requestParameters.teamName, options).then((request) => request(axios, basePath));
|
|
7364
|
-
},
|
|
7365
|
-
/**
|
|
7366
|
-
* Estime le prix de participation à un événement pour une liste de joueurs
|
|
7367
|
-
* @param {EventsApiEstimateEventPriceRequest} requestParameters Request parameters.
|
|
7368
|
-
* @param {*} [options] Override http request option.
|
|
7369
|
-
* @throws {RequiredError}
|
|
7370
|
-
*/
|
|
7371
|
-
estimateEventPrice(requestParameters, options) {
|
|
7372
|
-
return localVarFp.estimateEventPrice(requestParameters.eventId, requestParameters.estimateEventPriceRequest, options).then((request) => request(axios, basePath));
|
|
7373
|
-
},
|
|
7374
7420
|
/**
|
|
7375
7421
|
* Get a specific event by ID
|
|
7376
7422
|
* @param {EventsApiGetEventByIdRequest} requestParameters Request parameters.
|
|
@@ -7417,26 +7463,6 @@ exports.EventsApiFactory = EventsApiFactory;
|
|
|
7417
7463
|
* @extends {BaseAPI}
|
|
7418
7464
|
*/
|
|
7419
7465
|
class EventsApi extends base_1.BaseAPI {
|
|
7420
|
-
/**
|
|
7421
|
-
* Check team name availability for TEAM participation events
|
|
7422
|
-
* @param {EventsApiCheckTeamNameAvailabilityRequest} requestParameters Request parameters.
|
|
7423
|
-
* @param {*} [options] Override http request option.
|
|
7424
|
-
* @throws {RequiredError}
|
|
7425
|
-
* @memberof EventsApi
|
|
7426
|
-
*/
|
|
7427
|
-
checkTeamNameAvailability(requestParameters, options) {
|
|
7428
|
-
return (0, exports.EventsApiFp)(this.configuration).checkTeamNameAvailability(requestParameters.eventId, requestParameters.teamName, options).then((request) => request(this.axios, this.basePath));
|
|
7429
|
-
}
|
|
7430
|
-
/**
|
|
7431
|
-
* Estime le prix de participation à un événement pour une liste de joueurs
|
|
7432
|
-
* @param {EventsApiEstimateEventPriceRequest} requestParameters Request parameters.
|
|
7433
|
-
* @param {*} [options] Override http request option.
|
|
7434
|
-
* @throws {RequiredError}
|
|
7435
|
-
* @memberof EventsApi
|
|
7436
|
-
*/
|
|
7437
|
-
estimateEventPrice(requestParameters, options) {
|
|
7438
|
-
return (0, exports.EventsApiFp)(this.configuration).estimateEventPrice(requestParameters.eventId, requestParameters.estimateEventPriceRequest, options).then((request) => request(this.axios, this.basePath));
|
|
7439
|
-
}
|
|
7440
7466
|
/**
|
|
7441
7467
|
* Get a specific event by ID
|
|
7442
7468
|
* @param {EventsApiGetEventByIdRequest} requestParameters Request parameters.
|
|
@@ -9169,6 +9195,38 @@ const SubscriptionsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
9169
9195
|
options: localVarRequestOptions,
|
|
9170
9196
|
};
|
|
9171
9197
|
}),
|
|
9198
|
+
/**
|
|
9199
|
+
* Envoie une invitation d\'abonnement à un joueur (staff)
|
|
9200
|
+
* @param {SendSubscriptionInvitationRequest} sendSubscriptionInvitationRequest
|
|
9201
|
+
* @param {*} [options] Override http request option.
|
|
9202
|
+
* @throws {RequiredError}
|
|
9203
|
+
*/
|
|
9204
|
+
sendSubscriptionInvitation: (sendSubscriptionInvitationRequest_1, ...args_1) => __awaiter(this, [sendSubscriptionInvitationRequest_1, ...args_1], void 0, function* (sendSubscriptionInvitationRequest, options = {}) {
|
|
9205
|
+
// verify required parameter 'sendSubscriptionInvitationRequest' is not null or undefined
|
|
9206
|
+
(0, common_1.assertParamExists)('sendSubscriptionInvitation', 'sendSubscriptionInvitationRequest', sendSubscriptionInvitationRequest);
|
|
9207
|
+
const localVarPath = `/api/subscriptions/invitations`;
|
|
9208
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9209
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
9210
|
+
let baseOptions;
|
|
9211
|
+
if (configuration) {
|
|
9212
|
+
baseOptions = configuration.baseOptions;
|
|
9213
|
+
}
|
|
9214
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
9215
|
+
const localVarHeaderParameter = {};
|
|
9216
|
+
const localVarQueryParameter = {};
|
|
9217
|
+
// authentication bearerAuth required
|
|
9218
|
+
// http bearer authentication required
|
|
9219
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
9220
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
9221
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
9222
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9223
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
9224
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(sendSubscriptionInvitationRequest, localVarRequestOptions, configuration);
|
|
9225
|
+
return {
|
|
9226
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
9227
|
+
options: localVarRequestOptions,
|
|
9228
|
+
};
|
|
9229
|
+
}),
|
|
9172
9230
|
};
|
|
9173
9231
|
};
|
|
9174
9232
|
exports.SubscriptionsStaffApiAxiosParamCreator = SubscriptionsStaffApiAxiosParamCreator;
|
|
@@ -9193,6 +9251,21 @@ const SubscriptionsStaffApiFp = function (configuration) {
|
|
|
9193
9251
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9194
9252
|
});
|
|
9195
9253
|
},
|
|
9254
|
+
/**
|
|
9255
|
+
* Envoie une invitation d\'abonnement à un joueur (staff)
|
|
9256
|
+
* @param {SendSubscriptionInvitationRequest} sendSubscriptionInvitationRequest
|
|
9257
|
+
* @param {*} [options] Override http request option.
|
|
9258
|
+
* @throws {RequiredError}
|
|
9259
|
+
*/
|
|
9260
|
+
sendSubscriptionInvitation(sendSubscriptionInvitationRequest, options) {
|
|
9261
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
9262
|
+
var _a, _b, _c;
|
|
9263
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.sendSubscriptionInvitation(sendSubscriptionInvitationRequest, options);
|
|
9264
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
9265
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SubscriptionsStaffApi.sendSubscriptionInvitation']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
9266
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9267
|
+
});
|
|
9268
|
+
},
|
|
9196
9269
|
};
|
|
9197
9270
|
};
|
|
9198
9271
|
exports.SubscriptionsStaffApiFp = SubscriptionsStaffApiFp;
|
|
@@ -9211,6 +9284,15 @@ const SubscriptionsStaffApiFactory = function (configuration, basePath, axios) {
|
|
|
9211
9284
|
getClubPlans(options) {
|
|
9212
9285
|
return localVarFp.getClubPlans(options).then((request) => request(axios, basePath));
|
|
9213
9286
|
},
|
|
9287
|
+
/**
|
|
9288
|
+
* Envoie une invitation d\'abonnement à un joueur (staff)
|
|
9289
|
+
* @param {SubscriptionsStaffApiSendSubscriptionInvitationRequest} requestParameters Request parameters.
|
|
9290
|
+
* @param {*} [options] Override http request option.
|
|
9291
|
+
* @throws {RequiredError}
|
|
9292
|
+
*/
|
|
9293
|
+
sendSubscriptionInvitation(requestParameters, options) {
|
|
9294
|
+
return localVarFp.sendSubscriptionInvitation(requestParameters.sendSubscriptionInvitationRequest, options).then((request) => request(axios, basePath));
|
|
9295
|
+
},
|
|
9214
9296
|
};
|
|
9215
9297
|
};
|
|
9216
9298
|
exports.SubscriptionsStaffApiFactory = SubscriptionsStaffApiFactory;
|
|
@@ -9230,6 +9312,16 @@ class SubscriptionsStaffApi extends base_1.BaseAPI {
|
|
|
9230
9312
|
getClubPlans(options) {
|
|
9231
9313
|
return (0, exports.SubscriptionsStaffApiFp)(this.configuration).getClubPlans(options).then((request) => request(this.axios, this.basePath));
|
|
9232
9314
|
}
|
|
9315
|
+
/**
|
|
9316
|
+
* Envoie une invitation d\'abonnement à un joueur (staff)
|
|
9317
|
+
* @param {SubscriptionsStaffApiSendSubscriptionInvitationRequest} requestParameters Request parameters.
|
|
9318
|
+
* @param {*} [options] Override http request option.
|
|
9319
|
+
* @throws {RequiredError}
|
|
9320
|
+
* @memberof SubscriptionsStaffApi
|
|
9321
|
+
*/
|
|
9322
|
+
sendSubscriptionInvitation(requestParameters, options) {
|
|
9323
|
+
return (0, exports.SubscriptionsStaffApiFp)(this.configuration).sendSubscriptionInvitation(requestParameters.sendSubscriptionInvitationRequest, options).then((request) => request(this.axios, this.basePath));
|
|
9324
|
+
}
|
|
9233
9325
|
}
|
|
9234
9326
|
exports.SubscriptionsStaffApi = SubscriptionsStaffApi;
|
|
9235
9327
|
/**
|