@tennac-booking/sdk 1.0.184 → 1.0.186
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 +2 -19
- package/README.md +7 -29
- package/api.ts +334 -1613
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +254 -1113
- package/dist/api.js +186 -893
- 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 +254 -1113
- package/dist/esm/api.js +182 -876
- 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/BookingsApi.md +5 -5
- package/docs/BookingsStaffApi.md +1 -57
- package/docs/EventsStaffApi.md +119 -25
- package/docs/JoinOpenBookingRequest.md +26 -0
- package/docs/StaffEventsPageResponse.md +22 -0
- package/docs/UserClubMembership.md +2 -0
- package/docs/UserProfileResponse.md +2 -0
- package/index.ts +1 -1
- package/package.json +1 -1
- package/docs/CheckInPlayerSumupRequest.md +0 -22
- package/docs/CheckInPlayerSumupResponse.md +0 -24
- package/docs/CheckInSumupPaymentInfo.md +0 -26
- package/docs/PaymentIntentResult.md +0 -28
- package/docs/PaymentProviderType.md +0 -10
- package/docs/PaymentStatus.md +0 -14
- package/docs/PaymentsStaffApi.md +0 -124
- package/docs/StaffEventsPaginatedResponse.md +0 -26
- package/docs/SumUpApi.md +0 -63
- package/docs/SumUpManagerApi.md +0 -332
- package/docs/SumupAccountStatusResponse.md +0 -32
- package/docs/SumupCancelPaymentRequest.md +0 -20
- package/docs/SumupConnectUrlResponse.md +0 -20
- package/docs/SumupCreatePaymentRequest.md +0 -32
- package/docs/SumupOAuthCallbackResponse.md +0 -24
- package/docs/SumupPairReaderRequest.md +0 -22
- package/docs/SumupPairReaderResponse.md +0 -20
- package/docs/SumupReaderInfo.md +0 -34
- package/docs/SumupReadersResponse.md +0 -20
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.185
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -22,11 +22,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.UpdateRecurringDefinitionRequestTypeEnum = exports.UpdateRecurringDefinitionRequestVisibilityTypeEnum = exports.UpdateEventRequestVisibilityTypeEnum = exports.UpdateEventRequestParticipationTypeEnum = exports.UpdateEventRequestRecurringTypeEnum = exports.UpdateEventRequestTypeEnum = exports.UpdateClubRoleRequestRoleEnum = exports.UpdateClubMemberRequestRoleEnum = exports.TrendDirection = exports.SurfaceType = exports.StaffUserProfileResponseCreatedFromEnum = exports.StaffBookingPaymentState = exports.SportKey = exports.RegisterRequestBodyLocationTypeEnum = exports.RecurringDefinitionResponseRecurringTypeEnum = exports.PublicAccessSettingsPaymentModeEnum = exports.PlayerCategoryId = exports.PlanInterval = exports.
|
|
26
|
-
exports.ClubRolesStaffApiFactory = exports.ClubRolesStaffApiFp = exports.ClubRolesStaffApiAxiosParamCreator = exports.ClubRolesManagerApi = exports.ClubRolesManagerApiFactory = exports.ClubRolesManagerApiFp = exports.ClubRolesManagerApiAxiosParamCreator = exports.ClubCustomerStaffApi = exports.ClubCustomerStaffApiFactory = exports.ClubCustomerStaffApiFp = exports.ClubCustomerStaffApiAxiosParamCreator = exports.ClubCustomerMeApi = exports.ClubCustomerMeApiFactory = exports.ClubCustomerMeApiFp = exports.ClubCustomerMeApiAxiosParamCreator = 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.WeekdayKey = exports.WaitListResponseTargetTypeEnum = exports.VisibilityType = exports.UserProfileResponseCreatedFromEnum = exports.UserLocationSummaryTypeEnum =
|
|
27
|
-
exports.ImagesApiAxiosParamCreator = exports.GetWeeklyEventsTypeEnum = exports.GetWeeklyEventsVisibilityTypeEnum = exports.GetMonthlyEventsTypeEnum = exports.GetMonthlyEventsVisibilityTypeEnum = exports.GetDailyEventsTypeEnum = exports.GetDailyEventsVisibilityTypeEnum = exports.EventsStaffApi = exports.EventsStaffApiFactory = exports.EventsStaffApiFp = exports.EventsStaffApiAxiosParamCreator = exports.EventsManagerApi = exports.EventsManagerApiFactory = exports.EventsManagerApiFp = exports.EventsManagerApiAxiosParamCreator = exports.GetPublishedEventsByClubIdTypeEnum = exports.GetPublishedEventsByClubIdVisibilityTypeEnum = exports.EventsApi = exports.EventsApiFactory = exports.EventsApiFp = exports.EventsApiAxiosParamCreator = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.ContactApi = exports.ContactApiFactory = exports.ContactApiFp = exports.ContactApiAxiosParamCreator = exports.ClubsStaffApi = exports.ClubsStaffApiFactory = exports.ClubsStaffApiFp = exports.ClubsStaffApiAxiosParamCreator = exports.ClubsManagerApi = exports.ClubsManagerApiFactory = exports.ClubsManagerApiFp = exports.ClubsManagerApiAxiosParamCreator = exports.ClubsApi = exports.ClubsApiFactory = exports.ClubsApiFp = exports.ClubsApiAxiosParamCreator = exports.ClubSettingsStaffApi = exports.ClubSettingsStaffApiFactory = exports.ClubSettingsStaffApiFp = exports.ClubSettingsStaffApiAxiosParamCreator = exports.ClubSettingsManagerApi = exports.ClubSettingsManagerApiFactory = exports.ClubSettingsManagerApiFp =
|
|
28
|
-
exports.
|
|
29
|
-
exports.WaitListStaffApi = exports.WaitListStaffApiFactory = exports.WaitListStaffApiFp = exports.WaitListStaffApiAxiosParamCreator = exports.WaitListApi = exports.WaitListApiFactory = exports.WaitListApiFp = exports.WaitListApiAxiosParamCreator = exports.UsersApi = void 0;
|
|
25
|
+
exports.UpdateRecurringDefinitionRequestRecurringTypeEnum = exports.UpdateRecurringDefinitionRequestParticipationTypeEnum = exports.UpdateRecurringDefinitionRequestTypeEnum = exports.UpdateRecurringDefinitionRequestVisibilityTypeEnum = exports.UpdateEventRequestVisibilityTypeEnum = exports.UpdateEventRequestParticipationTypeEnum = exports.UpdateEventRequestRecurringTypeEnum = exports.UpdateEventRequestTypeEnum = exports.UpdateClubRoleRequestRoleEnum = exports.UpdateClubMemberRequestRoleEnum = exports.TrendDirection = exports.SurfaceType = exports.StaffUserProfileResponseCreatedFromEnum = exports.StaffBookingPaymentState = exports.SportKey = exports.RegisterRequestBodyLocationTypeEnum = exports.RecurringDefinitionResponseRecurringTypeEnum = exports.PublicAccessSettingsPaymentModeEnum = exports.PlayerCategoryId = exports.PlanInterval = exports.PaymentMethod = exports.ParticipationType = exports.PartialPublicAccessSettingsPaymentModeEnum = exports.InvoiceStatusSETUPSUCCESS = exports.InvoiceStatusSETUPPENDING = exports.InvoiceStatus = exports.ImageContextType = exports.IUserLocationTypeEnum = exports.IUserAttributesCreatedFromEnum = exports.Gender = exports.EventResponseVisibilityTypeEnum = exports.EventResponseParticipationTypeEnum = exports.EventResponseRecurringTypeEnum = exports.EventResponseTypeEnum = exports.EventBookingStatus = exports.DiscountType = exports.CreateEventRequestVisibilityTypeEnum = exports.CreateEventRequestParticipationTypeEnum = exports.CreateEventRequestRecurringTypeEnum = exports.CreateEventRequestTypeEnum = exports.CreateClubRoleRequestRoleEnum = exports.CreateActualityRequestDiffusionModeEnum = exports.CourtStatus = exports.ClubRoleResponseRoleEnum = exports.ClientOnboardingRequestBodyClubTypeEnum = exports.CaptureResultStatusEnum = exports.CaptureResultTypeEnum = exports.BookingStatus = exports.BookingInvoicePaymentStatus = exports.BookingHistoryPopulatedPerformedByTypeEnum = void 0;
|
|
26
|
+
exports.ClubSettingsManagerApiAxiosParamCreator = exports.ClubRolesStaffApi = exports.ClubRolesStaffApiFactory = exports.ClubRolesStaffApiFp = exports.ClubRolesStaffApiAxiosParamCreator = exports.ClubRolesManagerApi = exports.ClubRolesManagerApiFactory = exports.ClubRolesManagerApiFp = exports.ClubRolesManagerApiAxiosParamCreator = exports.ClubCustomerStaffApi = exports.ClubCustomerStaffApiFactory = exports.ClubCustomerStaffApiFp = exports.ClubCustomerStaffApiAxiosParamCreator = exports.ClubCustomerMeApi = exports.ClubCustomerMeApiFactory = exports.ClubCustomerMeApiFp = exports.ClubCustomerMeApiAxiosParamCreator = 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.WeekdayKey = exports.WaitListResponseTargetTypeEnum = exports.VisibilityType = exports.UserProfileResponseCreatedFromEnum = exports.UserLocationSummaryTypeEnum = void 0;
|
|
27
|
+
exports.ImagesApiFactory = exports.ImagesApiFp = exports.ImagesApiAxiosParamCreator = exports.GetWeeklyEventsTypeEnum = exports.GetWeeklyEventsVisibilityTypeEnum = exports.GetMonthlyEventsTypeEnum = exports.GetMonthlyEventsVisibilityTypeEnum = exports.GetDailyEventsTypeEnum = exports.GetDailyEventsVisibilityTypeEnum = exports.EventsStaffApi = exports.EventsStaffApiFactory = exports.EventsStaffApiFp = exports.EventsStaffApiAxiosParamCreator = exports.EventsManagerApi = exports.EventsManagerApiFactory = exports.EventsManagerApiFp = exports.EventsManagerApiAxiosParamCreator = exports.GetPublishedEventsByClubIdTypeEnum = exports.GetPublishedEventsByClubIdVisibilityTypeEnum = exports.EventsApi = exports.EventsApiFactory = exports.EventsApiFp = exports.EventsApiAxiosParamCreator = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.ContactApi = exports.ContactApiFactory = exports.ContactApiFp = exports.ContactApiAxiosParamCreator = exports.ClubsStaffApi = exports.ClubsStaffApiFactory = exports.ClubsStaffApiFp = exports.ClubsStaffApiAxiosParamCreator = exports.ClubsManagerApi = exports.ClubsManagerApiFactory = exports.ClubsManagerApiFp = exports.ClubsManagerApiAxiosParamCreator = exports.ClubsApi = exports.ClubsApiFactory = exports.ClubsApiFp = exports.ClubsApiAxiosParamCreator = exports.ClubSettingsStaffApi = exports.ClubSettingsStaffApiFactory = exports.ClubSettingsStaffApiFp = exports.ClubSettingsStaffApiAxiosParamCreator = exports.ClubSettingsManagerApi = exports.ClubSettingsManagerApiFactory = exports.ClubSettingsManagerApiFp = void 0;
|
|
28
|
+
exports.WaitListStaffApi = exports.WaitListStaffApiFactory = exports.WaitListStaffApiFp = exports.WaitListStaffApiAxiosParamCreator = exports.WaitListApi = exports.WaitListApiFactory = exports.WaitListApiFp = exports.WaitListApiAxiosParamCreator = exports.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.SubscriptionsUserApi = exports.SubscriptionsUserApiFactory = exports.SubscriptionsUserApiFp = exports.SubscriptionsUserApiAxiosParamCreator = exports.SubscriptionsStaffApi = exports.SubscriptionsStaffApiFactory = exports.SubscriptionsStaffApiFp = exports.SubscriptionsStaffApiAxiosParamCreator = exports.SubscriptionsPublicApi = exports.SubscriptionsPublicApiFactory = exports.SubscriptionsPublicApiFp = 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.PublicEmailApi = exports.PublicEmailApiFactory = exports.PublicEmailApiFp = exports.PublicEmailApiAxiosParamCreator = exports.ImagesApi = void 0;
|
|
30
29
|
const axios_1 = require("axios");
|
|
31
30
|
// Some imports not used depending on template conditions
|
|
32
31
|
// @ts-ignore
|
|
@@ -259,26 +258,6 @@ exports.PaymentMethod = {
|
|
|
259
258
|
OnsiteCash: 'onsite_cash',
|
|
260
259
|
Free: 'free'
|
|
261
260
|
};
|
|
262
|
-
/**
|
|
263
|
-
*
|
|
264
|
-
* @export
|
|
265
|
-
* @enum {string}
|
|
266
|
-
*/
|
|
267
|
-
exports.PaymentProviderType = {
|
|
268
|
-
Stripe: 'stripe',
|
|
269
|
-
Sumup: 'sumup'
|
|
270
|
-
};
|
|
271
|
-
/**
|
|
272
|
-
*
|
|
273
|
-
* @export
|
|
274
|
-
* @enum {string}
|
|
275
|
-
*/
|
|
276
|
-
exports.PaymentStatus = {
|
|
277
|
-
Pending: 'pending',
|
|
278
|
-
Succeeded: 'succeeded',
|
|
279
|
-
Failed: 'failed',
|
|
280
|
-
Cancelled: 'cancelled'
|
|
281
|
-
};
|
|
282
261
|
/**
|
|
283
262
|
*
|
|
284
263
|
* @export
|
|
@@ -781,15 +760,15 @@ const BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
781
760
|
/**
|
|
782
761
|
*
|
|
783
762
|
* @param {string} bookingId
|
|
784
|
-
* @param {
|
|
763
|
+
* @param {JoinOpenBookingRequest} joinOpenBookingRequest
|
|
785
764
|
* @param {*} [options] Override http request option.
|
|
786
765
|
* @throws {RequiredError}
|
|
787
766
|
*/
|
|
788
|
-
joinOpenBooking: (bookingId_1,
|
|
767
|
+
joinOpenBooking: (bookingId_1, joinOpenBookingRequest_1, ...args_1) => __awaiter(this, [bookingId_1, joinOpenBookingRequest_1, ...args_1], void 0, function* (bookingId, joinOpenBookingRequest, options = {}) {
|
|
789
768
|
// verify required parameter 'bookingId' is not null or undefined
|
|
790
769
|
(0, common_1.assertParamExists)('joinOpenBooking', 'bookingId', bookingId);
|
|
791
|
-
// verify required parameter '
|
|
792
|
-
(0, common_1.assertParamExists)('joinOpenBooking', '
|
|
770
|
+
// verify required parameter 'joinOpenBookingRequest' is not null or undefined
|
|
771
|
+
(0, common_1.assertParamExists)('joinOpenBooking', 'joinOpenBookingRequest', joinOpenBookingRequest);
|
|
793
772
|
const localVarPath = `/api/bookings/{bookingId}/open/join`
|
|
794
773
|
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
795
774
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -808,7 +787,7 @@ const BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
808
787
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
809
788
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
810
789
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
811
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
790
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(joinOpenBookingRequest, localVarRequestOptions, configuration);
|
|
812
791
|
return {
|
|
813
792
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
814
793
|
options: localVarRequestOptions,
|
|
@@ -1005,14 +984,14 @@ const BookingsApiFp = function (configuration) {
|
|
|
1005
984
|
/**
|
|
1006
985
|
*
|
|
1007
986
|
* @param {string} bookingId
|
|
1008
|
-
* @param {
|
|
987
|
+
* @param {JoinOpenBookingRequest} joinOpenBookingRequest
|
|
1009
988
|
* @param {*} [options] Override http request option.
|
|
1010
989
|
* @throws {RequiredError}
|
|
1011
990
|
*/
|
|
1012
|
-
joinOpenBooking(bookingId,
|
|
991
|
+
joinOpenBooking(bookingId, joinOpenBookingRequest, options) {
|
|
1013
992
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1014
993
|
var _a, _b, _c;
|
|
1015
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.joinOpenBooking(bookingId,
|
|
994
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.joinOpenBooking(bookingId, joinOpenBookingRequest, options);
|
|
1016
995
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1017
996
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsApi.joinOpenBooking']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1018
997
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -1131,7 +1110,7 @@ const BookingsApiFactory = function (configuration, basePath, axios) {
|
|
|
1131
1110
|
* @throws {RequiredError}
|
|
1132
1111
|
*/
|
|
1133
1112
|
joinOpenBooking(requestParameters, options) {
|
|
1134
|
-
return localVarFp.joinOpenBooking(requestParameters.bookingId, requestParameters.
|
|
1113
|
+
return localVarFp.joinOpenBooking(requestParameters.bookingId, requestParameters.joinOpenBookingRequest, options).then((request) => request(axios, basePath));
|
|
1135
1114
|
},
|
|
1136
1115
|
/**
|
|
1137
1116
|
*
|
|
@@ -1250,7 +1229,7 @@ class BookingsApi extends base_1.BaseAPI {
|
|
|
1250
1229
|
* @memberof BookingsApi
|
|
1251
1230
|
*/
|
|
1252
1231
|
joinOpenBooking(requestParameters, options) {
|
|
1253
|
-
return (0, exports.BookingsApiFp)(this.configuration).joinOpenBooking(requestParameters.bookingId, requestParameters.
|
|
1232
|
+
return (0, exports.BookingsApiFp)(this.configuration).joinOpenBooking(requestParameters.bookingId, requestParameters.joinOpenBookingRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1254
1233
|
}
|
|
1255
1234
|
/**
|
|
1256
1235
|
*
|
|
@@ -1445,7 +1424,7 @@ exports.BookingsManagerApi = BookingsManagerApi;
|
|
|
1445
1424
|
const BookingsStaffApiAxiosParamCreator = function (configuration) {
|
|
1446
1425
|
return {
|
|
1447
1426
|
/**
|
|
1448
|
-
* Check-in d\'un joueur
|
|
1427
|
+
* Check-in d\'un joueur (paiement en ligne ou sur place)
|
|
1449
1428
|
* @param {string} bookingId
|
|
1450
1429
|
* @param {CheckInPlayerRequest} checkInPlayerRequest
|
|
1451
1430
|
* @param {*} [options] Override http request option.
|
|
@@ -1480,42 +1459,6 @@ const BookingsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
1480
1459
|
options: localVarRequestOptions,
|
|
1481
1460
|
};
|
|
1482
1461
|
}),
|
|
1483
|
-
/**
|
|
1484
|
-
* Check-in d\'un joueur avec création d\'un checkout SumUp
|
|
1485
|
-
* @param {string} bookingId
|
|
1486
|
-
* @param {CheckInPlayerSumupRequest} checkInPlayerSumupRequest
|
|
1487
|
-
* @param {*} [options] Override http request option.
|
|
1488
|
-
* @throws {RequiredError}
|
|
1489
|
-
*/
|
|
1490
|
-
checkInPlayerWithSumup: (bookingId_1, checkInPlayerSumupRequest_1, ...args_1) => __awaiter(this, [bookingId_1, checkInPlayerSumupRequest_1, ...args_1], void 0, function* (bookingId, checkInPlayerSumupRequest, options = {}) {
|
|
1491
|
-
// verify required parameter 'bookingId' is not null or undefined
|
|
1492
|
-
(0, common_1.assertParamExists)('checkInPlayerWithSumup', 'bookingId', bookingId);
|
|
1493
|
-
// verify required parameter 'checkInPlayerSumupRequest' is not null or undefined
|
|
1494
|
-
(0, common_1.assertParamExists)('checkInPlayerWithSumup', 'checkInPlayerSumupRequest', checkInPlayerSumupRequest);
|
|
1495
|
-
const localVarPath = `/api/bookings/{bookingId}/check-in/sumup`
|
|
1496
|
-
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
1497
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1498
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1499
|
-
let baseOptions;
|
|
1500
|
-
if (configuration) {
|
|
1501
|
-
baseOptions = configuration.baseOptions;
|
|
1502
|
-
}
|
|
1503
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1504
|
-
const localVarHeaderParameter = {};
|
|
1505
|
-
const localVarQueryParameter = {};
|
|
1506
|
-
// authentication bearerAuth required
|
|
1507
|
-
// http bearer authentication required
|
|
1508
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1509
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1510
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1511
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1512
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1513
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(checkInPlayerSumupRequest, localVarRequestOptions, configuration);
|
|
1514
|
-
return {
|
|
1515
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1516
|
-
options: localVarRequestOptions,
|
|
1517
|
-
};
|
|
1518
|
-
}),
|
|
1519
1462
|
/**
|
|
1520
1463
|
* Créer une réservation pour un joueur depuis l\'espace staff
|
|
1521
1464
|
* @param {StaffCreateBookingRequest} staffCreateBookingRequest
|
|
@@ -1761,7 +1704,7 @@ const BookingsStaffApiFp = function (configuration) {
|
|
|
1761
1704
|
const localVarAxiosParamCreator = (0, exports.BookingsStaffApiAxiosParamCreator)(configuration);
|
|
1762
1705
|
return {
|
|
1763
1706
|
/**
|
|
1764
|
-
* Check-in d\'un joueur
|
|
1707
|
+
* Check-in d\'un joueur (paiement en ligne ou sur place)
|
|
1765
1708
|
* @param {string} bookingId
|
|
1766
1709
|
* @param {CheckInPlayerRequest} checkInPlayerRequest
|
|
1767
1710
|
* @param {*} [options] Override http request option.
|
|
@@ -1776,22 +1719,6 @@ const BookingsStaffApiFp = function (configuration) {
|
|
|
1776
1719
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1777
1720
|
});
|
|
1778
1721
|
},
|
|
1779
|
-
/**
|
|
1780
|
-
* Check-in d\'un joueur avec création d\'un checkout SumUp
|
|
1781
|
-
* @param {string} bookingId
|
|
1782
|
-
* @param {CheckInPlayerSumupRequest} checkInPlayerSumupRequest
|
|
1783
|
-
* @param {*} [options] Override http request option.
|
|
1784
|
-
* @throws {RequiredError}
|
|
1785
|
-
*/
|
|
1786
|
-
checkInPlayerWithSumup(bookingId, checkInPlayerSumupRequest, options) {
|
|
1787
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1788
|
-
var _a, _b, _c;
|
|
1789
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.checkInPlayerWithSumup(bookingId, checkInPlayerSumupRequest, options);
|
|
1790
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1791
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsStaffApi.checkInPlayerWithSumup']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1792
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1793
|
-
});
|
|
1794
|
-
},
|
|
1795
1722
|
/**
|
|
1796
1723
|
* Créer une réservation pour un joueur depuis l\'espace staff
|
|
1797
1724
|
* @param {StaffCreateBookingRequest} staffCreateBookingRequest
|
|
@@ -1912,7 +1839,7 @@ const BookingsStaffApiFactory = function (configuration, basePath, axios) {
|
|
|
1912
1839
|
const localVarFp = (0, exports.BookingsStaffApiFp)(configuration);
|
|
1913
1840
|
return {
|
|
1914
1841
|
/**
|
|
1915
|
-
* Check-in d\'un joueur
|
|
1842
|
+
* Check-in d\'un joueur (paiement en ligne ou sur place)
|
|
1916
1843
|
* @param {BookingsStaffApiCheckInPlayerRequest} requestParameters Request parameters.
|
|
1917
1844
|
* @param {*} [options] Override http request option.
|
|
1918
1845
|
* @throws {RequiredError}
|
|
@@ -1920,15 +1847,6 @@ const BookingsStaffApiFactory = function (configuration, basePath, axios) {
|
|
|
1920
1847
|
checkInPlayer(requestParameters, options) {
|
|
1921
1848
|
return localVarFp.checkInPlayer(requestParameters.bookingId, requestParameters.checkInPlayerRequest, options).then((request) => request(axios, basePath));
|
|
1922
1849
|
},
|
|
1923
|
-
/**
|
|
1924
|
-
* Check-in d\'un joueur avec création d\'un checkout SumUp
|
|
1925
|
-
* @param {BookingsStaffApiCheckInPlayerWithSumupRequest} requestParameters Request parameters.
|
|
1926
|
-
* @param {*} [options] Override http request option.
|
|
1927
|
-
* @throws {RequiredError}
|
|
1928
|
-
*/
|
|
1929
|
-
checkInPlayerWithSumup(requestParameters, options) {
|
|
1930
|
-
return localVarFp.checkInPlayerWithSumup(requestParameters.bookingId, requestParameters.checkInPlayerSumupRequest, options).then((request) => request(axios, basePath));
|
|
1931
|
-
},
|
|
1932
1850
|
/**
|
|
1933
1851
|
* Créer une réservation pour un joueur depuis l\'espace staff
|
|
1934
1852
|
* @param {BookingsStaffApiCreateStaffBookingRequest} requestParameters Request parameters.
|
|
@@ -2003,7 +1921,7 @@ exports.BookingsStaffApiFactory = BookingsStaffApiFactory;
|
|
|
2003
1921
|
*/
|
|
2004
1922
|
class BookingsStaffApi extends base_1.BaseAPI {
|
|
2005
1923
|
/**
|
|
2006
|
-
* Check-in d\'un joueur
|
|
1924
|
+
* Check-in d\'un joueur (paiement en ligne ou sur place)
|
|
2007
1925
|
* @param {BookingsStaffApiCheckInPlayerRequest} requestParameters Request parameters.
|
|
2008
1926
|
* @param {*} [options] Override http request option.
|
|
2009
1927
|
* @throws {RequiredError}
|
|
@@ -2012,16 +1930,6 @@ class BookingsStaffApi extends base_1.BaseAPI {
|
|
|
2012
1930
|
checkInPlayer(requestParameters, options) {
|
|
2013
1931
|
return (0, exports.BookingsStaffApiFp)(this.configuration).checkInPlayer(requestParameters.bookingId, requestParameters.checkInPlayerRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2014
1932
|
}
|
|
2015
|
-
/**
|
|
2016
|
-
* Check-in d\'un joueur avec création d\'un checkout SumUp
|
|
2017
|
-
* @param {BookingsStaffApiCheckInPlayerWithSumupRequest} requestParameters Request parameters.
|
|
2018
|
-
* @param {*} [options] Override http request option.
|
|
2019
|
-
* @throws {RequiredError}
|
|
2020
|
-
* @memberof BookingsStaffApi
|
|
2021
|
-
*/
|
|
2022
|
-
checkInPlayerWithSumup(requestParameters, options) {
|
|
2023
|
-
return (0, exports.BookingsStaffApiFp)(this.configuration).checkInPlayerWithSumup(requestParameters.bookingId, requestParameters.checkInPlayerSumupRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2024
|
-
}
|
|
2025
1933
|
/**
|
|
2026
1934
|
* Créer une réservation pour un joueur depuis l\'espace staff
|
|
2027
1935
|
* @param {BookingsStaffApiCreateStaffBookingRequest} requestParameters Request parameters.
|
|
@@ -10972,16 +10880,12 @@ const EventsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
10972
10880
|
};
|
|
10973
10881
|
}),
|
|
10974
10882
|
/**
|
|
10975
|
-
*
|
|
10976
|
-
* @param {string} eventId
|
|
10883
|
+
*
|
|
10977
10884
|
* @param {*} [options] Override http request option.
|
|
10978
10885
|
* @throws {RequiredError}
|
|
10979
10886
|
*/
|
|
10980
|
-
|
|
10981
|
-
|
|
10982
|
-
(0, common_1.assertParamExists)('getEventByIdForStaff', 'eventId', eventId);
|
|
10983
|
-
const localVarPath = `/api/events/staff/{eventId}`
|
|
10984
|
-
.replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
|
|
10887
|
+
getDraftEventsByClub: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
10888
|
+
const localVarPath = `/api/events/staff/getEvents/drafts`;
|
|
10985
10889
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10986
10890
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
10987
10891
|
let baseOptions;
|
|
@@ -11003,12 +10907,16 @@ const EventsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
11003
10907
|
};
|
|
11004
10908
|
}),
|
|
11005
10909
|
/**
|
|
11006
|
-
*
|
|
10910
|
+
* Get a specific event by ID (staff)
|
|
10911
|
+
* @param {string} eventId
|
|
11007
10912
|
* @param {*} [options] Override http request option.
|
|
11008
10913
|
* @throws {RequiredError}
|
|
11009
10914
|
*/
|
|
11010
|
-
|
|
11011
|
-
|
|
10915
|
+
getEventByIdForStaff: (eventId_1, ...args_1) => __awaiter(this, [eventId_1, ...args_1], void 0, function* (eventId, options = {}) {
|
|
10916
|
+
// verify required parameter 'eventId' is not null or undefined
|
|
10917
|
+
(0, common_1.assertParamExists)('getEventByIdForStaff', 'eventId', eventId);
|
|
10918
|
+
const localVarPath = `/api/events/staff/{eventId}`
|
|
10919
|
+
.replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
|
|
11012
10920
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11013
10921
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
11014
10922
|
let baseOptions;
|
|
@@ -11076,6 +10984,60 @@ const EventsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
11076
10984
|
options: localVarRequestOptions,
|
|
11077
10985
|
};
|
|
11078
10986
|
}),
|
|
10987
|
+
/**
|
|
10988
|
+
*
|
|
10989
|
+
* @param {*} [options] Override http request option.
|
|
10990
|
+
* @throws {RequiredError}
|
|
10991
|
+
*/
|
|
10992
|
+
getPastEventsByClub: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
10993
|
+
const localVarPath = `/api/events/staff/getEvents/past`;
|
|
10994
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10995
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
10996
|
+
let baseOptions;
|
|
10997
|
+
if (configuration) {
|
|
10998
|
+
baseOptions = configuration.baseOptions;
|
|
10999
|
+
}
|
|
11000
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
11001
|
+
const localVarHeaderParameter = {};
|
|
11002
|
+
const localVarQueryParameter = {};
|
|
11003
|
+
// authentication bearerAuth required
|
|
11004
|
+
// http bearer authentication required
|
|
11005
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
11006
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
11007
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11008
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
11009
|
+
return {
|
|
11010
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
11011
|
+
options: localVarRequestOptions,
|
|
11012
|
+
};
|
|
11013
|
+
}),
|
|
11014
|
+
/**
|
|
11015
|
+
* // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
|
|
11016
|
+
* @param {*} [options] Override http request option.
|
|
11017
|
+
* @throws {RequiredError}
|
|
11018
|
+
*/
|
|
11019
|
+
getUpcomingEventsByClub: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
11020
|
+
const localVarPath = `/api/events/staff/getEvents/upcoming`;
|
|
11021
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11022
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
11023
|
+
let baseOptions;
|
|
11024
|
+
if (configuration) {
|
|
11025
|
+
baseOptions = configuration.baseOptions;
|
|
11026
|
+
}
|
|
11027
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
11028
|
+
const localVarHeaderParameter = {};
|
|
11029
|
+
const localVarQueryParameter = {};
|
|
11030
|
+
// authentication bearerAuth required
|
|
11031
|
+
// http bearer authentication required
|
|
11032
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
11033
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
11034
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11035
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
11036
|
+
return {
|
|
11037
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
11038
|
+
options: localVarRequestOptions,
|
|
11039
|
+
};
|
|
11040
|
+
}),
|
|
11079
11041
|
/**
|
|
11080
11042
|
* Get events for the week view (30 day sliding window)
|
|
11081
11043
|
* @param {string} [clubId]
|
|
@@ -11169,31 +11131,31 @@ const EventsStaffApiFp = function (configuration) {
|
|
|
11169
11131
|
});
|
|
11170
11132
|
},
|
|
11171
11133
|
/**
|
|
11172
|
-
*
|
|
11173
|
-
* @param {string} eventId
|
|
11134
|
+
*
|
|
11174
11135
|
* @param {*} [options] Override http request option.
|
|
11175
11136
|
* @throws {RequiredError}
|
|
11176
11137
|
*/
|
|
11177
|
-
|
|
11138
|
+
getDraftEventsByClub(options) {
|
|
11178
11139
|
return __awaiter(this, void 0, void 0, function* () {
|
|
11179
11140
|
var _a, _b, _c;
|
|
11180
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
11141
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getDraftEventsByClub(options);
|
|
11181
11142
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
11182
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EventsStaffApi.
|
|
11143
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EventsStaffApi.getDraftEventsByClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
11183
11144
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11184
11145
|
});
|
|
11185
11146
|
},
|
|
11186
11147
|
/**
|
|
11187
|
-
*
|
|
11148
|
+
* Get a specific event by ID (staff)
|
|
11149
|
+
* @param {string} eventId
|
|
11188
11150
|
* @param {*} [options] Override http request option.
|
|
11189
11151
|
* @throws {RequiredError}
|
|
11190
11152
|
*/
|
|
11191
|
-
|
|
11153
|
+
getEventByIdForStaff(eventId, options) {
|
|
11192
11154
|
return __awaiter(this, void 0, void 0, function* () {
|
|
11193
11155
|
var _a, _b, _c;
|
|
11194
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
11156
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getEventByIdForStaff(eventId, options);
|
|
11195
11157
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
11196
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EventsStaffApi.
|
|
11158
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EventsStaffApi.getEventByIdForStaff']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
11197
11159
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11198
11160
|
});
|
|
11199
11161
|
},
|
|
@@ -11216,6 +11178,34 @@ const EventsStaffApiFp = function (configuration) {
|
|
|
11216
11178
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11217
11179
|
});
|
|
11218
11180
|
},
|
|
11181
|
+
/**
|
|
11182
|
+
*
|
|
11183
|
+
* @param {*} [options] Override http request option.
|
|
11184
|
+
* @throws {RequiredError}
|
|
11185
|
+
*/
|
|
11186
|
+
getPastEventsByClub(options) {
|
|
11187
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
11188
|
+
var _a, _b, _c;
|
|
11189
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getPastEventsByClub(options);
|
|
11190
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
11191
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EventsStaffApi.getPastEventsByClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
11192
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11193
|
+
});
|
|
11194
|
+
},
|
|
11195
|
+
/**
|
|
11196
|
+
* // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
|
|
11197
|
+
* @param {*} [options] Override http request option.
|
|
11198
|
+
* @throws {RequiredError}
|
|
11199
|
+
*/
|
|
11200
|
+
getUpcomingEventsByClub(options) {
|
|
11201
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
11202
|
+
var _a, _b, _c;
|
|
11203
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getUpcomingEventsByClub(options);
|
|
11204
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
11205
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EventsStaffApi.getUpcomingEventsByClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
11206
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11207
|
+
});
|
|
11208
|
+
},
|
|
11219
11209
|
/**
|
|
11220
11210
|
* Get events for the week view (30 day sliding window)
|
|
11221
11211
|
* @param {string} [clubId]
|
|
@@ -11264,21 +11254,21 @@ const EventsStaffApiFactory = function (configuration, basePath, axios) {
|
|
|
11264
11254
|
return localVarFp.getDailyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(axios, basePath));
|
|
11265
11255
|
},
|
|
11266
11256
|
/**
|
|
11267
|
-
*
|
|
11268
|
-
* @param {EventsStaffApiGetEventByIdForStaffRequest} requestParameters Request parameters.
|
|
11257
|
+
*
|
|
11269
11258
|
* @param {*} [options] Override http request option.
|
|
11270
11259
|
* @throws {RequiredError}
|
|
11271
11260
|
*/
|
|
11272
|
-
|
|
11273
|
-
return localVarFp.
|
|
11261
|
+
getDraftEventsByClub(options) {
|
|
11262
|
+
return localVarFp.getDraftEventsByClub(options).then((request) => request(axios, basePath));
|
|
11274
11263
|
},
|
|
11275
11264
|
/**
|
|
11276
|
-
*
|
|
11265
|
+
* Get a specific event by ID (staff)
|
|
11266
|
+
* @param {EventsStaffApiGetEventByIdForStaffRequest} requestParameters Request parameters.
|
|
11277
11267
|
* @param {*} [options] Override http request option.
|
|
11278
11268
|
* @throws {RequiredError}
|
|
11279
11269
|
*/
|
|
11280
|
-
|
|
11281
|
-
return localVarFp.
|
|
11270
|
+
getEventByIdForStaff(requestParameters, options) {
|
|
11271
|
+
return localVarFp.getEventByIdForStaff(requestParameters.eventId, options).then((request) => request(axios, basePath));
|
|
11282
11272
|
},
|
|
11283
11273
|
/**
|
|
11284
11274
|
* Get events for the entire month view (including recurring occurrences)
|
|
@@ -11289,6 +11279,22 @@ const EventsStaffApiFactory = function (configuration, basePath, axios) {
|
|
|
11289
11279
|
getMonthlyEvents(requestParameters = {}, options) {
|
|
11290
11280
|
return localVarFp.getMonthlyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(axios, basePath));
|
|
11291
11281
|
},
|
|
11282
|
+
/**
|
|
11283
|
+
*
|
|
11284
|
+
* @param {*} [options] Override http request option.
|
|
11285
|
+
* @throws {RequiredError}
|
|
11286
|
+
*/
|
|
11287
|
+
getPastEventsByClub(options) {
|
|
11288
|
+
return localVarFp.getPastEventsByClub(options).then((request) => request(axios, basePath));
|
|
11289
|
+
},
|
|
11290
|
+
/**
|
|
11291
|
+
* // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
|
|
11292
|
+
* @param {*} [options] Override http request option.
|
|
11293
|
+
* @throws {RequiredError}
|
|
11294
|
+
*/
|
|
11295
|
+
getUpcomingEventsByClub(options) {
|
|
11296
|
+
return localVarFp.getUpcomingEventsByClub(options).then((request) => request(axios, basePath));
|
|
11297
|
+
},
|
|
11292
11298
|
/**
|
|
11293
11299
|
* Get events for the week view (30 day sliding window)
|
|
11294
11300
|
* @param {EventsStaffApiGetWeeklyEventsRequest} requestParameters Request parameters.
|
|
@@ -11329,23 +11335,23 @@ class EventsStaffApi extends base_1.BaseAPI {
|
|
|
11329
11335
|
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));
|
|
11330
11336
|
}
|
|
11331
11337
|
/**
|
|
11332
|
-
*
|
|
11333
|
-
* @param {EventsStaffApiGetEventByIdForStaffRequest} requestParameters Request parameters.
|
|
11338
|
+
*
|
|
11334
11339
|
* @param {*} [options] Override http request option.
|
|
11335
11340
|
* @throws {RequiredError}
|
|
11336
11341
|
* @memberof EventsStaffApi
|
|
11337
11342
|
*/
|
|
11338
|
-
|
|
11339
|
-
return (0, exports.EventsStaffApiFp)(this.configuration).
|
|
11343
|
+
getDraftEventsByClub(options) {
|
|
11344
|
+
return (0, exports.EventsStaffApiFp)(this.configuration).getDraftEventsByClub(options).then((request) => request(this.axios, this.basePath));
|
|
11340
11345
|
}
|
|
11341
11346
|
/**
|
|
11342
|
-
*
|
|
11347
|
+
* Get a specific event by ID (staff)
|
|
11348
|
+
* @param {EventsStaffApiGetEventByIdForStaffRequest} requestParameters Request parameters.
|
|
11343
11349
|
* @param {*} [options] Override http request option.
|
|
11344
11350
|
* @throws {RequiredError}
|
|
11345
11351
|
* @memberof EventsStaffApi
|
|
11346
11352
|
*/
|
|
11347
|
-
|
|
11348
|
-
return (0, exports.EventsStaffApiFp)(this.configuration).
|
|
11353
|
+
getEventByIdForStaff(requestParameters, options) {
|
|
11354
|
+
return (0, exports.EventsStaffApiFp)(this.configuration).getEventByIdForStaff(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
|
|
11349
11355
|
}
|
|
11350
11356
|
/**
|
|
11351
11357
|
* Get events for the entire month view (including recurring occurrences)
|
|
@@ -11357,6 +11363,24 @@ class EventsStaffApi extends base_1.BaseAPI {
|
|
|
11357
11363
|
getMonthlyEvents(requestParameters = {}, options) {
|
|
11358
11364
|
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));
|
|
11359
11365
|
}
|
|
11366
|
+
/**
|
|
11367
|
+
*
|
|
11368
|
+
* @param {*} [options] Override http request option.
|
|
11369
|
+
* @throws {RequiredError}
|
|
11370
|
+
* @memberof EventsStaffApi
|
|
11371
|
+
*/
|
|
11372
|
+
getPastEventsByClub(options) {
|
|
11373
|
+
return (0, exports.EventsStaffApiFp)(this.configuration).getPastEventsByClub(options).then((request) => request(this.axios, this.basePath));
|
|
11374
|
+
}
|
|
11375
|
+
/**
|
|
11376
|
+
* // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
|
|
11377
|
+
* @param {*} [options] Override http request option.
|
|
11378
|
+
* @throws {RequiredError}
|
|
11379
|
+
* @memberof EventsStaffApi
|
|
11380
|
+
*/
|
|
11381
|
+
getUpcomingEventsByClub(options) {
|
|
11382
|
+
return (0, exports.EventsStaffApiFp)(this.configuration).getUpcomingEventsByClub(options).then((request) => request(this.axios, this.basePath));
|
|
11383
|
+
}
|
|
11360
11384
|
/**
|
|
11361
11385
|
* Get events for the week view (30 day sliding window)
|
|
11362
11386
|
* @param {EventsStaffApiGetWeeklyEventsRequest} requestParameters Request parameters.
|
|
@@ -11519,27 +11543,21 @@ class ImagesApi extends base_1.BaseAPI {
|
|
|
11519
11543
|
}
|
|
11520
11544
|
exports.ImagesApi = ImagesApi;
|
|
11521
11545
|
/**
|
|
11522
|
-
*
|
|
11546
|
+
* PublicEmailApi - axios parameter creator
|
|
11523
11547
|
* @export
|
|
11524
11548
|
*/
|
|
11525
|
-
const
|
|
11549
|
+
const PublicEmailApiAxiosParamCreator = function (configuration) {
|
|
11526
11550
|
return {
|
|
11527
11551
|
/**
|
|
11528
|
-
*
|
|
11529
|
-
* @param {
|
|
11530
|
-
* @param {string} paymentId
|
|
11531
|
-
* @param {SumupCancelPaymentRequest} [sumupCancelPaymentRequest]
|
|
11552
|
+
*
|
|
11553
|
+
* @param {EmailExistsRequestBody} emailExistsRequestBody
|
|
11532
11554
|
* @param {*} [options] Override http request option.
|
|
11533
11555
|
* @throws {RequiredError}
|
|
11534
11556
|
*/
|
|
11535
|
-
|
|
11536
|
-
// verify required parameter '
|
|
11537
|
-
(0, common_1.assertParamExists)('
|
|
11538
|
-
|
|
11539
|
-
(0, common_1.assertParamExists)('cancelSumupPayment', 'paymentId', paymentId);
|
|
11540
|
-
const localVarPath = `/api/clubs/{clubId}/payments/sumup/{paymentId}/cancel`
|
|
11541
|
-
.replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)))
|
|
11542
|
-
.replace(`{${"paymentId"}}`, encodeURIComponent(String(paymentId)));
|
|
11557
|
+
authEmailExists: (emailExistsRequestBody_1, ...args_1) => __awaiter(this, [emailExistsRequestBody_1, ...args_1], void 0, function* (emailExistsRequestBody, options = {}) {
|
|
11558
|
+
// verify required parameter 'emailExistsRequestBody' is not null or undefined
|
|
11559
|
+
(0, common_1.assertParamExists)('authEmailExists', 'emailExistsRequestBody', emailExistsRequestBody);
|
|
11560
|
+
const localVarPath = `/api/public-email/auth-email-exists`;
|
|
11543
11561
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11544
11562
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
11545
11563
|
let baseOptions;
|
|
@@ -11549,33 +11567,26 @@ const PaymentsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
11549
11567
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
11550
11568
|
const localVarHeaderParameter = {};
|
|
11551
11569
|
const localVarQueryParameter = {};
|
|
11552
|
-
// authentication bearerAuth required
|
|
11553
|
-
// http bearer authentication required
|
|
11554
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
11555
11570
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
11556
11571
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
11557
11572
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11558
11573
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
11559
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
11574
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(emailExistsRequestBody, localVarRequestOptions, configuration);
|
|
11560
11575
|
return {
|
|
11561
11576
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
11562
11577
|
options: localVarRequestOptions,
|
|
11563
11578
|
};
|
|
11564
11579
|
}),
|
|
11565
11580
|
/**
|
|
11566
|
-
*
|
|
11567
|
-
* @param {
|
|
11568
|
-
* @param {SumupCreatePaymentRequest} sumupCreatePaymentRequest
|
|
11581
|
+
*
|
|
11582
|
+
* @param {RequestEmailCodeBody} requestEmailCodeBody
|
|
11569
11583
|
* @param {*} [options] Override http request option.
|
|
11570
11584
|
* @throws {RequiredError}
|
|
11571
11585
|
*/
|
|
11572
|
-
|
|
11573
|
-
// verify required parameter '
|
|
11574
|
-
(0, common_1.assertParamExists)('
|
|
11575
|
-
|
|
11576
|
-
(0, common_1.assertParamExists)('createSumupPayment', 'sumupCreatePaymentRequest', sumupCreatePaymentRequest);
|
|
11577
|
-
const localVarPath = `/api/clubs/{clubId}/payments/sumup`
|
|
11578
|
-
.replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
|
|
11586
|
+
requestVerificationCode: (requestEmailCodeBody_1, ...args_1) => __awaiter(this, [requestEmailCodeBody_1, ...args_1], void 0, function* (requestEmailCodeBody, options = {}) {
|
|
11587
|
+
// verify required parameter 'requestEmailCodeBody' is not null or undefined
|
|
11588
|
+
(0, common_1.assertParamExists)('requestVerificationCode', 'requestEmailCodeBody', requestEmailCodeBody);
|
|
11589
|
+
const localVarPath = `/api/public-email/request-verification-code`;
|
|
11579
11590
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11580
11591
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
11581
11592
|
let baseOptions;
|
|
@@ -11585,189 +11596,19 @@ const PaymentsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
11585
11596
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
11586
11597
|
const localVarHeaderParameter = {};
|
|
11587
11598
|
const localVarQueryParameter = {};
|
|
11588
|
-
// authentication bearerAuth required
|
|
11589
|
-
// http bearer authentication required
|
|
11590
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
11591
11599
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
11592
11600
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
11593
11601
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11594
11602
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
11595
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
11603
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(requestEmailCodeBody, localVarRequestOptions, configuration);
|
|
11596
11604
|
return {
|
|
11597
11605
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
11598
11606
|
options: localVarRequestOptions,
|
|
11599
11607
|
};
|
|
11600
11608
|
}),
|
|
11601
|
-
};
|
|
11602
|
-
};
|
|
11603
|
-
exports.PaymentsStaffApiAxiosParamCreator = PaymentsStaffApiAxiosParamCreator;
|
|
11604
|
-
/**
|
|
11605
|
-
* PaymentsStaffApi - functional programming interface
|
|
11606
|
-
* @export
|
|
11607
|
-
*/
|
|
11608
|
-
const PaymentsStaffApiFp = function (configuration) {
|
|
11609
|
-
const localVarAxiosParamCreator = (0, exports.PaymentsStaffApiAxiosParamCreator)(configuration);
|
|
11610
|
-
return {
|
|
11611
11609
|
/**
|
|
11612
|
-
*
|
|
11613
|
-
* @param {
|
|
11614
|
-
* @param {string} paymentId
|
|
11615
|
-
* @param {SumupCancelPaymentRequest} [sumupCancelPaymentRequest]
|
|
11616
|
-
* @param {*} [options] Override http request option.
|
|
11617
|
-
* @throws {RequiredError}
|
|
11618
|
-
*/
|
|
11619
|
-
cancelSumupPayment(clubId, paymentId, sumupCancelPaymentRequest, options) {
|
|
11620
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
11621
|
-
var _a, _b, _c;
|
|
11622
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.cancelSumupPayment(clubId, paymentId, sumupCancelPaymentRequest, options);
|
|
11623
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
11624
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PaymentsStaffApi.cancelSumupPayment']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
11625
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11626
|
-
});
|
|
11627
|
-
},
|
|
11628
|
-
/**
|
|
11629
|
-
* Start a SumUp reader checkout (manual payment trigger).
|
|
11630
|
-
* @param {string} clubId
|
|
11631
|
-
* @param {SumupCreatePaymentRequest} sumupCreatePaymentRequest
|
|
11632
|
-
* @param {*} [options] Override http request option.
|
|
11633
|
-
* @throws {RequiredError}
|
|
11634
|
-
*/
|
|
11635
|
-
createSumupPayment(clubId, sumupCreatePaymentRequest, options) {
|
|
11636
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
11637
|
-
var _a, _b, _c;
|
|
11638
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.createSumupPayment(clubId, sumupCreatePaymentRequest, options);
|
|
11639
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
11640
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PaymentsStaffApi.createSumupPayment']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
11641
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11642
|
-
});
|
|
11643
|
-
},
|
|
11644
|
-
};
|
|
11645
|
-
};
|
|
11646
|
-
exports.PaymentsStaffApiFp = PaymentsStaffApiFp;
|
|
11647
|
-
/**
|
|
11648
|
-
* PaymentsStaffApi - factory interface
|
|
11649
|
-
* @export
|
|
11650
|
-
*/
|
|
11651
|
-
const PaymentsStaffApiFactory = function (configuration, basePath, axios) {
|
|
11652
|
-
const localVarFp = (0, exports.PaymentsStaffApiFp)(configuration);
|
|
11653
|
-
return {
|
|
11654
|
-
/**
|
|
11655
|
-
* Cancel a SumUp reader checkout.
|
|
11656
|
-
* @param {PaymentsStaffApiCancelSumupPaymentRequest} requestParameters Request parameters.
|
|
11657
|
-
* @param {*} [options] Override http request option.
|
|
11658
|
-
* @throws {RequiredError}
|
|
11659
|
-
*/
|
|
11660
|
-
cancelSumupPayment(requestParameters, options) {
|
|
11661
|
-
return localVarFp.cancelSumupPayment(requestParameters.clubId, requestParameters.paymentId, requestParameters.sumupCancelPaymentRequest, options).then((request) => request(axios, basePath));
|
|
11662
|
-
},
|
|
11663
|
-
/**
|
|
11664
|
-
* Start a SumUp reader checkout (manual payment trigger).
|
|
11665
|
-
* @param {PaymentsStaffApiCreateSumupPaymentRequest} requestParameters Request parameters.
|
|
11666
|
-
* @param {*} [options] Override http request option.
|
|
11667
|
-
* @throws {RequiredError}
|
|
11668
|
-
*/
|
|
11669
|
-
createSumupPayment(requestParameters, options) {
|
|
11670
|
-
return localVarFp.createSumupPayment(requestParameters.clubId, requestParameters.sumupCreatePaymentRequest, options).then((request) => request(axios, basePath));
|
|
11671
|
-
},
|
|
11672
|
-
};
|
|
11673
|
-
};
|
|
11674
|
-
exports.PaymentsStaffApiFactory = PaymentsStaffApiFactory;
|
|
11675
|
-
/**
|
|
11676
|
-
* PaymentsStaffApi - object-oriented interface
|
|
11677
|
-
* @export
|
|
11678
|
-
* @class PaymentsStaffApi
|
|
11679
|
-
* @extends {BaseAPI}
|
|
11680
|
-
*/
|
|
11681
|
-
class PaymentsStaffApi extends base_1.BaseAPI {
|
|
11682
|
-
/**
|
|
11683
|
-
* Cancel a SumUp reader checkout.
|
|
11684
|
-
* @param {PaymentsStaffApiCancelSumupPaymentRequest} requestParameters Request parameters.
|
|
11685
|
-
* @param {*} [options] Override http request option.
|
|
11686
|
-
* @throws {RequiredError}
|
|
11687
|
-
* @memberof PaymentsStaffApi
|
|
11688
|
-
*/
|
|
11689
|
-
cancelSumupPayment(requestParameters, options) {
|
|
11690
|
-
return (0, exports.PaymentsStaffApiFp)(this.configuration).cancelSumupPayment(requestParameters.clubId, requestParameters.paymentId, requestParameters.sumupCancelPaymentRequest, options).then((request) => request(this.axios, this.basePath));
|
|
11691
|
-
}
|
|
11692
|
-
/**
|
|
11693
|
-
* Start a SumUp reader checkout (manual payment trigger).
|
|
11694
|
-
* @param {PaymentsStaffApiCreateSumupPaymentRequest} requestParameters Request parameters.
|
|
11695
|
-
* @param {*} [options] Override http request option.
|
|
11696
|
-
* @throws {RequiredError}
|
|
11697
|
-
* @memberof PaymentsStaffApi
|
|
11698
|
-
*/
|
|
11699
|
-
createSumupPayment(requestParameters, options) {
|
|
11700
|
-
return (0, exports.PaymentsStaffApiFp)(this.configuration).createSumupPayment(requestParameters.clubId, requestParameters.sumupCreatePaymentRequest, options).then((request) => request(this.axios, this.basePath));
|
|
11701
|
-
}
|
|
11702
|
-
}
|
|
11703
|
-
exports.PaymentsStaffApi = PaymentsStaffApi;
|
|
11704
|
-
/**
|
|
11705
|
-
* PublicEmailApi - axios parameter creator
|
|
11706
|
-
* @export
|
|
11707
|
-
*/
|
|
11708
|
-
const PublicEmailApiAxiosParamCreator = function (configuration) {
|
|
11709
|
-
return {
|
|
11710
|
-
/**
|
|
11711
|
-
*
|
|
11712
|
-
* @param {EmailExistsRequestBody} emailExistsRequestBody
|
|
11713
|
-
* @param {*} [options] Override http request option.
|
|
11714
|
-
* @throws {RequiredError}
|
|
11715
|
-
*/
|
|
11716
|
-
authEmailExists: (emailExistsRequestBody_1, ...args_1) => __awaiter(this, [emailExistsRequestBody_1, ...args_1], void 0, function* (emailExistsRequestBody, options = {}) {
|
|
11717
|
-
// verify required parameter 'emailExistsRequestBody' is not null or undefined
|
|
11718
|
-
(0, common_1.assertParamExists)('authEmailExists', 'emailExistsRequestBody', emailExistsRequestBody);
|
|
11719
|
-
const localVarPath = `/api/public-email/auth-email-exists`;
|
|
11720
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11721
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
11722
|
-
let baseOptions;
|
|
11723
|
-
if (configuration) {
|
|
11724
|
-
baseOptions = configuration.baseOptions;
|
|
11725
|
-
}
|
|
11726
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
11727
|
-
const localVarHeaderParameter = {};
|
|
11728
|
-
const localVarQueryParameter = {};
|
|
11729
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
11730
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
11731
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11732
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
11733
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(emailExistsRequestBody, localVarRequestOptions, configuration);
|
|
11734
|
-
return {
|
|
11735
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
11736
|
-
options: localVarRequestOptions,
|
|
11737
|
-
};
|
|
11738
|
-
}),
|
|
11739
|
-
/**
|
|
11740
|
-
*
|
|
11741
|
-
* @param {RequestEmailCodeBody} requestEmailCodeBody
|
|
11742
|
-
* @param {*} [options] Override http request option.
|
|
11743
|
-
* @throws {RequiredError}
|
|
11744
|
-
*/
|
|
11745
|
-
requestVerificationCode: (requestEmailCodeBody_1, ...args_1) => __awaiter(this, [requestEmailCodeBody_1, ...args_1], void 0, function* (requestEmailCodeBody, options = {}) {
|
|
11746
|
-
// verify required parameter 'requestEmailCodeBody' is not null or undefined
|
|
11747
|
-
(0, common_1.assertParamExists)('requestVerificationCode', 'requestEmailCodeBody', requestEmailCodeBody);
|
|
11748
|
-
const localVarPath = `/api/public-email/request-verification-code`;
|
|
11749
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11750
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
11751
|
-
let baseOptions;
|
|
11752
|
-
if (configuration) {
|
|
11753
|
-
baseOptions = configuration.baseOptions;
|
|
11754
|
-
}
|
|
11755
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
11756
|
-
const localVarHeaderParameter = {};
|
|
11757
|
-
const localVarQueryParameter = {};
|
|
11758
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
11759
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
11760
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11761
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
11762
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(requestEmailCodeBody, localVarRequestOptions, configuration);
|
|
11763
|
-
return {
|
|
11764
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
11765
|
-
options: localVarRequestOptions,
|
|
11766
|
-
};
|
|
11767
|
-
}),
|
|
11768
|
-
/**
|
|
11769
|
-
*
|
|
11770
|
-
* @param {VerifyEmailCodeBody} verifyEmailCodeBody
|
|
11610
|
+
*
|
|
11611
|
+
* @param {VerifyEmailCodeBody} verifyEmailCodeBody
|
|
11771
11612
|
* @param {*} [options] Override http request option.
|
|
11772
11613
|
* @throws {RequiredError}
|
|
11773
11614
|
*/
|
|
@@ -13125,554 +12966,6 @@ class SubscriptionsUserApi extends base_1.BaseAPI {
|
|
|
13125
12966
|
}
|
|
13126
12967
|
}
|
|
13127
12968
|
exports.SubscriptionsUserApi = SubscriptionsUserApi;
|
|
13128
|
-
/**
|
|
13129
|
-
* SumUpApi - axios parameter creator
|
|
13130
|
-
* @export
|
|
13131
|
-
*/
|
|
13132
|
-
const SumUpApiAxiosParamCreator = function (configuration) {
|
|
13133
|
-
return {
|
|
13134
|
-
/**
|
|
13135
|
-
* OAuth callback for SumUp.
|
|
13136
|
-
* @param {string} code
|
|
13137
|
-
* @param {string} state
|
|
13138
|
-
* @param {*} [options] Override http request option.
|
|
13139
|
-
* @throws {RequiredError}
|
|
13140
|
-
*/
|
|
13141
|
-
sumupOauthCallback: (code_1, state_1, ...args_1) => __awaiter(this, [code_1, state_1, ...args_1], void 0, function* (code, state, options = {}) {
|
|
13142
|
-
// verify required parameter 'code' is not null or undefined
|
|
13143
|
-
(0, common_1.assertParamExists)('sumupOauthCallback', 'code', code);
|
|
13144
|
-
// verify required parameter 'state' is not null or undefined
|
|
13145
|
-
(0, common_1.assertParamExists)('sumupOauthCallback', 'state', state);
|
|
13146
|
-
const localVarPath = `/api/sumup/oauth/callback`;
|
|
13147
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13148
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
13149
|
-
let baseOptions;
|
|
13150
|
-
if (configuration) {
|
|
13151
|
-
baseOptions = configuration.baseOptions;
|
|
13152
|
-
}
|
|
13153
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
13154
|
-
const localVarHeaderParameter = {};
|
|
13155
|
-
const localVarQueryParameter = {};
|
|
13156
|
-
if (code !== undefined) {
|
|
13157
|
-
localVarQueryParameter['code'] = code;
|
|
13158
|
-
}
|
|
13159
|
-
if (state !== undefined) {
|
|
13160
|
-
localVarQueryParameter['state'] = state;
|
|
13161
|
-
}
|
|
13162
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
13163
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13164
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
13165
|
-
return {
|
|
13166
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
13167
|
-
options: localVarRequestOptions,
|
|
13168
|
-
};
|
|
13169
|
-
}),
|
|
13170
|
-
};
|
|
13171
|
-
};
|
|
13172
|
-
exports.SumUpApiAxiosParamCreator = SumUpApiAxiosParamCreator;
|
|
13173
|
-
/**
|
|
13174
|
-
* SumUpApi - functional programming interface
|
|
13175
|
-
* @export
|
|
13176
|
-
*/
|
|
13177
|
-
const SumUpApiFp = function (configuration) {
|
|
13178
|
-
const localVarAxiosParamCreator = (0, exports.SumUpApiAxiosParamCreator)(configuration);
|
|
13179
|
-
return {
|
|
13180
|
-
/**
|
|
13181
|
-
* OAuth callback for SumUp.
|
|
13182
|
-
* @param {string} code
|
|
13183
|
-
* @param {string} state
|
|
13184
|
-
* @param {*} [options] Override http request option.
|
|
13185
|
-
* @throws {RequiredError}
|
|
13186
|
-
*/
|
|
13187
|
-
sumupOauthCallback(code, state, options) {
|
|
13188
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
13189
|
-
var _a, _b, _c;
|
|
13190
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.sumupOauthCallback(code, state, options);
|
|
13191
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
13192
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SumUpApi.sumupOauthCallback']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
13193
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13194
|
-
});
|
|
13195
|
-
},
|
|
13196
|
-
};
|
|
13197
|
-
};
|
|
13198
|
-
exports.SumUpApiFp = SumUpApiFp;
|
|
13199
|
-
/**
|
|
13200
|
-
* SumUpApi - factory interface
|
|
13201
|
-
* @export
|
|
13202
|
-
*/
|
|
13203
|
-
const SumUpApiFactory = function (configuration, basePath, axios) {
|
|
13204
|
-
const localVarFp = (0, exports.SumUpApiFp)(configuration);
|
|
13205
|
-
return {
|
|
13206
|
-
/**
|
|
13207
|
-
* OAuth callback for SumUp.
|
|
13208
|
-
* @param {SumUpApiSumupOauthCallbackRequest} requestParameters Request parameters.
|
|
13209
|
-
* @param {*} [options] Override http request option.
|
|
13210
|
-
* @throws {RequiredError}
|
|
13211
|
-
*/
|
|
13212
|
-
sumupOauthCallback(requestParameters, options) {
|
|
13213
|
-
return localVarFp.sumupOauthCallback(requestParameters.code, requestParameters.state, options).then((request) => request(axios, basePath));
|
|
13214
|
-
},
|
|
13215
|
-
};
|
|
13216
|
-
};
|
|
13217
|
-
exports.SumUpApiFactory = SumUpApiFactory;
|
|
13218
|
-
/**
|
|
13219
|
-
* SumUpApi - object-oriented interface
|
|
13220
|
-
* @export
|
|
13221
|
-
* @class SumUpApi
|
|
13222
|
-
* @extends {BaseAPI}
|
|
13223
|
-
*/
|
|
13224
|
-
class SumUpApi extends base_1.BaseAPI {
|
|
13225
|
-
/**
|
|
13226
|
-
* OAuth callback for SumUp.
|
|
13227
|
-
* @param {SumUpApiSumupOauthCallbackRequest} requestParameters Request parameters.
|
|
13228
|
-
* @param {*} [options] Override http request option.
|
|
13229
|
-
* @throws {RequiredError}
|
|
13230
|
-
* @memberof SumUpApi
|
|
13231
|
-
*/
|
|
13232
|
-
sumupOauthCallback(requestParameters, options) {
|
|
13233
|
-
return (0, exports.SumUpApiFp)(this.configuration).sumupOauthCallback(requestParameters.code, requestParameters.state, options).then((request) => request(this.axios, this.basePath));
|
|
13234
|
-
}
|
|
13235
|
-
}
|
|
13236
|
-
exports.SumUpApi = SumUpApi;
|
|
13237
|
-
/**
|
|
13238
|
-
* SumUpManagerApi - axios parameter creator
|
|
13239
|
-
* @export
|
|
13240
|
-
*/
|
|
13241
|
-
const SumUpManagerApiAxiosParamCreator = function (configuration) {
|
|
13242
|
-
return {
|
|
13243
|
-
/**
|
|
13244
|
-
* Disconnect SumUp account for a club.
|
|
13245
|
-
* @param {string} clubId
|
|
13246
|
-
* @param {*} [options] Override http request option.
|
|
13247
|
-
* @throws {RequiredError}
|
|
13248
|
-
*/
|
|
13249
|
-
disconnectSumup: (clubId_1, ...args_1) => __awaiter(this, [clubId_1, ...args_1], void 0, function* (clubId, options = {}) {
|
|
13250
|
-
// verify required parameter 'clubId' is not null or undefined
|
|
13251
|
-
(0, common_1.assertParamExists)('disconnectSumup', 'clubId', clubId);
|
|
13252
|
-
const localVarPath = `/api/clubs/{clubId}/sumup/disconnect`
|
|
13253
|
-
.replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
|
|
13254
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13255
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
13256
|
-
let baseOptions;
|
|
13257
|
-
if (configuration) {
|
|
13258
|
-
baseOptions = configuration.baseOptions;
|
|
13259
|
-
}
|
|
13260
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
13261
|
-
const localVarHeaderParameter = {};
|
|
13262
|
-
const localVarQueryParameter = {};
|
|
13263
|
-
// authentication bearerAuth required
|
|
13264
|
-
// http bearer authentication required
|
|
13265
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
13266
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
13267
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13268
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
13269
|
-
return {
|
|
13270
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
13271
|
-
options: localVarRequestOptions,
|
|
13272
|
-
};
|
|
13273
|
-
}),
|
|
13274
|
-
/**
|
|
13275
|
-
* Start SumUp OAuth connection for a club.
|
|
13276
|
-
* @param {string} clubId
|
|
13277
|
-
* @param {*} [options] Override http request option.
|
|
13278
|
-
* @throws {RequiredError}
|
|
13279
|
-
*/
|
|
13280
|
-
getSumupConnectUrl: (clubId_1, ...args_1) => __awaiter(this, [clubId_1, ...args_1], void 0, function* (clubId, options = {}) {
|
|
13281
|
-
// verify required parameter 'clubId' is not null or undefined
|
|
13282
|
-
(0, common_1.assertParamExists)('getSumupConnectUrl', 'clubId', clubId);
|
|
13283
|
-
const localVarPath = `/api/clubs/{clubId}/sumup/connect`
|
|
13284
|
-
.replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
|
|
13285
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13286
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
13287
|
-
let baseOptions;
|
|
13288
|
-
if (configuration) {
|
|
13289
|
-
baseOptions = configuration.baseOptions;
|
|
13290
|
-
}
|
|
13291
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
13292
|
-
const localVarHeaderParameter = {};
|
|
13293
|
-
const localVarQueryParameter = {};
|
|
13294
|
-
// authentication bearerAuth required
|
|
13295
|
-
// http bearer authentication required
|
|
13296
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
13297
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
13298
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13299
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
13300
|
-
return {
|
|
13301
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
13302
|
-
options: localVarRequestOptions,
|
|
13303
|
-
};
|
|
13304
|
-
}),
|
|
13305
|
-
/**
|
|
13306
|
-
* Get SumUp connection status for a club.
|
|
13307
|
-
* @param {string} clubId
|
|
13308
|
-
* @param {*} [options] Override http request option.
|
|
13309
|
-
* @throws {RequiredError}
|
|
13310
|
-
*/
|
|
13311
|
-
getSumupStatus: (clubId_1, ...args_1) => __awaiter(this, [clubId_1, ...args_1], void 0, function* (clubId, options = {}) {
|
|
13312
|
-
// verify required parameter 'clubId' is not null or undefined
|
|
13313
|
-
(0, common_1.assertParamExists)('getSumupStatus', 'clubId', clubId);
|
|
13314
|
-
const localVarPath = `/api/clubs/{clubId}/sumup/status`
|
|
13315
|
-
.replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
|
|
13316
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13317
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
13318
|
-
let baseOptions;
|
|
13319
|
-
if (configuration) {
|
|
13320
|
-
baseOptions = configuration.baseOptions;
|
|
13321
|
-
}
|
|
13322
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
13323
|
-
const localVarHeaderParameter = {};
|
|
13324
|
-
const localVarQueryParameter = {};
|
|
13325
|
-
// authentication bearerAuth required
|
|
13326
|
-
// http bearer authentication required
|
|
13327
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
13328
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
13329
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13330
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
13331
|
-
return {
|
|
13332
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
13333
|
-
options: localVarRequestOptions,
|
|
13334
|
-
};
|
|
13335
|
-
}),
|
|
13336
|
-
/**
|
|
13337
|
-
* List SumUp readers for a club.
|
|
13338
|
-
* @param {string} clubId
|
|
13339
|
-
* @param {*} [options] Override http request option.
|
|
13340
|
-
* @throws {RequiredError}
|
|
13341
|
-
*/
|
|
13342
|
-
listSumupReaders: (clubId_1, ...args_1) => __awaiter(this, [clubId_1, ...args_1], void 0, function* (clubId, options = {}) {
|
|
13343
|
-
// verify required parameter 'clubId' is not null or undefined
|
|
13344
|
-
(0, common_1.assertParamExists)('listSumupReaders', 'clubId', clubId);
|
|
13345
|
-
const localVarPath = `/api/clubs/{clubId}/sumup/readers`
|
|
13346
|
-
.replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
|
|
13347
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13348
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
13349
|
-
let baseOptions;
|
|
13350
|
-
if (configuration) {
|
|
13351
|
-
baseOptions = configuration.baseOptions;
|
|
13352
|
-
}
|
|
13353
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
13354
|
-
const localVarHeaderParameter = {};
|
|
13355
|
-
const localVarQueryParameter = {};
|
|
13356
|
-
// authentication bearerAuth required
|
|
13357
|
-
// http bearer authentication required
|
|
13358
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
13359
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
13360
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13361
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
13362
|
-
return {
|
|
13363
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
13364
|
-
options: localVarRequestOptions,
|
|
13365
|
-
};
|
|
13366
|
-
}),
|
|
13367
|
-
/**
|
|
13368
|
-
* Pair a SumUp reader with a club.
|
|
13369
|
-
* @param {string} clubId
|
|
13370
|
-
* @param {SumupPairReaderRequest} sumupPairReaderRequest
|
|
13371
|
-
* @param {*} [options] Override http request option.
|
|
13372
|
-
* @throws {RequiredError}
|
|
13373
|
-
*/
|
|
13374
|
-
pairSumupReader: (clubId_1, sumupPairReaderRequest_1, ...args_1) => __awaiter(this, [clubId_1, sumupPairReaderRequest_1, ...args_1], void 0, function* (clubId, sumupPairReaderRequest, options = {}) {
|
|
13375
|
-
// verify required parameter 'clubId' is not null or undefined
|
|
13376
|
-
(0, common_1.assertParamExists)('pairSumupReader', 'clubId', clubId);
|
|
13377
|
-
// verify required parameter 'sumupPairReaderRequest' is not null or undefined
|
|
13378
|
-
(0, common_1.assertParamExists)('pairSumupReader', 'sumupPairReaderRequest', sumupPairReaderRequest);
|
|
13379
|
-
const localVarPath = `/api/clubs/{clubId}/sumup/readers/pair`
|
|
13380
|
-
.replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
|
|
13381
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13382
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
13383
|
-
let baseOptions;
|
|
13384
|
-
if (configuration) {
|
|
13385
|
-
baseOptions = configuration.baseOptions;
|
|
13386
|
-
}
|
|
13387
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
13388
|
-
const localVarHeaderParameter = {};
|
|
13389
|
-
const localVarQueryParameter = {};
|
|
13390
|
-
// authentication bearerAuth required
|
|
13391
|
-
// http bearer authentication required
|
|
13392
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
13393
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
13394
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
13395
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13396
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
13397
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(sumupPairReaderRequest, localVarRequestOptions, configuration);
|
|
13398
|
-
return {
|
|
13399
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
13400
|
-
options: localVarRequestOptions,
|
|
13401
|
-
};
|
|
13402
|
-
}),
|
|
13403
|
-
/**
|
|
13404
|
-
* Select a SumUp reader for a club.
|
|
13405
|
-
* @param {string} clubId
|
|
13406
|
-
* @param {string} readerId
|
|
13407
|
-
* @param {*} [options] Override http request option.
|
|
13408
|
-
* @throws {RequiredError}
|
|
13409
|
-
*/
|
|
13410
|
-
selectSumupReader: (clubId_1, readerId_1, ...args_1) => __awaiter(this, [clubId_1, readerId_1, ...args_1], void 0, function* (clubId, readerId, options = {}) {
|
|
13411
|
-
// verify required parameter 'clubId' is not null or undefined
|
|
13412
|
-
(0, common_1.assertParamExists)('selectSumupReader', 'clubId', clubId);
|
|
13413
|
-
// verify required parameter 'readerId' is not null or undefined
|
|
13414
|
-
(0, common_1.assertParamExists)('selectSumupReader', 'readerId', readerId);
|
|
13415
|
-
const localVarPath = `/api/clubs/{clubId}/sumup/readers/{readerId}/select`
|
|
13416
|
-
.replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)))
|
|
13417
|
-
.replace(`{${"readerId"}}`, encodeURIComponent(String(readerId)));
|
|
13418
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13419
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
13420
|
-
let baseOptions;
|
|
13421
|
-
if (configuration) {
|
|
13422
|
-
baseOptions = configuration.baseOptions;
|
|
13423
|
-
}
|
|
13424
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
13425
|
-
const localVarHeaderParameter = {};
|
|
13426
|
-
const localVarQueryParameter = {};
|
|
13427
|
-
// authentication bearerAuth required
|
|
13428
|
-
// http bearer authentication required
|
|
13429
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
13430
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
13431
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13432
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
13433
|
-
return {
|
|
13434
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
13435
|
-
options: localVarRequestOptions,
|
|
13436
|
-
};
|
|
13437
|
-
}),
|
|
13438
|
-
};
|
|
13439
|
-
};
|
|
13440
|
-
exports.SumUpManagerApiAxiosParamCreator = SumUpManagerApiAxiosParamCreator;
|
|
13441
|
-
/**
|
|
13442
|
-
* SumUpManagerApi - functional programming interface
|
|
13443
|
-
* @export
|
|
13444
|
-
*/
|
|
13445
|
-
const SumUpManagerApiFp = function (configuration) {
|
|
13446
|
-
const localVarAxiosParamCreator = (0, exports.SumUpManagerApiAxiosParamCreator)(configuration);
|
|
13447
|
-
return {
|
|
13448
|
-
/**
|
|
13449
|
-
* Disconnect SumUp account for a club.
|
|
13450
|
-
* @param {string} clubId
|
|
13451
|
-
* @param {*} [options] Override http request option.
|
|
13452
|
-
* @throws {RequiredError}
|
|
13453
|
-
*/
|
|
13454
|
-
disconnectSumup(clubId, options) {
|
|
13455
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
13456
|
-
var _a, _b, _c;
|
|
13457
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.disconnectSumup(clubId, options);
|
|
13458
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
13459
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SumUpManagerApi.disconnectSumup']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
13460
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13461
|
-
});
|
|
13462
|
-
},
|
|
13463
|
-
/**
|
|
13464
|
-
* Start SumUp OAuth connection for a club.
|
|
13465
|
-
* @param {string} clubId
|
|
13466
|
-
* @param {*} [options] Override http request option.
|
|
13467
|
-
* @throws {RequiredError}
|
|
13468
|
-
*/
|
|
13469
|
-
getSumupConnectUrl(clubId, options) {
|
|
13470
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
13471
|
-
var _a, _b, _c;
|
|
13472
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getSumupConnectUrl(clubId, options);
|
|
13473
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
13474
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SumUpManagerApi.getSumupConnectUrl']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
13475
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13476
|
-
});
|
|
13477
|
-
},
|
|
13478
|
-
/**
|
|
13479
|
-
* Get SumUp connection status for a club.
|
|
13480
|
-
* @param {string} clubId
|
|
13481
|
-
* @param {*} [options] Override http request option.
|
|
13482
|
-
* @throws {RequiredError}
|
|
13483
|
-
*/
|
|
13484
|
-
getSumupStatus(clubId, options) {
|
|
13485
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
13486
|
-
var _a, _b, _c;
|
|
13487
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getSumupStatus(clubId, options);
|
|
13488
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
13489
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SumUpManagerApi.getSumupStatus']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
13490
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13491
|
-
});
|
|
13492
|
-
},
|
|
13493
|
-
/**
|
|
13494
|
-
* List SumUp readers for a club.
|
|
13495
|
-
* @param {string} clubId
|
|
13496
|
-
* @param {*} [options] Override http request option.
|
|
13497
|
-
* @throws {RequiredError}
|
|
13498
|
-
*/
|
|
13499
|
-
listSumupReaders(clubId, options) {
|
|
13500
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
13501
|
-
var _a, _b, _c;
|
|
13502
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listSumupReaders(clubId, options);
|
|
13503
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
13504
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SumUpManagerApi.listSumupReaders']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
13505
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13506
|
-
});
|
|
13507
|
-
},
|
|
13508
|
-
/**
|
|
13509
|
-
* Pair a SumUp reader with a club.
|
|
13510
|
-
* @param {string} clubId
|
|
13511
|
-
* @param {SumupPairReaderRequest} sumupPairReaderRequest
|
|
13512
|
-
* @param {*} [options] Override http request option.
|
|
13513
|
-
* @throws {RequiredError}
|
|
13514
|
-
*/
|
|
13515
|
-
pairSumupReader(clubId, sumupPairReaderRequest, options) {
|
|
13516
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
13517
|
-
var _a, _b, _c;
|
|
13518
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.pairSumupReader(clubId, sumupPairReaderRequest, options);
|
|
13519
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
13520
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SumUpManagerApi.pairSumupReader']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
13521
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13522
|
-
});
|
|
13523
|
-
},
|
|
13524
|
-
/**
|
|
13525
|
-
* Select a SumUp reader for a club.
|
|
13526
|
-
* @param {string} clubId
|
|
13527
|
-
* @param {string} readerId
|
|
13528
|
-
* @param {*} [options] Override http request option.
|
|
13529
|
-
* @throws {RequiredError}
|
|
13530
|
-
*/
|
|
13531
|
-
selectSumupReader(clubId, readerId, options) {
|
|
13532
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
13533
|
-
var _a, _b, _c;
|
|
13534
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.selectSumupReader(clubId, readerId, options);
|
|
13535
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
13536
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SumUpManagerApi.selectSumupReader']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
13537
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13538
|
-
});
|
|
13539
|
-
},
|
|
13540
|
-
};
|
|
13541
|
-
};
|
|
13542
|
-
exports.SumUpManagerApiFp = SumUpManagerApiFp;
|
|
13543
|
-
/**
|
|
13544
|
-
* SumUpManagerApi - factory interface
|
|
13545
|
-
* @export
|
|
13546
|
-
*/
|
|
13547
|
-
const SumUpManagerApiFactory = function (configuration, basePath, axios) {
|
|
13548
|
-
const localVarFp = (0, exports.SumUpManagerApiFp)(configuration);
|
|
13549
|
-
return {
|
|
13550
|
-
/**
|
|
13551
|
-
* Disconnect SumUp account for a club.
|
|
13552
|
-
* @param {SumUpManagerApiDisconnectSumupRequest} requestParameters Request parameters.
|
|
13553
|
-
* @param {*} [options] Override http request option.
|
|
13554
|
-
* @throws {RequiredError}
|
|
13555
|
-
*/
|
|
13556
|
-
disconnectSumup(requestParameters, options) {
|
|
13557
|
-
return localVarFp.disconnectSumup(requestParameters.clubId, options).then((request) => request(axios, basePath));
|
|
13558
|
-
},
|
|
13559
|
-
/**
|
|
13560
|
-
* Start SumUp OAuth connection for a club.
|
|
13561
|
-
* @param {SumUpManagerApiGetSumupConnectUrlRequest} requestParameters Request parameters.
|
|
13562
|
-
* @param {*} [options] Override http request option.
|
|
13563
|
-
* @throws {RequiredError}
|
|
13564
|
-
*/
|
|
13565
|
-
getSumupConnectUrl(requestParameters, options) {
|
|
13566
|
-
return localVarFp.getSumupConnectUrl(requestParameters.clubId, options).then((request) => request(axios, basePath));
|
|
13567
|
-
},
|
|
13568
|
-
/**
|
|
13569
|
-
* Get SumUp connection status for a club.
|
|
13570
|
-
* @param {SumUpManagerApiGetSumupStatusRequest} requestParameters Request parameters.
|
|
13571
|
-
* @param {*} [options] Override http request option.
|
|
13572
|
-
* @throws {RequiredError}
|
|
13573
|
-
*/
|
|
13574
|
-
getSumupStatus(requestParameters, options) {
|
|
13575
|
-
return localVarFp.getSumupStatus(requestParameters.clubId, options).then((request) => request(axios, basePath));
|
|
13576
|
-
},
|
|
13577
|
-
/**
|
|
13578
|
-
* List SumUp readers for a club.
|
|
13579
|
-
* @param {SumUpManagerApiListSumupReadersRequest} requestParameters Request parameters.
|
|
13580
|
-
* @param {*} [options] Override http request option.
|
|
13581
|
-
* @throws {RequiredError}
|
|
13582
|
-
*/
|
|
13583
|
-
listSumupReaders(requestParameters, options) {
|
|
13584
|
-
return localVarFp.listSumupReaders(requestParameters.clubId, options).then((request) => request(axios, basePath));
|
|
13585
|
-
},
|
|
13586
|
-
/**
|
|
13587
|
-
* Pair a SumUp reader with a club.
|
|
13588
|
-
* @param {SumUpManagerApiPairSumupReaderRequest} requestParameters Request parameters.
|
|
13589
|
-
* @param {*} [options] Override http request option.
|
|
13590
|
-
* @throws {RequiredError}
|
|
13591
|
-
*/
|
|
13592
|
-
pairSumupReader(requestParameters, options) {
|
|
13593
|
-
return localVarFp.pairSumupReader(requestParameters.clubId, requestParameters.sumupPairReaderRequest, options).then((request) => request(axios, basePath));
|
|
13594
|
-
},
|
|
13595
|
-
/**
|
|
13596
|
-
* Select a SumUp reader for a club.
|
|
13597
|
-
* @param {SumUpManagerApiSelectSumupReaderRequest} requestParameters Request parameters.
|
|
13598
|
-
* @param {*} [options] Override http request option.
|
|
13599
|
-
* @throws {RequiredError}
|
|
13600
|
-
*/
|
|
13601
|
-
selectSumupReader(requestParameters, options) {
|
|
13602
|
-
return localVarFp.selectSumupReader(requestParameters.clubId, requestParameters.readerId, options).then((request) => request(axios, basePath));
|
|
13603
|
-
},
|
|
13604
|
-
};
|
|
13605
|
-
};
|
|
13606
|
-
exports.SumUpManagerApiFactory = SumUpManagerApiFactory;
|
|
13607
|
-
/**
|
|
13608
|
-
* SumUpManagerApi - object-oriented interface
|
|
13609
|
-
* @export
|
|
13610
|
-
* @class SumUpManagerApi
|
|
13611
|
-
* @extends {BaseAPI}
|
|
13612
|
-
*/
|
|
13613
|
-
class SumUpManagerApi extends base_1.BaseAPI {
|
|
13614
|
-
/**
|
|
13615
|
-
* Disconnect SumUp account for a club.
|
|
13616
|
-
* @param {SumUpManagerApiDisconnectSumupRequest} requestParameters Request parameters.
|
|
13617
|
-
* @param {*} [options] Override http request option.
|
|
13618
|
-
* @throws {RequiredError}
|
|
13619
|
-
* @memberof SumUpManagerApi
|
|
13620
|
-
*/
|
|
13621
|
-
disconnectSumup(requestParameters, options) {
|
|
13622
|
-
return (0, exports.SumUpManagerApiFp)(this.configuration).disconnectSumup(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
|
|
13623
|
-
}
|
|
13624
|
-
/**
|
|
13625
|
-
* Start SumUp OAuth connection for a club.
|
|
13626
|
-
* @param {SumUpManagerApiGetSumupConnectUrlRequest} requestParameters Request parameters.
|
|
13627
|
-
* @param {*} [options] Override http request option.
|
|
13628
|
-
* @throws {RequiredError}
|
|
13629
|
-
* @memberof SumUpManagerApi
|
|
13630
|
-
*/
|
|
13631
|
-
getSumupConnectUrl(requestParameters, options) {
|
|
13632
|
-
return (0, exports.SumUpManagerApiFp)(this.configuration).getSumupConnectUrl(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
|
|
13633
|
-
}
|
|
13634
|
-
/**
|
|
13635
|
-
* Get SumUp connection status for a club.
|
|
13636
|
-
* @param {SumUpManagerApiGetSumupStatusRequest} requestParameters Request parameters.
|
|
13637
|
-
* @param {*} [options] Override http request option.
|
|
13638
|
-
* @throws {RequiredError}
|
|
13639
|
-
* @memberof SumUpManagerApi
|
|
13640
|
-
*/
|
|
13641
|
-
getSumupStatus(requestParameters, options) {
|
|
13642
|
-
return (0, exports.SumUpManagerApiFp)(this.configuration).getSumupStatus(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
|
|
13643
|
-
}
|
|
13644
|
-
/**
|
|
13645
|
-
* List SumUp readers for a club.
|
|
13646
|
-
* @param {SumUpManagerApiListSumupReadersRequest} requestParameters Request parameters.
|
|
13647
|
-
* @param {*} [options] Override http request option.
|
|
13648
|
-
* @throws {RequiredError}
|
|
13649
|
-
* @memberof SumUpManagerApi
|
|
13650
|
-
*/
|
|
13651
|
-
listSumupReaders(requestParameters, options) {
|
|
13652
|
-
return (0, exports.SumUpManagerApiFp)(this.configuration).listSumupReaders(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
|
|
13653
|
-
}
|
|
13654
|
-
/**
|
|
13655
|
-
* Pair a SumUp reader with a club.
|
|
13656
|
-
* @param {SumUpManagerApiPairSumupReaderRequest} requestParameters Request parameters.
|
|
13657
|
-
* @param {*} [options] Override http request option.
|
|
13658
|
-
* @throws {RequiredError}
|
|
13659
|
-
* @memberof SumUpManagerApi
|
|
13660
|
-
*/
|
|
13661
|
-
pairSumupReader(requestParameters, options) {
|
|
13662
|
-
return (0, exports.SumUpManagerApiFp)(this.configuration).pairSumupReader(requestParameters.clubId, requestParameters.sumupPairReaderRequest, options).then((request) => request(this.axios, this.basePath));
|
|
13663
|
-
}
|
|
13664
|
-
/**
|
|
13665
|
-
* Select a SumUp reader for a club.
|
|
13666
|
-
* @param {SumUpManagerApiSelectSumupReaderRequest} requestParameters Request parameters.
|
|
13667
|
-
* @param {*} [options] Override http request option.
|
|
13668
|
-
* @throws {RequiredError}
|
|
13669
|
-
* @memberof SumUpManagerApi
|
|
13670
|
-
*/
|
|
13671
|
-
selectSumupReader(requestParameters, options) {
|
|
13672
|
-
return (0, exports.SumUpManagerApiFp)(this.configuration).selectSumupReader(requestParameters.clubId, requestParameters.readerId, options).then((request) => request(this.axios, this.basePath));
|
|
13673
|
-
}
|
|
13674
|
-
}
|
|
13675
|
-
exports.SumUpManagerApi = SumUpManagerApi;
|
|
13676
12969
|
/**
|
|
13677
12970
|
* UserApi - axios parameter creator
|
|
13678
12971
|
* @export
|