@tennac-booking/sdk 1.0.220 → 1.0.221
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 +24 -47
- package/README.md +38 -70
- package/api.ts +1834 -3355
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +1784 -3051
- package/dist/api.js +1137 -1603
- 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 +1784 -3051
- package/dist/esm/api.js +1114 -1584
- 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/AgendaBooking.md +0 -2
- package/docs/BookingPopulated.md +1 -9
- package/docs/BookingSummary.md +0 -4
- package/docs/BookingsApi.md +79 -25
- package/docs/BookingsStaffApi.md +57 -1
- package/docs/BookingsUserApi.md +6 -6
- package/docs/CheckInPlayerSumupRequest.md +22 -0
- package/docs/CheckInPlayerSumupResponse.md +24 -0
- package/docs/CheckInSumupPaymentInfo.md +26 -0
- package/docs/ClubPageResponse.md +0 -14
- package/docs/ClubPricingPeriodResponse.md +6 -6
- package/docs/ClubReservationSettingsResponse.md +2 -2
- package/docs/ClubResponse.md +2 -12
- package/docs/ClubSummary.md +0 -6
- package/docs/CreateOpenBookingRequest.md +2 -4
- package/docs/CreateSubscriptionPlanRequestDiscount.md +0 -4
- package/docs/EventBookingDetailSummary.md +0 -2
- package/docs/EventBookingResponse.md +0 -2
- package/docs/EventResponse.md +0 -2
- package/docs/EventsApi.md +0 -58
- package/docs/EventsStaffApi.md +25 -119
- package/docs/GetClubsWithVerificationDomains200ResponseInner.md +0 -2
- package/docs/GetOpenBookingPrice200Response.md +24 -0
- package/docs/GetOpenBookingPriceRequest.md +26 -0
- package/docs/IUserAttributes.md +0 -4
- package/docs/JoinPriceEstimateResponse.md +38 -0
- package/docs/JoinPriceEstimateResponseSubscriptionInfo.md +25 -0
- package/docs/MyClubInfosResponse.md +2 -0
- package/docs/OpenBookingInfo.md +2 -4
- package/docs/OpenBookingSlotInfo.md +24 -0
- package/docs/PaymentIntentResult.md +28 -0
- package/docs/{SupportedLanguage.md → PaymentProviderType.md} +3 -3
- package/docs/{NotificationActorType.md → PaymentStatus.md} +6 -4
- package/docs/PaymentsStaffApi.md +124 -0
- package/docs/PublicEmailApi.md +4 -4
- package/docs/QuickReservationClubSummary.md +0 -12
- package/docs/SportResponse.md +0 -2
- package/docs/StaffEventBookingResponse.md +0 -2
- package/docs/StaffEventsPaginatedResponse.md +26 -0
- package/docs/StaffUserProfileResponse.md +0 -4
- package/docs/SubscriptionPlanDiscountResponse.md +0 -2
- package/docs/SubscriptionPlanDiscountUpdateRequest.md +0 -2
- package/docs/SumUpApi.md +63 -0
- package/docs/SumUpManagerApi.md +332 -0
- package/docs/SumupAccountStatusResponse.md +32 -0
- package/docs/{VerifyVerificationCodeResponse.md → SumupCancelPaymentRequest.md} +5 -5
- package/docs/{RequestVerificationCodeResponse.md → SumupConnectUrlResponse.md} +5 -5
- package/docs/SumupCreatePaymentRequest.md +32 -0
- package/docs/SumupOAuthCallbackResponse.md +24 -0
- package/docs/SumupPairReaderRequest.md +22 -0
- package/docs/{MarkNotificationsReadResponse.md → SumupPairReaderResponse.md} +5 -5
- package/docs/SumupReaderInfo.md +34 -0
- package/docs/{Health200Response.md → SumupReadersResponse.md} +5 -7
- package/docs/UpdateClubHoursSettingsRequest.md +1 -1
- package/docs/UpdateClubReservationSettingsRequest.md +2 -2
- package/docs/UserClubMembership.md +0 -2
- package/docs/UserProfileResponse.md +0 -12
- package/docs/UsersApi.md +0 -273
- package/docs/WaitListStaffApi.md +0 -55
- package/index.ts +1 -1
- package/package.json +1 -1
- package/docs/AuthApi.md +0 -113
- package/docs/ClubPageResponseClubCustomerStatus.md +0 -27
- package/docs/ClubPricingPeriodPayload.md +0 -32
- package/docs/ComingEventsPageResponse.md +0 -22
- package/docs/CourtEnvironment.md +0 -10
- package/docs/EstimateOpenBookingJoinRequest.md +0 -24
- package/docs/JobResult.md +0 -24
- package/docs/JobsApi.md +0 -367
- package/docs/JoinOpenBookingRequest.md +0 -28
- package/docs/MarkNotificationsReadRequest.md +0 -22
- package/docs/NotificationData.md +0 -22
- package/docs/NotificationInitiator.md +0 -28
- package/docs/NotificationParticipantPreview.md +0 -24
- package/docs/NotificationPreview.md +0 -78
- package/docs/NotificationResponse.md +0 -46
- package/docs/NotificationResponseClub.md +0 -24
- package/docs/NotificationSlotPreview.md +0 -24
- package/docs/NotificationSportPreview.md +0 -24
- package/docs/NotificationTargetPreview.md +0 -22
- package/docs/NotificationType.md +0 -26
- package/docs/OpenBookingBasePriceResponse.md +0 -24
- package/docs/OpenBookingJoinEstimateResponse.md +0 -26
- package/docs/OpenBookingPriceBody.md +0 -26
- package/docs/PartnerSearchItem.md +0 -28
- package/docs/PartnerSearchResponse.md +0 -22
- package/docs/PartnerSearchResponseMeta.md +0 -26
- package/docs/PricingPeriodDiscount.md +0 -24
- package/docs/QuickReservationCourtType.md +0 -10
- package/docs/RequestOrganizationEmailCodeBody.md +0 -22
- package/docs/RequestOrganizationEmailCodeResponse.md +0 -22
- package/docs/RequestVerificationCodeBody.md +0 -26
- package/docs/StaffEventsPageResponse.md +0 -22
- package/docs/UserNextBookingSummary.md +0 -26
- package/docs/UserNotificationsResponse.md +0 -22
- package/docs/UserNotificationsResponseMeta.md +0 -28
- package/docs/VerifyOrganizationEmailCodeBody.md +0 -24
- package/docs/VerifyOrganizationEmailCodeResponse.md +0 -22
- package/docs/VerifyVerificationCodeBody.md +0 -24
- package/docs/WaitListEntryWithPlayer.md +0 -44
- package/docs/WaitListPlayer.md +0 -28
- package/docs/WaitListPlayersListResponse.md +0 -22
package/dist/esm/api.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* openapi.json
|
|
5
5
|
* Pandook API Documentation
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.
|
|
7
|
+
* The version of the OpenAPI document: 1.0.177
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -61,11 +61,6 @@ export const BookingStatus = {
|
|
|
61
61
|
Canceled: 'canceled',
|
|
62
62
|
NoShow: 'no-show'
|
|
63
63
|
};
|
|
64
|
-
export const BookingSummaryUserParticipationStatusEnum = {
|
|
65
|
-
Participant: 'participant',
|
|
66
|
-
WaitingJoinPayment: 'waitingJoinPayment',
|
|
67
|
-
Waitlist: 'waitlist'
|
|
68
|
-
};
|
|
69
64
|
export const CaptureResultTypeEnum = {
|
|
70
65
|
CreatorPayment: 'creator_payment',
|
|
71
66
|
PlayerPayment: 'player_payment'
|
|
@@ -83,15 +78,6 @@ export const ClubRoleResponseRoleEnum = {
|
|
|
83
78
|
Manager: 'manager',
|
|
84
79
|
Staff: 'staff'
|
|
85
80
|
};
|
|
86
|
-
/**
|
|
87
|
-
*
|
|
88
|
-
* @export
|
|
89
|
-
* @enum {string}
|
|
90
|
-
*/
|
|
91
|
-
export const CourtEnvironment = {
|
|
92
|
-
Indoor: 'indoor',
|
|
93
|
-
Outdoor: 'outdoor'
|
|
94
|
-
};
|
|
95
81
|
/**
|
|
96
82
|
*
|
|
97
83
|
* @export
|
|
@@ -141,11 +127,6 @@ export const DiscountType = {
|
|
|
141
127
|
Percentage: 'percentage',
|
|
142
128
|
OffPeak: 'off_peak'
|
|
143
129
|
};
|
|
144
|
-
export const EventBookingDetailSummaryUserParticipationStatusEnum = {
|
|
145
|
-
Participant: 'participant',
|
|
146
|
-
WaitingJoinPayment: 'waitingJoinPayment',
|
|
147
|
-
Waitlist: 'waitlist'
|
|
148
|
-
};
|
|
149
130
|
/**
|
|
150
131
|
*
|
|
151
132
|
* @export
|
|
@@ -245,39 +226,6 @@ export const InvoiceStatusSETUPPENDING = {
|
|
|
245
226
|
export const InvoiceStatusSETUPSUCCESS = {
|
|
246
227
|
SetupSuccess: 'setup_success'
|
|
247
228
|
};
|
|
248
|
-
/**
|
|
249
|
-
*
|
|
250
|
-
* @export
|
|
251
|
-
* @enum {string}
|
|
252
|
-
*/
|
|
253
|
-
export const NotificationActorType = {
|
|
254
|
-
User: 'user',
|
|
255
|
-
Club: 'club',
|
|
256
|
-
System: 'system'
|
|
257
|
-
};
|
|
258
|
-
export const NotificationTargetPreviewTypeEnum = {
|
|
259
|
-
Booking: 'booking',
|
|
260
|
-
Event: 'event',
|
|
261
|
-
Waitlist: 'waitlist',
|
|
262
|
-
Unknown: 'unknown'
|
|
263
|
-
};
|
|
264
|
-
/**
|
|
265
|
-
*
|
|
266
|
-
* @export
|
|
267
|
-
* @enum {string}
|
|
268
|
-
*/
|
|
269
|
-
export const NotificationType = {
|
|
270
|
-
BookingCreated: 'booking_created',
|
|
271
|
-
BookingSetupRequired: 'booking_setup_required',
|
|
272
|
-
BookingCancelled: 'booking_cancelled',
|
|
273
|
-
BookingReminder: 'booking_reminder',
|
|
274
|
-
EventRegistrationConfirmed: 'event_registration_confirmed',
|
|
275
|
-
EventReminder: 'event_reminder',
|
|
276
|
-
OpenBookingJoined: 'open_booking_joined',
|
|
277
|
-
OpenBookingJoinConfirmed: 'open_booking_join_confirmed',
|
|
278
|
-
WaitlistSpotAvailable: 'waitlist_spot_available',
|
|
279
|
-
WaitlistConfirmed: 'waitlist_confirmed'
|
|
280
|
-
};
|
|
281
229
|
export const PartialPublicAccessSettingsPaymentModeEnum = {
|
|
282
230
|
Free: 'free',
|
|
283
231
|
AccessFee: 'access_fee',
|
|
@@ -304,6 +252,26 @@ export const PaymentMethod = {
|
|
|
304
252
|
OnsiteCash: 'onsite_cash',
|
|
305
253
|
Free: 'free'
|
|
306
254
|
};
|
|
255
|
+
/**
|
|
256
|
+
*
|
|
257
|
+
* @export
|
|
258
|
+
* @enum {string}
|
|
259
|
+
*/
|
|
260
|
+
export const PaymentProviderType = {
|
|
261
|
+
Stripe: 'stripe',
|
|
262
|
+
Sumup: 'sumup'
|
|
263
|
+
};
|
|
264
|
+
/**
|
|
265
|
+
*
|
|
266
|
+
* @export
|
|
267
|
+
* @enum {string}
|
|
268
|
+
*/
|
|
269
|
+
export const PaymentStatus = {
|
|
270
|
+
Pending: 'pending',
|
|
271
|
+
Succeeded: 'succeeded',
|
|
272
|
+
Failed: 'failed',
|
|
273
|
+
Cancelled: 'cancelled'
|
|
274
|
+
};
|
|
307
275
|
/**
|
|
308
276
|
*
|
|
309
277
|
* @export
|
|
@@ -332,15 +300,6 @@ export const PublicAccessSettingsPaymentModeEnum = {
|
|
|
332
300
|
AccessFee: 'access_fee',
|
|
333
301
|
PerCourt: 'per_court'
|
|
334
302
|
};
|
|
335
|
-
/**
|
|
336
|
-
*
|
|
337
|
-
* @export
|
|
338
|
-
* @enum {string}
|
|
339
|
-
*/
|
|
340
|
-
export const QuickReservationCourtType = {
|
|
341
|
-
Indoor: 'indoor',
|
|
342
|
-
Outdoor: 'outdoor'
|
|
343
|
-
};
|
|
344
303
|
export const RecurringDefinitionResponseRecurringTypeEnum = {
|
|
345
304
|
Daily: 'daily',
|
|
346
305
|
Weekly: 'weekly',
|
|
@@ -378,15 +337,6 @@ export const StaffUserProfileResponseCreatedFromEnum = {
|
|
|
378
337
|
App: 'app',
|
|
379
338
|
Website: 'website'
|
|
380
339
|
};
|
|
381
|
-
/**
|
|
382
|
-
*
|
|
383
|
-
* @export
|
|
384
|
-
* @enum {string}
|
|
385
|
-
*/
|
|
386
|
-
export const SupportedLanguage = {
|
|
387
|
-
Fr: 'fr',
|
|
388
|
-
En: 'en'
|
|
389
|
-
};
|
|
390
340
|
/**
|
|
391
341
|
*
|
|
392
342
|
* @export
|
|
@@ -475,11 +425,6 @@ export const VisibilityType = {
|
|
|
475
425
|
Private: 'private',
|
|
476
426
|
Invitation: 'invitation'
|
|
477
427
|
};
|
|
478
|
-
export const WaitListEntryWithPlayerTargetTypeEnum = {
|
|
479
|
-
Event: 'event',
|
|
480
|
-
Booking: 'booking',
|
|
481
|
-
EventBooking: 'event_booking'
|
|
482
|
-
};
|
|
483
428
|
export const WaitListResponseTargetTypeEnum = {
|
|
484
429
|
Event: 'event',
|
|
485
430
|
Booking: 'booking',
|
|
@@ -499,166 +444,6 @@ export const WeekdayKey = {
|
|
|
499
444
|
Saturday: 'saturday',
|
|
500
445
|
Sunday: 'sunday'
|
|
501
446
|
};
|
|
502
|
-
/**
|
|
503
|
-
* AuthApi - axios parameter creator
|
|
504
|
-
* @export
|
|
505
|
-
*/
|
|
506
|
-
export const AuthApiAxiosParamCreator = function (configuration) {
|
|
507
|
-
return {
|
|
508
|
-
/**
|
|
509
|
-
*
|
|
510
|
-
* @param {RequestVerificationCodeBody} requestVerificationCodeBody
|
|
511
|
-
* @param {*} [options] Override http request option.
|
|
512
|
-
* @throws {RequiredError}
|
|
513
|
-
*/
|
|
514
|
-
requestVerificationCode: (requestVerificationCodeBody_1, ...args_1) => __awaiter(this, [requestVerificationCodeBody_1, ...args_1], void 0, function* (requestVerificationCodeBody, options = {}) {
|
|
515
|
-
// verify required parameter 'requestVerificationCodeBody' is not null or undefined
|
|
516
|
-
assertParamExists('requestVerificationCode', 'requestVerificationCodeBody', requestVerificationCodeBody);
|
|
517
|
-
const localVarPath = `/api/auth/verification-code`;
|
|
518
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
519
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
520
|
-
let baseOptions;
|
|
521
|
-
if (configuration) {
|
|
522
|
-
baseOptions = configuration.baseOptions;
|
|
523
|
-
}
|
|
524
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
525
|
-
const localVarHeaderParameter = {};
|
|
526
|
-
const localVarQueryParameter = {};
|
|
527
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
528
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
529
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
530
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
531
|
-
localVarRequestOptions.data = serializeDataIfNeeded(requestVerificationCodeBody, localVarRequestOptions, configuration);
|
|
532
|
-
return {
|
|
533
|
-
url: toPathString(localVarUrlObj),
|
|
534
|
-
options: localVarRequestOptions,
|
|
535
|
-
};
|
|
536
|
-
}),
|
|
537
|
-
/**
|
|
538
|
-
*
|
|
539
|
-
* @param {VerifyVerificationCodeBody} verifyVerificationCodeBody
|
|
540
|
-
* @param {*} [options] Override http request option.
|
|
541
|
-
* @throws {RequiredError}
|
|
542
|
-
*/
|
|
543
|
-
verifyVerificationCode: (verifyVerificationCodeBody_1, ...args_1) => __awaiter(this, [verifyVerificationCodeBody_1, ...args_1], void 0, function* (verifyVerificationCodeBody, options = {}) {
|
|
544
|
-
// verify required parameter 'verifyVerificationCodeBody' is not null or undefined
|
|
545
|
-
assertParamExists('verifyVerificationCode', 'verifyVerificationCodeBody', verifyVerificationCodeBody);
|
|
546
|
-
const localVarPath = `/api/auth/verification-code/verify`;
|
|
547
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
548
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
549
|
-
let baseOptions;
|
|
550
|
-
if (configuration) {
|
|
551
|
-
baseOptions = configuration.baseOptions;
|
|
552
|
-
}
|
|
553
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
554
|
-
const localVarHeaderParameter = {};
|
|
555
|
-
const localVarQueryParameter = {};
|
|
556
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
557
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
558
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
559
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
560
|
-
localVarRequestOptions.data = serializeDataIfNeeded(verifyVerificationCodeBody, localVarRequestOptions, configuration);
|
|
561
|
-
return {
|
|
562
|
-
url: toPathString(localVarUrlObj),
|
|
563
|
-
options: localVarRequestOptions,
|
|
564
|
-
};
|
|
565
|
-
}),
|
|
566
|
-
};
|
|
567
|
-
};
|
|
568
|
-
/**
|
|
569
|
-
* AuthApi - functional programming interface
|
|
570
|
-
* @export
|
|
571
|
-
*/
|
|
572
|
-
export const AuthApiFp = function (configuration) {
|
|
573
|
-
const localVarAxiosParamCreator = AuthApiAxiosParamCreator(configuration);
|
|
574
|
-
return {
|
|
575
|
-
/**
|
|
576
|
-
*
|
|
577
|
-
* @param {RequestVerificationCodeBody} requestVerificationCodeBody
|
|
578
|
-
* @param {*} [options] Override http request option.
|
|
579
|
-
* @throws {RequiredError}
|
|
580
|
-
*/
|
|
581
|
-
requestVerificationCode(requestVerificationCodeBody, options) {
|
|
582
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
583
|
-
var _a, _b, _c;
|
|
584
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.requestVerificationCode(requestVerificationCodeBody, options);
|
|
585
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
586
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AuthApi.requestVerificationCode']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
587
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
588
|
-
});
|
|
589
|
-
},
|
|
590
|
-
/**
|
|
591
|
-
*
|
|
592
|
-
* @param {VerifyVerificationCodeBody} verifyVerificationCodeBody
|
|
593
|
-
* @param {*} [options] Override http request option.
|
|
594
|
-
* @throws {RequiredError}
|
|
595
|
-
*/
|
|
596
|
-
verifyVerificationCode(verifyVerificationCodeBody, options) {
|
|
597
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
598
|
-
var _a, _b, _c;
|
|
599
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.verifyVerificationCode(verifyVerificationCodeBody, options);
|
|
600
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
601
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AuthApi.verifyVerificationCode']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
602
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
603
|
-
});
|
|
604
|
-
},
|
|
605
|
-
};
|
|
606
|
-
};
|
|
607
|
-
/**
|
|
608
|
-
* AuthApi - factory interface
|
|
609
|
-
* @export
|
|
610
|
-
*/
|
|
611
|
-
export const AuthApiFactory = function (configuration, basePath, axios) {
|
|
612
|
-
const localVarFp = AuthApiFp(configuration);
|
|
613
|
-
return {
|
|
614
|
-
/**
|
|
615
|
-
*
|
|
616
|
-
* @param {AuthApiRequestVerificationCodeRequest} requestParameters Request parameters.
|
|
617
|
-
* @param {*} [options] Override http request option.
|
|
618
|
-
* @throws {RequiredError}
|
|
619
|
-
*/
|
|
620
|
-
requestVerificationCode(requestParameters, options) {
|
|
621
|
-
return localVarFp.requestVerificationCode(requestParameters.requestVerificationCodeBody, options).then((request) => request(axios, basePath));
|
|
622
|
-
},
|
|
623
|
-
/**
|
|
624
|
-
*
|
|
625
|
-
* @param {AuthApiVerifyVerificationCodeRequest} requestParameters Request parameters.
|
|
626
|
-
* @param {*} [options] Override http request option.
|
|
627
|
-
* @throws {RequiredError}
|
|
628
|
-
*/
|
|
629
|
-
verifyVerificationCode(requestParameters, options) {
|
|
630
|
-
return localVarFp.verifyVerificationCode(requestParameters.verifyVerificationCodeBody, options).then((request) => request(axios, basePath));
|
|
631
|
-
},
|
|
632
|
-
};
|
|
633
|
-
};
|
|
634
|
-
/**
|
|
635
|
-
* AuthApi - object-oriented interface
|
|
636
|
-
* @export
|
|
637
|
-
* @class AuthApi
|
|
638
|
-
* @extends {BaseAPI}
|
|
639
|
-
*/
|
|
640
|
-
export class AuthApi extends BaseAPI {
|
|
641
|
-
/**
|
|
642
|
-
*
|
|
643
|
-
* @param {AuthApiRequestVerificationCodeRequest} requestParameters Request parameters.
|
|
644
|
-
* @param {*} [options] Override http request option.
|
|
645
|
-
* @throws {RequiredError}
|
|
646
|
-
* @memberof AuthApi
|
|
647
|
-
*/
|
|
648
|
-
requestVerificationCode(requestParameters, options) {
|
|
649
|
-
return AuthApiFp(this.configuration).requestVerificationCode(requestParameters.requestVerificationCodeBody, options).then((request) => request(this.axios, this.basePath));
|
|
650
|
-
}
|
|
651
|
-
/**
|
|
652
|
-
*
|
|
653
|
-
* @param {AuthApiVerifyVerificationCodeRequest} requestParameters Request parameters.
|
|
654
|
-
* @param {*} [options] Override http request option.
|
|
655
|
-
* @throws {RequiredError}
|
|
656
|
-
* @memberof AuthApi
|
|
657
|
-
*/
|
|
658
|
-
verifyVerificationCode(requestParameters, options) {
|
|
659
|
-
return AuthApiFp(this.configuration).verifyVerificationCode(requestParameters.verifyVerificationCodeBody, options).then((request) => request(this.axios, this.basePath));
|
|
660
|
-
}
|
|
661
|
-
}
|
|
662
447
|
/**
|
|
663
448
|
* BookingsApi - axios parameter creator
|
|
664
449
|
* @export
|
|
@@ -695,18 +480,16 @@ export const BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
695
480
|
};
|
|
696
481
|
}),
|
|
697
482
|
/**
|
|
698
|
-
*
|
|
483
|
+
* Estimer le prix pour rejoindre une réservation ouverte
|
|
699
484
|
* @param {string} bookingId
|
|
700
|
-
* @param {
|
|
485
|
+
* @param {number} [creditToUseInCents]
|
|
701
486
|
* @param {*} [options] Override http request option.
|
|
702
487
|
* @throws {RequiredError}
|
|
703
488
|
*/
|
|
704
|
-
|
|
489
|
+
estimateOpenBookingJoinPrice: (bookingId_1, creditToUseInCents_1, ...args_1) => __awaiter(this, [bookingId_1, creditToUseInCents_1, ...args_1], void 0, function* (bookingId, creditToUseInCents, options = {}) {
|
|
705
490
|
// verify required parameter 'bookingId' is not null or undefined
|
|
706
|
-
assertParamExists('
|
|
707
|
-
|
|
708
|
-
assertParamExists('estimateOpenBookingJoin', 'estimateOpenBookingJoinRequest', estimateOpenBookingJoinRequest);
|
|
709
|
-
const localVarPath = `/api/bookings/{bookingId}/open/estimate-join`
|
|
491
|
+
assertParamExists('estimateOpenBookingJoinPrice', 'bookingId', bookingId);
|
|
492
|
+
const localVarPath = `/api/bookings/{bookingId}/open/estimate`
|
|
710
493
|
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
711
494
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
712
495
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -714,17 +497,18 @@ export const BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
714
497
|
if (configuration) {
|
|
715
498
|
baseOptions = configuration.baseOptions;
|
|
716
499
|
}
|
|
717
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
500
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
718
501
|
const localVarHeaderParameter = {};
|
|
719
502
|
const localVarQueryParameter = {};
|
|
720
503
|
// authentication bearerAuth required
|
|
721
504
|
// http bearer authentication required
|
|
722
505
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
723
|
-
|
|
506
|
+
if (creditToUseInCents !== undefined) {
|
|
507
|
+
localVarQueryParameter['creditToUseInCents'] = creditToUseInCents;
|
|
508
|
+
}
|
|
724
509
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
725
510
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
726
511
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
727
|
-
localVarRequestOptions.data = serializeDataIfNeeded(estimateOpenBookingJoinRequest, localVarRequestOptions, configuration);
|
|
728
512
|
return {
|
|
729
513
|
url: toPathString(localVarUrlObj),
|
|
730
514
|
options: localVarRequestOptions,
|
|
@@ -823,15 +607,50 @@ export const BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
823
607
|
};
|
|
824
608
|
}),
|
|
825
609
|
/**
|
|
826
|
-
*
|
|
610
|
+
* Estimation complète du prix pour rejoindre une réservation ouverte Retourne tous les détails: prix de base, réductions, crédits disponibles, et prix final
|
|
611
|
+
* @param {string} bookingId
|
|
612
|
+
* @param {number} [creditToUseInCents]
|
|
613
|
+
* @param {*} [options] Override http request option.
|
|
614
|
+
* @throws {RequiredError}
|
|
615
|
+
*/
|
|
616
|
+
getJoinPriceEstimate: (bookingId_1, creditToUseInCents_1, ...args_1) => __awaiter(this, [bookingId_1, creditToUseInCents_1, ...args_1], void 0, function* (bookingId, creditToUseInCents, options = {}) {
|
|
617
|
+
// verify required parameter 'bookingId' is not null or undefined
|
|
618
|
+
assertParamExists('getJoinPriceEstimate', 'bookingId', bookingId);
|
|
619
|
+
const localVarPath = `/api/bookings/{bookingId}/join-price-estimate`
|
|
620
|
+
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
621
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
622
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
623
|
+
let baseOptions;
|
|
624
|
+
if (configuration) {
|
|
625
|
+
baseOptions = configuration.baseOptions;
|
|
626
|
+
}
|
|
627
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
628
|
+
const localVarHeaderParameter = {};
|
|
629
|
+
const localVarQueryParameter = {};
|
|
630
|
+
// authentication bearerAuth required
|
|
631
|
+
// http bearer authentication required
|
|
632
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
633
|
+
if (creditToUseInCents !== undefined) {
|
|
634
|
+
localVarQueryParameter['creditToUseInCents'] = creditToUseInCents;
|
|
635
|
+
}
|
|
636
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
637
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
638
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
639
|
+
return {
|
|
640
|
+
url: toPathString(localVarUrlObj),
|
|
641
|
+
options: localVarRequestOptions,
|
|
642
|
+
};
|
|
643
|
+
}),
|
|
644
|
+
/**
|
|
645
|
+
* Estimer simplement le prix à payer pour rejoindre une réservation ouverte
|
|
827
646
|
* @param {string} bookingId
|
|
828
647
|
* @param {*} [options] Override http request option.
|
|
829
648
|
* @throws {RequiredError}
|
|
830
649
|
*/
|
|
831
|
-
|
|
650
|
+
getOpenBookingJoinPrice: (bookingId_1, ...args_1) => __awaiter(this, [bookingId_1, ...args_1], void 0, function* (bookingId, options = {}) {
|
|
832
651
|
// verify required parameter 'bookingId' is not null or undefined
|
|
833
|
-
assertParamExists('
|
|
834
|
-
const localVarPath = `/api/bookings/{bookingId}/open/
|
|
652
|
+
assertParamExists('getOpenBookingJoinPrice', 'bookingId', bookingId);
|
|
653
|
+
const localVarPath = `/api/bookings/{bookingId}/open/join-price`
|
|
835
654
|
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
836
655
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
837
656
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -955,15 +774,15 @@ export const BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
955
774
|
/**
|
|
956
775
|
*
|
|
957
776
|
* @param {string} bookingId
|
|
958
|
-
* @param {
|
|
777
|
+
* @param {JoinOpenEventBookingRequest} joinOpenEventBookingRequest
|
|
959
778
|
* @param {*} [options] Override http request option.
|
|
960
779
|
* @throws {RequiredError}
|
|
961
780
|
*/
|
|
962
|
-
joinOpenBooking: (bookingId_1,
|
|
781
|
+
joinOpenBooking: (bookingId_1, joinOpenEventBookingRequest_1, ...args_1) => __awaiter(this, [bookingId_1, joinOpenEventBookingRequest_1, ...args_1], void 0, function* (bookingId, joinOpenEventBookingRequest, options = {}) {
|
|
963
782
|
// verify required parameter 'bookingId' is not null or undefined
|
|
964
783
|
assertParamExists('joinOpenBooking', 'bookingId', bookingId);
|
|
965
|
-
// verify required parameter '
|
|
966
|
-
assertParamExists('joinOpenBooking', '
|
|
784
|
+
// verify required parameter 'joinOpenEventBookingRequest' is not null or undefined
|
|
785
|
+
assertParamExists('joinOpenBooking', 'joinOpenEventBookingRequest', joinOpenEventBookingRequest);
|
|
967
786
|
const localVarPath = `/api/bookings/{bookingId}/open/join`
|
|
968
787
|
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
969
788
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -982,7 +801,7 @@ export const BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
982
801
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
983
802
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
984
803
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
985
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
804
|
+
localVarRequestOptions.data = serializeDataIfNeeded(joinOpenEventBookingRequest, localVarRequestOptions, configuration);
|
|
986
805
|
return {
|
|
987
806
|
url: toPathString(localVarUrlObj),
|
|
988
807
|
options: localVarRequestOptions,
|
|
@@ -1044,18 +863,18 @@ export const BookingsApiFp = function (configuration) {
|
|
|
1044
863
|
});
|
|
1045
864
|
},
|
|
1046
865
|
/**
|
|
1047
|
-
*
|
|
866
|
+
* Estimer le prix pour rejoindre une réservation ouverte
|
|
1048
867
|
* @param {string} bookingId
|
|
1049
|
-
* @param {
|
|
868
|
+
* @param {number} [creditToUseInCents]
|
|
1050
869
|
* @param {*} [options] Override http request option.
|
|
1051
870
|
* @throws {RequiredError}
|
|
1052
871
|
*/
|
|
1053
|
-
|
|
872
|
+
estimateOpenBookingJoinPrice(bookingId, creditToUseInCents, options) {
|
|
1054
873
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1055
874
|
var _a, _b, _c;
|
|
1056
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
875
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.estimateOpenBookingJoinPrice(bookingId, creditToUseInCents, options);
|
|
1057
876
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1058
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsApi.
|
|
877
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsApi.estimateOpenBookingJoinPrice']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1059
878
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1060
879
|
});
|
|
1061
880
|
},
|
|
@@ -1105,17 +924,33 @@ export const BookingsApiFp = function (configuration) {
|
|
|
1105
924
|
});
|
|
1106
925
|
},
|
|
1107
926
|
/**
|
|
1108
|
-
*
|
|
927
|
+
* Estimation complète du prix pour rejoindre une réservation ouverte Retourne tous les détails: prix de base, réductions, crédits disponibles, et prix final
|
|
928
|
+
* @param {string} bookingId
|
|
929
|
+
* @param {number} [creditToUseInCents]
|
|
930
|
+
* @param {*} [options] Override http request option.
|
|
931
|
+
* @throws {RequiredError}
|
|
932
|
+
*/
|
|
933
|
+
getJoinPriceEstimate(bookingId, creditToUseInCents, options) {
|
|
934
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
935
|
+
var _a, _b, _c;
|
|
936
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getJoinPriceEstimate(bookingId, creditToUseInCents, options);
|
|
937
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
938
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsApi.getJoinPriceEstimate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
939
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
940
|
+
});
|
|
941
|
+
},
|
|
942
|
+
/**
|
|
943
|
+
* Estimer simplement le prix à payer pour rejoindre une réservation ouverte
|
|
1109
944
|
* @param {string} bookingId
|
|
1110
945
|
* @param {*} [options] Override http request option.
|
|
1111
946
|
* @throws {RequiredError}
|
|
1112
947
|
*/
|
|
1113
|
-
|
|
948
|
+
getOpenBookingJoinPrice(bookingId, options) {
|
|
1114
949
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1115
950
|
var _a, _b, _c;
|
|
1116
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
951
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getOpenBookingJoinPrice(bookingId, options);
|
|
1117
952
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1118
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsApi.
|
|
953
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsApi.getOpenBookingJoinPrice']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1119
954
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1120
955
|
});
|
|
1121
956
|
},
|
|
@@ -1162,14 +997,14 @@ export const BookingsApiFp = function (configuration) {
|
|
|
1162
997
|
/**
|
|
1163
998
|
*
|
|
1164
999
|
* @param {string} bookingId
|
|
1165
|
-
* @param {
|
|
1000
|
+
* @param {JoinOpenEventBookingRequest} joinOpenEventBookingRequest
|
|
1166
1001
|
* @param {*} [options] Override http request option.
|
|
1167
1002
|
* @throws {RequiredError}
|
|
1168
1003
|
*/
|
|
1169
|
-
joinOpenBooking(bookingId,
|
|
1004
|
+
joinOpenBooking(bookingId, joinOpenEventBookingRequest, options) {
|
|
1170
1005
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1171
1006
|
var _a, _b, _c;
|
|
1172
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.joinOpenBooking(bookingId,
|
|
1007
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.joinOpenBooking(bookingId, joinOpenEventBookingRequest, options);
|
|
1173
1008
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1174
1009
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsApi.joinOpenBooking']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1175
1010
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -1209,13 +1044,13 @@ export const BookingsApiFactory = function (configuration, basePath, axios) {
|
|
|
1209
1044
|
return localVarFp.createGuestBooking(requestParameters.createGuestBookingRequest, options).then((request) => request(axios, basePath));
|
|
1210
1045
|
},
|
|
1211
1046
|
/**
|
|
1212
|
-
*
|
|
1213
|
-
* @param {
|
|
1047
|
+
* Estimer le prix pour rejoindre une réservation ouverte
|
|
1048
|
+
* @param {BookingsApiEstimateOpenBookingJoinPriceRequest} requestParameters Request parameters.
|
|
1214
1049
|
* @param {*} [options] Override http request option.
|
|
1215
1050
|
* @throws {RequiredError}
|
|
1216
1051
|
*/
|
|
1217
|
-
|
|
1218
|
-
return localVarFp.
|
|
1052
|
+
estimateOpenBookingJoinPrice(requestParameters, options) {
|
|
1053
|
+
return localVarFp.estimateOpenBookingJoinPrice(requestParameters.bookingId, requestParameters.creditToUseInCents, options).then((request) => request(axios, basePath));
|
|
1219
1054
|
},
|
|
1220
1055
|
/**
|
|
1221
1056
|
* Obtenir l\'historique d\'une réservation par ID
|
|
@@ -1245,13 +1080,22 @@ export const BookingsApiFactory = function (configuration, basePath, axios) {
|
|
|
1245
1080
|
return localVarFp.getGuestBookingPrice(requestParameters.getGuestBookingPriceRequest, options).then((request) => request(axios, basePath));
|
|
1246
1081
|
},
|
|
1247
1082
|
/**
|
|
1248
|
-
*
|
|
1249
|
-
* @param {
|
|
1083
|
+
* Estimation complète du prix pour rejoindre une réservation ouverte Retourne tous les détails: prix de base, réductions, crédits disponibles, et prix final
|
|
1084
|
+
* @param {BookingsApiGetJoinPriceEstimateRequest} requestParameters Request parameters.
|
|
1085
|
+
* @param {*} [options] Override http request option.
|
|
1086
|
+
* @throws {RequiredError}
|
|
1087
|
+
*/
|
|
1088
|
+
getJoinPriceEstimate(requestParameters, options) {
|
|
1089
|
+
return localVarFp.getJoinPriceEstimate(requestParameters.bookingId, requestParameters.creditToUseInCents, options).then((request) => request(axios, basePath));
|
|
1090
|
+
},
|
|
1091
|
+
/**
|
|
1092
|
+
* Estimer simplement le prix à payer pour rejoindre une réservation ouverte
|
|
1093
|
+
* @param {BookingsApiGetOpenBookingJoinPriceRequest} requestParameters Request parameters.
|
|
1250
1094
|
* @param {*} [options] Override http request option.
|
|
1251
1095
|
* @throws {RequiredError}
|
|
1252
1096
|
*/
|
|
1253
|
-
|
|
1254
|
-
return localVarFp.
|
|
1097
|
+
getOpenBookingJoinPrice(requestParameters, options) {
|
|
1098
|
+
return localVarFp.getOpenBookingJoinPrice(requestParameters.bookingId, options).then((request) => request(axios, basePath));
|
|
1255
1099
|
},
|
|
1256
1100
|
/**
|
|
1257
1101
|
*
|
|
@@ -1278,7 +1122,7 @@ export const BookingsApiFactory = function (configuration, basePath, axios) {
|
|
|
1278
1122
|
* @throws {RequiredError}
|
|
1279
1123
|
*/
|
|
1280
1124
|
joinOpenBooking(requestParameters, options) {
|
|
1281
|
-
return localVarFp.joinOpenBooking(requestParameters.bookingId, requestParameters.
|
|
1125
|
+
return localVarFp.joinOpenBooking(requestParameters.bookingId, requestParameters.joinOpenEventBookingRequest, options).then((request) => request(axios, basePath));
|
|
1282
1126
|
},
|
|
1283
1127
|
/**
|
|
1284
1128
|
*
|
|
@@ -1309,14 +1153,14 @@ export class BookingsApi extends BaseAPI {
|
|
|
1309
1153
|
return BookingsApiFp(this.configuration).createGuestBooking(requestParameters.createGuestBookingRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1310
1154
|
}
|
|
1311
1155
|
/**
|
|
1312
|
-
*
|
|
1313
|
-
* @param {
|
|
1156
|
+
* Estimer le prix pour rejoindre une réservation ouverte
|
|
1157
|
+
* @param {BookingsApiEstimateOpenBookingJoinPriceRequest} requestParameters Request parameters.
|
|
1314
1158
|
* @param {*} [options] Override http request option.
|
|
1315
1159
|
* @throws {RequiredError}
|
|
1316
1160
|
* @memberof BookingsApi
|
|
1317
1161
|
*/
|
|
1318
|
-
|
|
1319
|
-
return BookingsApiFp(this.configuration).
|
|
1162
|
+
estimateOpenBookingJoinPrice(requestParameters, options) {
|
|
1163
|
+
return BookingsApiFp(this.configuration).estimateOpenBookingJoinPrice(requestParameters.bookingId, requestParameters.creditToUseInCents, options).then((request) => request(this.axios, this.basePath));
|
|
1320
1164
|
}
|
|
1321
1165
|
/**
|
|
1322
1166
|
* Obtenir l\'historique d\'une réservation par ID
|
|
@@ -1349,14 +1193,24 @@ export class BookingsApi extends BaseAPI {
|
|
|
1349
1193
|
return BookingsApiFp(this.configuration).getGuestBookingPrice(requestParameters.getGuestBookingPriceRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1350
1194
|
}
|
|
1351
1195
|
/**
|
|
1352
|
-
*
|
|
1353
|
-
* @param {
|
|
1196
|
+
* Estimation complète du prix pour rejoindre une réservation ouverte Retourne tous les détails: prix de base, réductions, crédits disponibles, et prix final
|
|
1197
|
+
* @param {BookingsApiGetJoinPriceEstimateRequest} requestParameters Request parameters.
|
|
1354
1198
|
* @param {*} [options] Override http request option.
|
|
1355
1199
|
* @throws {RequiredError}
|
|
1356
1200
|
* @memberof BookingsApi
|
|
1357
1201
|
*/
|
|
1358
|
-
|
|
1359
|
-
return BookingsApiFp(this.configuration).
|
|
1202
|
+
getJoinPriceEstimate(requestParameters, options) {
|
|
1203
|
+
return BookingsApiFp(this.configuration).getJoinPriceEstimate(requestParameters.bookingId, requestParameters.creditToUseInCents, options).then((request) => request(this.axios, this.basePath));
|
|
1204
|
+
}
|
|
1205
|
+
/**
|
|
1206
|
+
* Estimer simplement le prix à payer pour rejoindre une réservation ouverte
|
|
1207
|
+
* @param {BookingsApiGetOpenBookingJoinPriceRequest} requestParameters Request parameters.
|
|
1208
|
+
* @param {*} [options] Override http request option.
|
|
1209
|
+
* @throws {RequiredError}
|
|
1210
|
+
* @memberof BookingsApi
|
|
1211
|
+
*/
|
|
1212
|
+
getOpenBookingJoinPrice(requestParameters, options) {
|
|
1213
|
+
return BookingsApiFp(this.configuration).getOpenBookingJoinPrice(requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
|
|
1360
1214
|
}
|
|
1361
1215
|
/**
|
|
1362
1216
|
*
|
|
@@ -1386,7 +1240,7 @@ export class BookingsApi extends BaseAPI {
|
|
|
1386
1240
|
* @memberof BookingsApi
|
|
1387
1241
|
*/
|
|
1388
1242
|
joinOpenBooking(requestParameters, options) {
|
|
1389
|
-
return BookingsApiFp(this.configuration).joinOpenBooking(requestParameters.bookingId, requestParameters.
|
|
1243
|
+
return BookingsApiFp(this.configuration).joinOpenBooking(requestParameters.bookingId, requestParameters.joinOpenEventBookingRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1390
1244
|
}
|
|
1391
1245
|
/**
|
|
1392
1246
|
*
|
|
@@ -1576,7 +1430,7 @@ export class BookingsManagerApi extends BaseAPI {
|
|
|
1576
1430
|
export const BookingsStaffApiAxiosParamCreator = function (configuration) {
|
|
1577
1431
|
return {
|
|
1578
1432
|
/**
|
|
1579
|
-
* Check-in d\'un joueur (paiement en ligne ou sur place)
|
|
1433
|
+
* Check-in d\'un joueur sans SumUp (paiement en ligne ou sur place)
|
|
1580
1434
|
* @param {string} bookingId
|
|
1581
1435
|
* @param {CheckInPlayerRequest} checkInPlayerRequest
|
|
1582
1436
|
* @param {*} [options] Override http request option.
|
|
@@ -1612,15 +1466,19 @@ export const BookingsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
1612
1466
|
};
|
|
1613
1467
|
}),
|
|
1614
1468
|
/**
|
|
1615
|
-
*
|
|
1616
|
-
* @param {
|
|
1469
|
+
* Check-in d\'un joueur avec création d\'un checkout SumUp
|
|
1470
|
+
* @param {string} bookingId
|
|
1471
|
+
* @param {CheckInPlayerSumupRequest} checkInPlayerSumupRequest
|
|
1617
1472
|
* @param {*} [options] Override http request option.
|
|
1618
1473
|
* @throws {RequiredError}
|
|
1619
1474
|
*/
|
|
1620
|
-
|
|
1621
|
-
// verify required parameter '
|
|
1622
|
-
assertParamExists('
|
|
1623
|
-
|
|
1475
|
+
checkInPlayerWithSumup: (bookingId_1, checkInPlayerSumupRequest_1, ...args_1) => __awaiter(this, [bookingId_1, checkInPlayerSumupRequest_1, ...args_1], void 0, function* (bookingId, checkInPlayerSumupRequest, options = {}) {
|
|
1476
|
+
// verify required parameter 'bookingId' is not null or undefined
|
|
1477
|
+
assertParamExists('checkInPlayerWithSumup', 'bookingId', bookingId);
|
|
1478
|
+
// verify required parameter 'checkInPlayerSumupRequest' is not null or undefined
|
|
1479
|
+
assertParamExists('checkInPlayerWithSumup', 'checkInPlayerSumupRequest', checkInPlayerSumupRequest);
|
|
1480
|
+
const localVarPath = `/api/bookings/{bookingId}/check-in/sumup`
|
|
1481
|
+
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
1624
1482
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1625
1483
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1626
1484
|
let baseOptions;
|
|
@@ -1637,22 +1495,54 @@ export const BookingsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
1637
1495
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1638
1496
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1639
1497
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1640
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
1498
|
+
localVarRequestOptions.data = serializeDataIfNeeded(checkInPlayerSumupRequest, localVarRequestOptions, configuration);
|
|
1641
1499
|
return {
|
|
1642
1500
|
url: toPathString(localVarUrlObj),
|
|
1643
1501
|
options: localVarRequestOptions,
|
|
1644
1502
|
};
|
|
1645
1503
|
}),
|
|
1646
1504
|
/**
|
|
1647
|
-
*
|
|
1648
|
-
* @param {
|
|
1505
|
+
* Créer une réservation pour un joueur depuis l\'espace staff
|
|
1506
|
+
* @param {StaffCreateBookingRequest} staffCreateBookingRequest
|
|
1649
1507
|
* @param {*} [options] Override http request option.
|
|
1650
1508
|
* @throws {RequiredError}
|
|
1651
1509
|
*/
|
|
1652
|
-
|
|
1653
|
-
// verify required parameter '
|
|
1654
|
-
assertParamExists('
|
|
1655
|
-
const localVarPath = `/api/bookings/
|
|
1510
|
+
createStaffBooking: (staffCreateBookingRequest_1, ...args_1) => __awaiter(this, [staffCreateBookingRequest_1, ...args_1], void 0, function* (staffCreateBookingRequest, options = {}) {
|
|
1511
|
+
// verify required parameter 'staffCreateBookingRequest' is not null or undefined
|
|
1512
|
+
assertParamExists('createStaffBooking', 'staffCreateBookingRequest', staffCreateBookingRequest);
|
|
1513
|
+
const localVarPath = `/api/bookings/staff`;
|
|
1514
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1515
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1516
|
+
let baseOptions;
|
|
1517
|
+
if (configuration) {
|
|
1518
|
+
baseOptions = configuration.baseOptions;
|
|
1519
|
+
}
|
|
1520
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1521
|
+
const localVarHeaderParameter = {};
|
|
1522
|
+
const localVarQueryParameter = {};
|
|
1523
|
+
// authentication bearerAuth required
|
|
1524
|
+
// http bearer authentication required
|
|
1525
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1526
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1527
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1528
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1529
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1530
|
+
localVarRequestOptions.data = serializeDataIfNeeded(staffCreateBookingRequest, localVarRequestOptions, configuration);
|
|
1531
|
+
return {
|
|
1532
|
+
url: toPathString(localVarUrlObj),
|
|
1533
|
+
options: localVarRequestOptions,
|
|
1534
|
+
};
|
|
1535
|
+
}),
|
|
1536
|
+
/**
|
|
1537
|
+
* Obtenir une réservation par ID
|
|
1538
|
+
* @param {string} bookingId
|
|
1539
|
+
* @param {*} [options] Override http request option.
|
|
1540
|
+
* @throws {RequiredError}
|
|
1541
|
+
*/
|
|
1542
|
+
getBookingById: (bookingId_1, ...args_1) => __awaiter(this, [bookingId_1, ...args_1], void 0, function* (bookingId, options = {}) {
|
|
1543
|
+
// verify required parameter 'bookingId' is not null or undefined
|
|
1544
|
+
assertParamExists('getBookingById', 'bookingId', bookingId);
|
|
1545
|
+
const localVarPath = `/api/bookings/{bookingId}`
|
|
1656
1546
|
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
1657
1547
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1658
1548
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -1855,7 +1745,7 @@ export const BookingsStaffApiFp = function (configuration) {
|
|
|
1855
1745
|
const localVarAxiosParamCreator = BookingsStaffApiAxiosParamCreator(configuration);
|
|
1856
1746
|
return {
|
|
1857
1747
|
/**
|
|
1858
|
-
* Check-in d\'un joueur (paiement en ligne ou sur place)
|
|
1748
|
+
* Check-in d\'un joueur sans SumUp (paiement en ligne ou sur place)
|
|
1859
1749
|
* @param {string} bookingId
|
|
1860
1750
|
* @param {CheckInPlayerRequest} checkInPlayerRequest
|
|
1861
1751
|
* @param {*} [options] Override http request option.
|
|
@@ -1870,6 +1760,22 @@ export const BookingsStaffApiFp = function (configuration) {
|
|
|
1870
1760
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1871
1761
|
});
|
|
1872
1762
|
},
|
|
1763
|
+
/**
|
|
1764
|
+
* Check-in d\'un joueur avec création d\'un checkout SumUp
|
|
1765
|
+
* @param {string} bookingId
|
|
1766
|
+
* @param {CheckInPlayerSumupRequest} checkInPlayerSumupRequest
|
|
1767
|
+
* @param {*} [options] Override http request option.
|
|
1768
|
+
* @throws {RequiredError}
|
|
1769
|
+
*/
|
|
1770
|
+
checkInPlayerWithSumup(bookingId, checkInPlayerSumupRequest, options) {
|
|
1771
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1772
|
+
var _a, _b, _c;
|
|
1773
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.checkInPlayerWithSumup(bookingId, checkInPlayerSumupRequest, options);
|
|
1774
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1775
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsStaffApi.checkInPlayerWithSumup']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1776
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1777
|
+
});
|
|
1778
|
+
},
|
|
1873
1779
|
/**
|
|
1874
1780
|
* Créer une réservation pour un joueur depuis l\'espace staff
|
|
1875
1781
|
* @param {StaffCreateBookingRequest} staffCreateBookingRequest
|
|
@@ -1989,7 +1895,7 @@ export const BookingsStaffApiFactory = function (configuration, basePath, axios)
|
|
|
1989
1895
|
const localVarFp = BookingsStaffApiFp(configuration);
|
|
1990
1896
|
return {
|
|
1991
1897
|
/**
|
|
1992
|
-
* Check-in d\'un joueur (paiement en ligne ou sur place)
|
|
1898
|
+
* Check-in d\'un joueur sans SumUp (paiement en ligne ou sur place)
|
|
1993
1899
|
* @param {BookingsStaffApiCheckInPlayerRequest} requestParameters Request parameters.
|
|
1994
1900
|
* @param {*} [options] Override http request option.
|
|
1995
1901
|
* @throws {RequiredError}
|
|
@@ -1997,6 +1903,15 @@ export const BookingsStaffApiFactory = function (configuration, basePath, axios)
|
|
|
1997
1903
|
checkInPlayer(requestParameters, options) {
|
|
1998
1904
|
return localVarFp.checkInPlayer(requestParameters.bookingId, requestParameters.checkInPlayerRequest, options).then((request) => request(axios, basePath));
|
|
1999
1905
|
},
|
|
1906
|
+
/**
|
|
1907
|
+
* Check-in d\'un joueur avec création d\'un checkout SumUp
|
|
1908
|
+
* @param {BookingsStaffApiCheckInPlayerWithSumupRequest} requestParameters Request parameters.
|
|
1909
|
+
* @param {*} [options] Override http request option.
|
|
1910
|
+
* @throws {RequiredError}
|
|
1911
|
+
*/
|
|
1912
|
+
checkInPlayerWithSumup(requestParameters, options) {
|
|
1913
|
+
return localVarFp.checkInPlayerWithSumup(requestParameters.bookingId, requestParameters.checkInPlayerSumupRequest, options).then((request) => request(axios, basePath));
|
|
1914
|
+
},
|
|
2000
1915
|
/**
|
|
2001
1916
|
* Créer une réservation pour un joueur depuis l\'espace staff
|
|
2002
1917
|
* @param {BookingsStaffApiCreateStaffBookingRequest} requestParameters Request parameters.
|
|
@@ -2070,7 +1985,7 @@ export const BookingsStaffApiFactory = function (configuration, basePath, axios)
|
|
|
2070
1985
|
*/
|
|
2071
1986
|
export class BookingsStaffApi extends BaseAPI {
|
|
2072
1987
|
/**
|
|
2073
|
-
* Check-in d\'un joueur (paiement en ligne ou sur place)
|
|
1988
|
+
* Check-in d\'un joueur sans SumUp (paiement en ligne ou sur place)
|
|
2074
1989
|
* @param {BookingsStaffApiCheckInPlayerRequest} requestParameters Request parameters.
|
|
2075
1990
|
* @param {*} [options] Override http request option.
|
|
2076
1991
|
* @throws {RequiredError}
|
|
@@ -2079,6 +1994,16 @@ export class BookingsStaffApi extends BaseAPI {
|
|
|
2079
1994
|
checkInPlayer(requestParameters, options) {
|
|
2080
1995
|
return BookingsStaffApiFp(this.configuration).checkInPlayer(requestParameters.bookingId, requestParameters.checkInPlayerRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2081
1996
|
}
|
|
1997
|
+
/**
|
|
1998
|
+
* Check-in d\'un joueur avec création d\'un checkout SumUp
|
|
1999
|
+
* @param {BookingsStaffApiCheckInPlayerWithSumupRequest} requestParameters Request parameters.
|
|
2000
|
+
* @param {*} [options] Override http request option.
|
|
2001
|
+
* @throws {RequiredError}
|
|
2002
|
+
* @memberof BookingsStaffApi
|
|
2003
|
+
*/
|
|
2004
|
+
checkInPlayerWithSumup(requestParameters, options) {
|
|
2005
|
+
return BookingsStaffApiFp(this.configuration).checkInPlayerWithSumup(requestParameters.bookingId, requestParameters.checkInPlayerSumupRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2006
|
+
}
|
|
2082
2007
|
/**
|
|
2083
2008
|
* Créer une réservation pour un joueur depuis l\'espace staff
|
|
2084
2009
|
* @param {BookingsStaffApiCreateStaffBookingRequest} requestParameters Request parameters.
|
|
@@ -2253,13 +2178,13 @@ export const BookingsUserApiAxiosParamCreator = function (configuration) {
|
|
|
2253
2178
|
}),
|
|
2254
2179
|
/**
|
|
2255
2180
|
* Calculer le prix d\'une réservation ouverte avec joueurs initiaux
|
|
2256
|
-
* @param {
|
|
2181
|
+
* @param {GetOpenBookingPriceRequest} getOpenBookingPriceRequest
|
|
2257
2182
|
* @param {*} [options] Override http request option.
|
|
2258
2183
|
* @throws {RequiredError}
|
|
2259
2184
|
*/
|
|
2260
|
-
getOpenBookingPrice: (
|
|
2261
|
-
// verify required parameter '
|
|
2262
|
-
assertParamExists('getOpenBookingPrice', '
|
|
2185
|
+
getOpenBookingPrice: (getOpenBookingPriceRequest_1, ...args_1) => __awaiter(this, [getOpenBookingPriceRequest_1, ...args_1], void 0, function* (getOpenBookingPriceRequest, options = {}) {
|
|
2186
|
+
// verify required parameter 'getOpenBookingPriceRequest' is not null or undefined
|
|
2187
|
+
assertParamExists('getOpenBookingPrice', 'getOpenBookingPriceRequest', getOpenBookingPriceRequest);
|
|
2263
2188
|
const localVarPath = `/api/bookings/open/booking-price`;
|
|
2264
2189
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2265
2190
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -2277,7 +2202,7 @@ export const BookingsUserApiAxiosParamCreator = function (configuration) {
|
|
|
2277
2202
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2278
2203
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2279
2204
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2280
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
2205
|
+
localVarRequestOptions.data = serializeDataIfNeeded(getOpenBookingPriceRequest, localVarRequestOptions, configuration);
|
|
2281
2206
|
return {
|
|
2282
2207
|
url: toPathString(localVarUrlObj),
|
|
2283
2208
|
options: localVarRequestOptions,
|
|
@@ -2375,14 +2300,14 @@ export const BookingsUserApiFp = function (configuration) {
|
|
|
2375
2300
|
},
|
|
2376
2301
|
/**
|
|
2377
2302
|
* Calculer le prix d\'une réservation ouverte avec joueurs initiaux
|
|
2378
|
-
* @param {
|
|
2303
|
+
* @param {GetOpenBookingPriceRequest} getOpenBookingPriceRequest
|
|
2379
2304
|
* @param {*} [options] Override http request option.
|
|
2380
2305
|
* @throws {RequiredError}
|
|
2381
2306
|
*/
|
|
2382
|
-
getOpenBookingPrice(
|
|
2307
|
+
getOpenBookingPrice(getOpenBookingPriceRequest, options) {
|
|
2383
2308
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2384
2309
|
var _a, _b, _c;
|
|
2385
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getOpenBookingPrice(
|
|
2310
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getOpenBookingPrice(getOpenBookingPriceRequest, options);
|
|
2386
2311
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2387
2312
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsUserApi.getOpenBookingPrice']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2388
2313
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -2447,7 +2372,7 @@ export const BookingsUserApiFactory = function (configuration, basePath, axios)
|
|
|
2447
2372
|
* @throws {RequiredError}
|
|
2448
2373
|
*/
|
|
2449
2374
|
getOpenBookingPrice(requestParameters, options) {
|
|
2450
|
-
return localVarFp.getOpenBookingPrice(requestParameters.
|
|
2375
|
+
return localVarFp.getOpenBookingPrice(requestParameters.getOpenBookingPriceRequest, options).then((request) => request(axios, basePath));
|
|
2451
2376
|
},
|
|
2452
2377
|
/**
|
|
2453
2378
|
* Mettre à jour une réservation ouverte (description et niveau minimal)
|
|
@@ -2505,7 +2430,7 @@ export class BookingsUserApi extends BaseAPI {
|
|
|
2505
2430
|
* @memberof BookingsUserApi
|
|
2506
2431
|
*/
|
|
2507
2432
|
getOpenBookingPrice(requestParameters, options) {
|
|
2508
|
-
return BookingsUserApiFp(this.configuration).getOpenBookingPrice(requestParameters.
|
|
2433
|
+
return BookingsUserApiFp(this.configuration).getOpenBookingPrice(requestParameters.getOpenBookingPriceRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2509
2434
|
}
|
|
2510
2435
|
/**
|
|
2511
2436
|
* Mettre à jour une réservation ouverte (description et niveau minimal)
|
|
@@ -9535,41 +9460,6 @@ export const EventsApiAxiosParamCreator = function (configuration) {
|
|
|
9535
9460
|
options: localVarRequestOptions,
|
|
9536
9461
|
};
|
|
9537
9462
|
}),
|
|
9538
|
-
/**
|
|
9539
|
-
* Get upcoming events for a club with pagination (max 10 per page)
|
|
9540
|
-
* @param {string} [clubId]
|
|
9541
|
-
* @param {number} [page]
|
|
9542
|
-
* @param {*} [options] Override http request option.
|
|
9543
|
-
* @throws {RequiredError}
|
|
9544
|
-
*/
|
|
9545
|
-
getComingEvent: (clubId_1, page_1, ...args_1) => __awaiter(this, [clubId_1, page_1, ...args_1], void 0, function* (clubId, page, options = {}) {
|
|
9546
|
-
const localVarPath = `/api/events/coming`;
|
|
9547
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9548
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
9549
|
-
let baseOptions;
|
|
9550
|
-
if (configuration) {
|
|
9551
|
-
baseOptions = configuration.baseOptions;
|
|
9552
|
-
}
|
|
9553
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
9554
|
-
const localVarHeaderParameter = {};
|
|
9555
|
-
const localVarQueryParameter = {};
|
|
9556
|
-
// authentication bearerAuth required
|
|
9557
|
-
// http bearer authentication required
|
|
9558
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
9559
|
-
if (clubId !== undefined) {
|
|
9560
|
-
localVarQueryParameter['clubId'] = clubId;
|
|
9561
|
-
}
|
|
9562
|
-
if (page !== undefined) {
|
|
9563
|
-
localVarQueryParameter['page'] = page;
|
|
9564
|
-
}
|
|
9565
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
9566
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9567
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
9568
|
-
return {
|
|
9569
|
-
url: toPathString(localVarUrlObj),
|
|
9570
|
-
options: localVarRequestOptions,
|
|
9571
|
-
};
|
|
9572
|
-
}),
|
|
9573
9463
|
/**
|
|
9574
9464
|
* Get a specific event by ID
|
|
9575
9465
|
* @param {string} eventId
|
|
@@ -9896,22 +9786,6 @@ export const EventsApiFp = function (configuration) {
|
|
|
9896
9786
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9897
9787
|
});
|
|
9898
9788
|
},
|
|
9899
|
-
/**
|
|
9900
|
-
* Get upcoming events for a club with pagination (max 10 per page)
|
|
9901
|
-
* @param {string} [clubId]
|
|
9902
|
-
* @param {number} [page]
|
|
9903
|
-
* @param {*} [options] Override http request option.
|
|
9904
|
-
* @throws {RequiredError}
|
|
9905
|
-
*/
|
|
9906
|
-
getComingEvent(clubId, page, options) {
|
|
9907
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
9908
|
-
var _a, _b, _c;
|
|
9909
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getComingEvent(clubId, page, options);
|
|
9910
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
9911
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsApi.getComingEvent']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
9912
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9913
|
-
});
|
|
9914
|
-
},
|
|
9915
9789
|
/**
|
|
9916
9790
|
* Get a specific event by ID
|
|
9917
9791
|
* @param {string} eventId
|
|
@@ -10075,15 +9949,6 @@ export const EventsApiFactory = function (configuration, basePath, axios) {
|
|
|
10075
9949
|
estimateOpenEventBookingJoinPrice(requestParameters, options) {
|
|
10076
9950
|
return localVarFp.estimateOpenEventBookingJoinPrice(requestParameters.eventBookingId, requestParameters.creditToUseInCents, options).then((request) => request(axios, basePath));
|
|
10077
9951
|
},
|
|
10078
|
-
/**
|
|
10079
|
-
* Get upcoming events for a club with pagination (max 10 per page)
|
|
10080
|
-
* @param {EventsApiGetComingEventRequest} requestParameters Request parameters.
|
|
10081
|
-
* @param {*} [options] Override http request option.
|
|
10082
|
-
* @throws {RequiredError}
|
|
10083
|
-
*/
|
|
10084
|
-
getComingEvent(requestParameters = {}, options) {
|
|
10085
|
-
return localVarFp.getComingEvent(requestParameters.clubId, requestParameters.page, options).then((request) => request(axios, basePath));
|
|
10086
|
-
},
|
|
10087
9952
|
/**
|
|
10088
9953
|
* Get a specific event by ID
|
|
10089
9954
|
* @param {EventsApiGetEventByIdRequest} requestParameters Request parameters.
|
|
@@ -10195,16 +10060,6 @@ export class EventsApi extends BaseAPI {
|
|
|
10195
10060
|
estimateOpenEventBookingJoinPrice(requestParameters, options) {
|
|
10196
10061
|
return EventsApiFp(this.configuration).estimateOpenEventBookingJoinPrice(requestParameters.eventBookingId, requestParameters.creditToUseInCents, options).then((request) => request(this.axios, this.basePath));
|
|
10197
10062
|
}
|
|
10198
|
-
/**
|
|
10199
|
-
* Get upcoming events for a club with pagination (max 10 per page)
|
|
10200
|
-
* @param {EventsApiGetComingEventRequest} requestParameters Request parameters.
|
|
10201
|
-
* @param {*} [options] Override http request option.
|
|
10202
|
-
* @throws {RequiredError}
|
|
10203
|
-
* @memberof EventsApi
|
|
10204
|
-
*/
|
|
10205
|
-
getComingEvent(requestParameters = {}, options) {
|
|
10206
|
-
return EventsApiFp(this.configuration).getComingEvent(requestParameters.clubId, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
|
|
10207
|
-
}
|
|
10208
10063
|
/**
|
|
10209
10064
|
* Get a specific event by ID
|
|
10210
10065
|
* @param {EventsApiGetEventByIdRequest} requestParameters Request parameters.
|
|
@@ -11030,12 +10885,16 @@ export const EventsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
11030
10885
|
};
|
|
11031
10886
|
}),
|
|
11032
10887
|
/**
|
|
11033
|
-
*
|
|
10888
|
+
* Get a specific event by ID (staff)
|
|
10889
|
+
* @param {string} eventId
|
|
11034
10890
|
* @param {*} [options] Override http request option.
|
|
11035
10891
|
* @throws {RequiredError}
|
|
11036
10892
|
*/
|
|
11037
|
-
|
|
11038
|
-
|
|
10893
|
+
getEventByIdForStaff: (eventId_1, ...args_1) => __awaiter(this, [eventId_1, ...args_1], void 0, function* (eventId, options = {}) {
|
|
10894
|
+
// verify required parameter 'eventId' is not null or undefined
|
|
10895
|
+
assertParamExists('getEventByIdForStaff', 'eventId', eventId);
|
|
10896
|
+
const localVarPath = `/api/events/staff/{eventId}`
|
|
10897
|
+
.replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
|
|
11039
10898
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11040
10899
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
11041
10900
|
let baseOptions;
|
|
@@ -11057,16 +10916,12 @@ export const EventsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
11057
10916
|
};
|
|
11058
10917
|
}),
|
|
11059
10918
|
/**
|
|
11060
|
-
*
|
|
11061
|
-
* @param {string} eventId
|
|
10919
|
+
* // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
|
|
11062
10920
|
* @param {*} [options] Override http request option.
|
|
11063
10921
|
* @throws {RequiredError}
|
|
11064
10922
|
*/
|
|
11065
|
-
|
|
11066
|
-
|
|
11067
|
-
assertParamExists('getEventByIdForStaff', 'eventId', eventId);
|
|
11068
|
-
const localVarPath = `/api/events/staff/{eventId}`
|
|
11069
|
-
.replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
|
|
10923
|
+
getEventsByClub: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
10924
|
+
const localVarPath = `/api/events/staff/getEvents`;
|
|
11070
10925
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11071
10926
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
11072
10927
|
let baseOptions;
|
|
@@ -11134,60 +10989,6 @@ export const EventsStaffApiAxiosParamCreator = function (configuration) {
|
|
|
11134
10989
|
options: localVarRequestOptions,
|
|
11135
10990
|
};
|
|
11136
10991
|
}),
|
|
11137
|
-
/**
|
|
11138
|
-
*
|
|
11139
|
-
* @param {*} [options] Override http request option.
|
|
11140
|
-
* @throws {RequiredError}
|
|
11141
|
-
*/
|
|
11142
|
-
getPastEventsByClub: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
11143
|
-
const localVarPath = `/api/events/staff/getEvents/past`;
|
|
11144
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11145
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
11146
|
-
let baseOptions;
|
|
11147
|
-
if (configuration) {
|
|
11148
|
-
baseOptions = configuration.baseOptions;
|
|
11149
|
-
}
|
|
11150
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
11151
|
-
const localVarHeaderParameter = {};
|
|
11152
|
-
const localVarQueryParameter = {};
|
|
11153
|
-
// authentication bearerAuth required
|
|
11154
|
-
// http bearer authentication required
|
|
11155
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
11156
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
11157
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11158
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
11159
|
-
return {
|
|
11160
|
-
url: toPathString(localVarUrlObj),
|
|
11161
|
-
options: localVarRequestOptions,
|
|
11162
|
-
};
|
|
11163
|
-
}),
|
|
11164
|
-
/**
|
|
11165
|
-
* // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
|
|
11166
|
-
* @param {*} [options] Override http request option.
|
|
11167
|
-
* @throws {RequiredError}
|
|
11168
|
-
*/
|
|
11169
|
-
getUpcomingEventsByClub: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
11170
|
-
const localVarPath = `/api/events/staff/getEvents/upcoming`;
|
|
11171
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11172
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
11173
|
-
let baseOptions;
|
|
11174
|
-
if (configuration) {
|
|
11175
|
-
baseOptions = configuration.baseOptions;
|
|
11176
|
-
}
|
|
11177
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
11178
|
-
const localVarHeaderParameter = {};
|
|
11179
|
-
const localVarQueryParameter = {};
|
|
11180
|
-
// authentication bearerAuth required
|
|
11181
|
-
// http bearer authentication required
|
|
11182
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
11183
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
11184
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11185
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
11186
|
-
return {
|
|
11187
|
-
url: toPathString(localVarUrlObj),
|
|
11188
|
-
options: localVarRequestOptions,
|
|
11189
|
-
};
|
|
11190
|
-
}),
|
|
11191
10992
|
/**
|
|
11192
10993
|
* Get events for the week view (30 day sliding window)
|
|
11193
10994
|
* @param {string} [clubId]
|
|
@@ -11280,31 +11081,31 @@ export const EventsStaffApiFp = function (configuration) {
|
|
|
11280
11081
|
});
|
|
11281
11082
|
},
|
|
11282
11083
|
/**
|
|
11283
|
-
*
|
|
11084
|
+
* Get a specific event by ID (staff)
|
|
11085
|
+
* @param {string} eventId
|
|
11284
11086
|
* @param {*} [options] Override http request option.
|
|
11285
11087
|
* @throws {RequiredError}
|
|
11286
11088
|
*/
|
|
11287
|
-
|
|
11089
|
+
getEventByIdForStaff(eventId, options) {
|
|
11288
11090
|
return __awaiter(this, void 0, void 0, function* () {
|
|
11289
11091
|
var _a, _b, _c;
|
|
11290
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
11092
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getEventByIdForStaff(eventId, options);
|
|
11291
11093
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
11292
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsStaffApi.
|
|
11094
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsStaffApi.getEventByIdForStaff']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
11293
11095
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11294
11096
|
});
|
|
11295
11097
|
},
|
|
11296
11098
|
/**
|
|
11297
|
-
*
|
|
11298
|
-
* @param {string} eventId
|
|
11099
|
+
* // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
|
|
11299
11100
|
* @param {*} [options] Override http request option.
|
|
11300
11101
|
* @throws {RequiredError}
|
|
11301
11102
|
*/
|
|
11302
|
-
|
|
11103
|
+
getEventsByClub(options) {
|
|
11303
11104
|
return __awaiter(this, void 0, void 0, function* () {
|
|
11304
11105
|
var _a, _b, _c;
|
|
11305
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
11106
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getEventsByClub(options);
|
|
11306
11107
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
11307
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsStaffApi.
|
|
11108
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsStaffApi.getEventsByClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
11308
11109
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11309
11110
|
});
|
|
11310
11111
|
},
|
|
@@ -11327,34 +11128,6 @@ export const EventsStaffApiFp = function (configuration) {
|
|
|
11327
11128
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11328
11129
|
});
|
|
11329
11130
|
},
|
|
11330
|
-
/**
|
|
11331
|
-
*
|
|
11332
|
-
* @param {*} [options] Override http request option.
|
|
11333
|
-
* @throws {RequiredError}
|
|
11334
|
-
*/
|
|
11335
|
-
getPastEventsByClub(options) {
|
|
11336
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
11337
|
-
var _a, _b, _c;
|
|
11338
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getPastEventsByClub(options);
|
|
11339
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
11340
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsStaffApi.getPastEventsByClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
11341
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11342
|
-
});
|
|
11343
|
-
},
|
|
11344
|
-
/**
|
|
11345
|
-
* // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
|
|
11346
|
-
* @param {*} [options] Override http request option.
|
|
11347
|
-
* @throws {RequiredError}
|
|
11348
|
-
*/
|
|
11349
|
-
getUpcomingEventsByClub(options) {
|
|
11350
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
11351
|
-
var _a, _b, _c;
|
|
11352
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getUpcomingEventsByClub(options);
|
|
11353
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
11354
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsStaffApi.getUpcomingEventsByClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
11355
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11356
|
-
});
|
|
11357
|
-
},
|
|
11358
11131
|
/**
|
|
11359
11132
|
* Get events for the week view (30 day sliding window)
|
|
11360
11133
|
* @param {string} [clubId]
|
|
@@ -11401,14 +11174,6 @@ export const EventsStaffApiFactory = function (configuration, basePath, axios) {
|
|
|
11401
11174
|
getDailyEvents(requestParameters = {}, options) {
|
|
11402
11175
|
return localVarFp.getDailyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(axios, basePath));
|
|
11403
11176
|
},
|
|
11404
|
-
/**
|
|
11405
|
-
*
|
|
11406
|
-
* @param {*} [options] Override http request option.
|
|
11407
|
-
* @throws {RequiredError}
|
|
11408
|
-
*/
|
|
11409
|
-
getDraftEventsByClub(options) {
|
|
11410
|
-
return localVarFp.getDraftEventsByClub(options).then((request) => request(axios, basePath));
|
|
11411
|
-
},
|
|
11412
11177
|
/**
|
|
11413
11178
|
* Get a specific event by ID (staff)
|
|
11414
11179
|
* @param {EventsStaffApiGetEventByIdForStaffRequest} requestParameters Request parameters.
|
|
@@ -11419,29 +11184,21 @@ export const EventsStaffApiFactory = function (configuration, basePath, axios) {
|
|
|
11419
11184
|
return localVarFp.getEventByIdForStaff(requestParameters.eventId, options).then((request) => request(axios, basePath));
|
|
11420
11185
|
},
|
|
11421
11186
|
/**
|
|
11422
|
-
*
|
|
11423
|
-
* @param {EventsStaffApiGetMonthlyEventsRequest} requestParameters Request parameters.
|
|
11424
|
-
* @param {*} [options] Override http request option.
|
|
11425
|
-
* @throws {RequiredError}
|
|
11426
|
-
*/
|
|
11427
|
-
getMonthlyEvents(requestParameters = {}, options) {
|
|
11428
|
-
return localVarFp.getMonthlyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(axios, basePath));
|
|
11429
|
-
},
|
|
11430
|
-
/**
|
|
11431
|
-
*
|
|
11187
|
+
* // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
|
|
11432
11188
|
* @param {*} [options] Override http request option.
|
|
11433
11189
|
* @throws {RequiredError}
|
|
11434
11190
|
*/
|
|
11435
|
-
|
|
11436
|
-
return localVarFp.
|
|
11191
|
+
getEventsByClub(options) {
|
|
11192
|
+
return localVarFp.getEventsByClub(options).then((request) => request(axios, basePath));
|
|
11437
11193
|
},
|
|
11438
11194
|
/**
|
|
11439
|
-
*
|
|
11195
|
+
* Get events for the entire month view (including recurring occurrences)
|
|
11196
|
+
* @param {EventsStaffApiGetMonthlyEventsRequest} requestParameters Request parameters.
|
|
11440
11197
|
* @param {*} [options] Override http request option.
|
|
11441
11198
|
* @throws {RequiredError}
|
|
11442
11199
|
*/
|
|
11443
|
-
|
|
11444
|
-
return localVarFp.
|
|
11200
|
+
getMonthlyEvents(requestParameters = {}, options) {
|
|
11201
|
+
return localVarFp.getMonthlyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(axios, basePath));
|
|
11445
11202
|
},
|
|
11446
11203
|
/**
|
|
11447
11204
|
* Get events for the week view (30 day sliding window)
|
|
@@ -11482,23 +11239,23 @@ export class EventsStaffApi extends BaseAPI {
|
|
|
11482
11239
|
return EventsStaffApiFp(this.configuration).getDailyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
|
|
11483
11240
|
}
|
|
11484
11241
|
/**
|
|
11485
|
-
*
|
|
11242
|
+
* Get a specific event by ID (staff)
|
|
11243
|
+
* @param {EventsStaffApiGetEventByIdForStaffRequest} requestParameters Request parameters.
|
|
11486
11244
|
* @param {*} [options] Override http request option.
|
|
11487
11245
|
* @throws {RequiredError}
|
|
11488
11246
|
* @memberof EventsStaffApi
|
|
11489
11247
|
*/
|
|
11490
|
-
|
|
11491
|
-
return EventsStaffApiFp(this.configuration).
|
|
11248
|
+
getEventByIdForStaff(requestParameters, options) {
|
|
11249
|
+
return EventsStaffApiFp(this.configuration).getEventByIdForStaff(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
|
|
11492
11250
|
}
|
|
11493
11251
|
/**
|
|
11494
|
-
*
|
|
11495
|
-
* @param {EventsStaffApiGetEventByIdForStaffRequest} requestParameters Request parameters.
|
|
11252
|
+
* // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
|
|
11496
11253
|
* @param {*} [options] Override http request option.
|
|
11497
11254
|
* @throws {RequiredError}
|
|
11498
11255
|
* @memberof EventsStaffApi
|
|
11499
11256
|
*/
|
|
11500
|
-
|
|
11501
|
-
return EventsStaffApiFp(this.configuration).
|
|
11257
|
+
getEventsByClub(options) {
|
|
11258
|
+
return EventsStaffApiFp(this.configuration).getEventsByClub(options).then((request) => request(this.axios, this.basePath));
|
|
11502
11259
|
}
|
|
11503
11260
|
/**
|
|
11504
11261
|
* Get events for the entire month view (including recurring occurrences)
|
|
@@ -11511,32 +11268,14 @@ export class EventsStaffApi extends BaseAPI {
|
|
|
11511
11268
|
return EventsStaffApiFp(this.configuration).getMonthlyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
|
|
11512
11269
|
}
|
|
11513
11270
|
/**
|
|
11514
|
-
*
|
|
11271
|
+
* Get events for the week view (30 day sliding window)
|
|
11272
|
+
* @param {EventsStaffApiGetWeeklyEventsRequest} requestParameters Request parameters.
|
|
11515
11273
|
* @param {*} [options] Override http request option.
|
|
11516
11274
|
* @throws {RequiredError}
|
|
11517
11275
|
* @memberof EventsStaffApi
|
|
11518
11276
|
*/
|
|
11519
|
-
|
|
11520
|
-
return EventsStaffApiFp(this.configuration).
|
|
11521
|
-
}
|
|
11522
|
-
/**
|
|
11523
|
-
* // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
|
|
11524
|
-
* @param {*} [options] Override http request option.
|
|
11525
|
-
* @throws {RequiredError}
|
|
11526
|
-
* @memberof EventsStaffApi
|
|
11527
|
-
*/
|
|
11528
|
-
getUpcomingEventsByClub(options) {
|
|
11529
|
-
return EventsStaffApiFp(this.configuration).getUpcomingEventsByClub(options).then((request) => request(this.axios, this.basePath));
|
|
11530
|
-
}
|
|
11531
|
-
/**
|
|
11532
|
-
* Get events for the week view (30 day sliding window)
|
|
11533
|
-
* @param {EventsStaffApiGetWeeklyEventsRequest} requestParameters Request parameters.
|
|
11534
|
-
* @param {*} [options] Override http request option.
|
|
11535
|
-
* @throws {RequiredError}
|
|
11536
|
-
* @memberof EventsStaffApi
|
|
11537
|
-
*/
|
|
11538
|
-
getWeeklyEvents(requestParameters = {}, options) {
|
|
11539
|
-
return EventsStaffApiFp(this.configuration).getWeeklyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
|
|
11277
|
+
getWeeklyEvents(requestParameters = {}, options) {
|
|
11278
|
+
return EventsStaffApiFp(this.configuration).getWeeklyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
|
|
11540
11279
|
}
|
|
11541
11280
|
}
|
|
11542
11281
|
/**
|
|
@@ -11685,206 +11424,272 @@ export class ImagesApi extends BaseAPI {
|
|
|
11685
11424
|
}
|
|
11686
11425
|
}
|
|
11687
11426
|
/**
|
|
11688
|
-
*
|
|
11427
|
+
* PaymentsStaffApi - axios parameter creator
|
|
11689
11428
|
* @export
|
|
11690
11429
|
*/
|
|
11691
|
-
export const
|
|
11430
|
+
export const PaymentsStaffApiAxiosParamCreator = function (configuration) {
|
|
11692
11431
|
return {
|
|
11693
11432
|
/**
|
|
11694
|
-
*
|
|
11695
|
-
* @
|
|
11433
|
+
* Cancel a SumUp reader checkout.
|
|
11434
|
+
* @param {string} clubId
|
|
11435
|
+
* @param {string} paymentId
|
|
11436
|
+
* @param {SumupCancelPaymentRequest} [sumupCancelPaymentRequest]
|
|
11696
11437
|
* @param {*} [options] Override http request option.
|
|
11697
11438
|
* @throws {RequiredError}
|
|
11698
11439
|
*/
|
|
11699
|
-
|
|
11700
|
-
|
|
11440
|
+
cancelSumupPayment: (clubId_1, paymentId_1, sumupCancelPaymentRequest_1, ...args_1) => __awaiter(this, [clubId_1, paymentId_1, sumupCancelPaymentRequest_1, ...args_1], void 0, function* (clubId, paymentId, sumupCancelPaymentRequest, options = {}) {
|
|
11441
|
+
// verify required parameter 'clubId' is not null or undefined
|
|
11442
|
+
assertParamExists('cancelSumupPayment', 'clubId', clubId);
|
|
11443
|
+
// verify required parameter 'paymentId' is not null or undefined
|
|
11444
|
+
assertParamExists('cancelSumupPayment', 'paymentId', paymentId);
|
|
11445
|
+
const localVarPath = `/api/clubs/{clubId}/payments/sumup/{paymentId}/cancel`
|
|
11446
|
+
.replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)))
|
|
11447
|
+
.replace(`{${"paymentId"}}`, encodeURIComponent(String(paymentId)));
|
|
11701
11448
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11702
11449
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
11703
11450
|
let baseOptions;
|
|
11704
11451
|
if (configuration) {
|
|
11705
11452
|
baseOptions = configuration.baseOptions;
|
|
11706
11453
|
}
|
|
11707
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
11454
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
11708
11455
|
const localVarHeaderParameter = {};
|
|
11709
11456
|
const localVarQueryParameter = {};
|
|
11457
|
+
// authentication bearerAuth required
|
|
11458
|
+
// http bearer authentication required
|
|
11459
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
11460
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
11710
11461
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
11711
11462
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11712
11463
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
11464
|
+
localVarRequestOptions.data = serializeDataIfNeeded(sumupCancelPaymentRequest, localVarRequestOptions, configuration);
|
|
11713
11465
|
return {
|
|
11714
11466
|
url: toPathString(localVarUrlObj),
|
|
11715
11467
|
options: localVarRequestOptions,
|
|
11716
11468
|
};
|
|
11717
11469
|
}),
|
|
11718
11470
|
/**
|
|
11719
|
-
*
|
|
11720
|
-
* @
|
|
11471
|
+
* Start a SumUp reader checkout (manual payment trigger).
|
|
11472
|
+
* @param {string} clubId
|
|
11473
|
+
* @param {SumupCreatePaymentRequest} sumupCreatePaymentRequest
|
|
11721
11474
|
* @param {*} [options] Override http request option.
|
|
11722
11475
|
* @throws {RequiredError}
|
|
11723
11476
|
*/
|
|
11724
|
-
|
|
11725
|
-
|
|
11477
|
+
createSumupPayment: (clubId_1, sumupCreatePaymentRequest_1, ...args_1) => __awaiter(this, [clubId_1, sumupCreatePaymentRequest_1, ...args_1], void 0, function* (clubId, sumupCreatePaymentRequest, options = {}) {
|
|
11478
|
+
// verify required parameter 'clubId' is not null or undefined
|
|
11479
|
+
assertParamExists('createSumupPayment', 'clubId', clubId);
|
|
11480
|
+
// verify required parameter 'sumupCreatePaymentRequest' is not null or undefined
|
|
11481
|
+
assertParamExists('createSumupPayment', 'sumupCreatePaymentRequest', sumupCreatePaymentRequest);
|
|
11482
|
+
const localVarPath = `/api/clubs/{clubId}/payments/sumup`
|
|
11483
|
+
.replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
|
|
11726
11484
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11727
11485
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
11728
11486
|
let baseOptions;
|
|
11729
11487
|
if (configuration) {
|
|
11730
11488
|
baseOptions = configuration.baseOptions;
|
|
11731
11489
|
}
|
|
11732
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
11490
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
11733
11491
|
const localVarHeaderParameter = {};
|
|
11734
11492
|
const localVarQueryParameter = {};
|
|
11493
|
+
// authentication bearerAuth required
|
|
11494
|
+
// http bearer authentication required
|
|
11495
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
11496
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
11735
11497
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
11736
11498
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11737
11499
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
11500
|
+
localVarRequestOptions.data = serializeDataIfNeeded(sumupCreatePaymentRequest, localVarRequestOptions, configuration);
|
|
11738
11501
|
return {
|
|
11739
11502
|
url: toPathString(localVarUrlObj),
|
|
11740
11503
|
options: localVarRequestOptions,
|
|
11741
11504
|
};
|
|
11742
11505
|
}),
|
|
11506
|
+
};
|
|
11507
|
+
};
|
|
11508
|
+
/**
|
|
11509
|
+
* PaymentsStaffApi - functional programming interface
|
|
11510
|
+
* @export
|
|
11511
|
+
*/
|
|
11512
|
+
export const PaymentsStaffApiFp = function (configuration) {
|
|
11513
|
+
const localVarAxiosParamCreator = PaymentsStaffApiAxiosParamCreator(configuration);
|
|
11514
|
+
return {
|
|
11743
11515
|
/**
|
|
11744
|
-
*
|
|
11745
|
-
* @
|
|
11516
|
+
* Cancel a SumUp reader checkout.
|
|
11517
|
+
* @param {string} clubId
|
|
11518
|
+
* @param {string} paymentId
|
|
11519
|
+
* @param {SumupCancelPaymentRequest} [sumupCancelPaymentRequest]
|
|
11746
11520
|
* @param {*} [options] Override http request option.
|
|
11747
11521
|
* @throws {RequiredError}
|
|
11748
11522
|
*/
|
|
11749
|
-
|
|
11750
|
-
|
|
11751
|
-
|
|
11752
|
-
|
|
11753
|
-
|
|
11754
|
-
|
|
11755
|
-
|
|
11756
|
-
}
|
|
11757
|
-
|
|
11758
|
-
const localVarHeaderParameter = {};
|
|
11759
|
-
const localVarQueryParameter = {};
|
|
11760
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
11761
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11762
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
11763
|
-
return {
|
|
11764
|
-
url: toPathString(localVarUrlObj),
|
|
11765
|
-
options: localVarRequestOptions,
|
|
11766
|
-
};
|
|
11767
|
-
}),
|
|
11523
|
+
cancelSumupPayment(clubId, paymentId, sumupCancelPaymentRequest, options) {
|
|
11524
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
11525
|
+
var _a, _b, _c;
|
|
11526
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.cancelSumupPayment(clubId, paymentId, sumupCancelPaymentRequest, options);
|
|
11527
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
11528
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PaymentsStaffApi.cancelSumupPayment']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
11529
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11530
|
+
});
|
|
11531
|
+
},
|
|
11768
11532
|
/**
|
|
11769
|
-
*
|
|
11770
|
-
* @
|
|
11533
|
+
* Start a SumUp reader checkout (manual payment trigger).
|
|
11534
|
+
* @param {string} clubId
|
|
11535
|
+
* @param {SumupCreatePaymentRequest} sumupCreatePaymentRequest
|
|
11771
11536
|
* @param {*} [options] Override http request option.
|
|
11772
11537
|
* @throws {RequiredError}
|
|
11773
11538
|
*/
|
|
11774
|
-
|
|
11775
|
-
|
|
11776
|
-
|
|
11777
|
-
|
|
11778
|
-
|
|
11779
|
-
|
|
11780
|
-
|
|
11781
|
-
}
|
|
11782
|
-
|
|
11783
|
-
|
|
11784
|
-
|
|
11785
|
-
|
|
11786
|
-
|
|
11787
|
-
|
|
11788
|
-
|
|
11789
|
-
|
|
11790
|
-
|
|
11791
|
-
|
|
11792
|
-
}),
|
|
11539
|
+
createSumupPayment(clubId, sumupCreatePaymentRequest, options) {
|
|
11540
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
11541
|
+
var _a, _b, _c;
|
|
11542
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createSumupPayment(clubId, sumupCreatePaymentRequest, options);
|
|
11543
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
11544
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PaymentsStaffApi.createSumupPayment']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
11545
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11546
|
+
});
|
|
11547
|
+
},
|
|
11548
|
+
};
|
|
11549
|
+
};
|
|
11550
|
+
/**
|
|
11551
|
+
* PaymentsStaffApi - factory interface
|
|
11552
|
+
* @export
|
|
11553
|
+
*/
|
|
11554
|
+
export const PaymentsStaffApiFactory = function (configuration, basePath, axios) {
|
|
11555
|
+
const localVarFp = PaymentsStaffApiFp(configuration);
|
|
11556
|
+
return {
|
|
11793
11557
|
/**
|
|
11794
|
-
*
|
|
11795
|
-
* @
|
|
11558
|
+
* Cancel a SumUp reader checkout.
|
|
11559
|
+
* @param {PaymentsStaffApiCancelSumupPaymentRequest} requestParameters Request parameters.
|
|
11796
11560
|
* @param {*} [options] Override http request option.
|
|
11797
11561
|
* @throws {RequiredError}
|
|
11798
11562
|
*/
|
|
11799
|
-
|
|
11800
|
-
|
|
11801
|
-
|
|
11802
|
-
|
|
11803
|
-
|
|
11804
|
-
|
|
11805
|
-
|
|
11806
|
-
|
|
11807
|
-
|
|
11808
|
-
|
|
11809
|
-
|
|
11810
|
-
|
|
11811
|
-
|
|
11812
|
-
|
|
11813
|
-
|
|
11814
|
-
|
|
11815
|
-
|
|
11816
|
-
|
|
11817
|
-
|
|
11563
|
+
cancelSumupPayment(requestParameters, options) {
|
|
11564
|
+
return localVarFp.cancelSumupPayment(requestParameters.clubId, requestParameters.paymentId, requestParameters.sumupCancelPaymentRequest, options).then((request) => request(axios, basePath));
|
|
11565
|
+
},
|
|
11566
|
+
/**
|
|
11567
|
+
* Start a SumUp reader checkout (manual payment trigger).
|
|
11568
|
+
* @param {PaymentsStaffApiCreateSumupPaymentRequest} requestParameters Request parameters.
|
|
11569
|
+
* @param {*} [options] Override http request option.
|
|
11570
|
+
* @throws {RequiredError}
|
|
11571
|
+
*/
|
|
11572
|
+
createSumupPayment(requestParameters, options) {
|
|
11573
|
+
return localVarFp.createSumupPayment(requestParameters.clubId, requestParameters.sumupCreatePaymentRequest, options).then((request) => request(axios, basePath));
|
|
11574
|
+
},
|
|
11575
|
+
};
|
|
11576
|
+
};
|
|
11577
|
+
/**
|
|
11578
|
+
* PaymentsStaffApi - object-oriented interface
|
|
11579
|
+
* @export
|
|
11580
|
+
* @class PaymentsStaffApi
|
|
11581
|
+
* @extends {BaseAPI}
|
|
11582
|
+
*/
|
|
11583
|
+
export class PaymentsStaffApi extends BaseAPI {
|
|
11584
|
+
/**
|
|
11585
|
+
* Cancel a SumUp reader checkout.
|
|
11586
|
+
* @param {PaymentsStaffApiCancelSumupPaymentRequest} requestParameters Request parameters.
|
|
11587
|
+
* @param {*} [options] Override http request option.
|
|
11588
|
+
* @throws {RequiredError}
|
|
11589
|
+
* @memberof PaymentsStaffApi
|
|
11590
|
+
*/
|
|
11591
|
+
cancelSumupPayment(requestParameters, options) {
|
|
11592
|
+
return PaymentsStaffApiFp(this.configuration).cancelSumupPayment(requestParameters.clubId, requestParameters.paymentId, requestParameters.sumupCancelPaymentRequest, options).then((request) => request(this.axios, this.basePath));
|
|
11593
|
+
}
|
|
11594
|
+
/**
|
|
11595
|
+
* Start a SumUp reader checkout (manual payment trigger).
|
|
11596
|
+
* @param {PaymentsStaffApiCreateSumupPaymentRequest} requestParameters Request parameters.
|
|
11597
|
+
* @param {*} [options] Override http request option.
|
|
11598
|
+
* @throws {RequiredError}
|
|
11599
|
+
* @memberof PaymentsStaffApi
|
|
11600
|
+
*/
|
|
11601
|
+
createSumupPayment(requestParameters, options) {
|
|
11602
|
+
return PaymentsStaffApiFp(this.configuration).createSumupPayment(requestParameters.clubId, requestParameters.sumupCreatePaymentRequest, options).then((request) => request(this.axios, this.basePath));
|
|
11603
|
+
}
|
|
11604
|
+
}
|
|
11605
|
+
/**
|
|
11606
|
+
* PublicEmailApi - axios parameter creator
|
|
11607
|
+
* @export
|
|
11608
|
+
*/
|
|
11609
|
+
export const PublicEmailApiAxiosParamCreator = function (configuration) {
|
|
11610
|
+
return {
|
|
11818
11611
|
/**
|
|
11819
|
-
*
|
|
11820
|
-
* @
|
|
11612
|
+
*
|
|
11613
|
+
* @param {EmailExistsRequestBody} emailExistsRequestBody
|
|
11821
11614
|
* @param {*} [options] Override http request option.
|
|
11822
11615
|
* @throws {RequiredError}
|
|
11823
11616
|
*/
|
|
11824
|
-
|
|
11825
|
-
|
|
11617
|
+
authEmailExists: (emailExistsRequestBody_1, ...args_1) => __awaiter(this, [emailExistsRequestBody_1, ...args_1], void 0, function* (emailExistsRequestBody, options = {}) {
|
|
11618
|
+
// verify required parameter 'emailExistsRequestBody' is not null or undefined
|
|
11619
|
+
assertParamExists('authEmailExists', 'emailExistsRequestBody', emailExistsRequestBody);
|
|
11620
|
+
const localVarPath = `/api/public-email/auth-email-exists`;
|
|
11826
11621
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11827
11622
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
11828
11623
|
let baseOptions;
|
|
11829
11624
|
if (configuration) {
|
|
11830
11625
|
baseOptions = configuration.baseOptions;
|
|
11831
11626
|
}
|
|
11832
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
11627
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
11833
11628
|
const localVarHeaderParameter = {};
|
|
11834
11629
|
const localVarQueryParameter = {};
|
|
11630
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
11835
11631
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
11836
11632
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11837
11633
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
11634
|
+
localVarRequestOptions.data = serializeDataIfNeeded(emailExistsRequestBody, localVarRequestOptions, configuration);
|
|
11838
11635
|
return {
|
|
11839
11636
|
url: toPathString(localVarUrlObj),
|
|
11840
11637
|
options: localVarRequestOptions,
|
|
11841
11638
|
};
|
|
11842
11639
|
}),
|
|
11843
11640
|
/**
|
|
11844
|
-
*
|
|
11845
|
-
* @
|
|
11641
|
+
*
|
|
11642
|
+
* @param {RequestEmailCodeBody} requestEmailCodeBody
|
|
11846
11643
|
* @param {*} [options] Override http request option.
|
|
11847
11644
|
* @throws {RequiredError}
|
|
11848
11645
|
*/
|
|
11849
|
-
|
|
11850
|
-
|
|
11646
|
+
requestVerificationCode: (requestEmailCodeBody_1, ...args_1) => __awaiter(this, [requestEmailCodeBody_1, ...args_1], void 0, function* (requestEmailCodeBody, options = {}) {
|
|
11647
|
+
// verify required parameter 'requestEmailCodeBody' is not null or undefined
|
|
11648
|
+
assertParamExists('requestVerificationCode', 'requestEmailCodeBody', requestEmailCodeBody);
|
|
11649
|
+
const localVarPath = `/api/public-email/request-verification-code`;
|
|
11851
11650
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11852
11651
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
11853
11652
|
let baseOptions;
|
|
11854
11653
|
if (configuration) {
|
|
11855
11654
|
baseOptions = configuration.baseOptions;
|
|
11856
11655
|
}
|
|
11857
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
11656
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
11858
11657
|
const localVarHeaderParameter = {};
|
|
11859
11658
|
const localVarQueryParameter = {};
|
|
11659
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
11860
11660
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
11861
11661
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11862
11662
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
11663
|
+
localVarRequestOptions.data = serializeDataIfNeeded(requestEmailCodeBody, localVarRequestOptions, configuration);
|
|
11863
11664
|
return {
|
|
11864
11665
|
url: toPathString(localVarUrlObj),
|
|
11865
11666
|
options: localVarRequestOptions,
|
|
11866
11667
|
};
|
|
11867
11668
|
}),
|
|
11868
11669
|
/**
|
|
11869
|
-
*
|
|
11870
|
-
* @
|
|
11670
|
+
*
|
|
11671
|
+
* @param {VerifyEmailCodeBody} verifyEmailCodeBody
|
|
11871
11672
|
* @param {*} [options] Override http request option.
|
|
11872
11673
|
* @throws {RequiredError}
|
|
11873
11674
|
*/
|
|
11874
|
-
|
|
11875
|
-
|
|
11675
|
+
verifyCode: (verifyEmailCodeBody_1, ...args_1) => __awaiter(this, [verifyEmailCodeBody_1, ...args_1], void 0, function* (verifyEmailCodeBody, options = {}) {
|
|
11676
|
+
// verify required parameter 'verifyEmailCodeBody' is not null or undefined
|
|
11677
|
+
assertParamExists('verifyCode', 'verifyEmailCodeBody', verifyEmailCodeBody);
|
|
11678
|
+
const localVarPath = `/api/public-email/verify-code`;
|
|
11876
11679
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11877
11680
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
11878
11681
|
let baseOptions;
|
|
11879
11682
|
if (configuration) {
|
|
11880
11683
|
baseOptions = configuration.baseOptions;
|
|
11881
11684
|
}
|
|
11882
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
11685
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
11883
11686
|
const localVarHeaderParameter = {};
|
|
11884
11687
|
const localVarQueryParameter = {};
|
|
11688
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
11885
11689
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
11886
11690
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11887
11691
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
11692
|
+
localVarRequestOptions.data = serializeDataIfNeeded(verifyEmailCodeBody, localVarRequestOptions, configuration);
|
|
11888
11693
|
return {
|
|
11889
11694
|
url: toPathString(localVarUrlObj),
|
|
11890
11695
|
options: localVarRequestOptions,
|
|
@@ -11893,485 +11698,92 @@ export const JobsApiAxiosParamCreator = function (configuration) {
|
|
|
11893
11698
|
};
|
|
11894
11699
|
};
|
|
11895
11700
|
/**
|
|
11896
|
-
*
|
|
11701
|
+
* PublicEmailApi - functional programming interface
|
|
11897
11702
|
* @export
|
|
11898
11703
|
*/
|
|
11899
|
-
export const
|
|
11900
|
-
const localVarAxiosParamCreator =
|
|
11704
|
+
export const PublicEmailApiFp = function (configuration) {
|
|
11705
|
+
const localVarAxiosParamCreator = PublicEmailApiAxiosParamCreator(configuration);
|
|
11901
11706
|
return {
|
|
11902
11707
|
/**
|
|
11903
|
-
*
|
|
11904
|
-
* @
|
|
11905
|
-
* @param {*} [options] Override http request option.
|
|
11906
|
-
* @throws {RequiredError}
|
|
11907
|
-
*/
|
|
11908
|
-
captureExpiringAuthorizations(options) {
|
|
11909
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
11910
|
-
var _a, _b, _c;
|
|
11911
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.captureExpiringAuthorizations(options);
|
|
11912
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
11913
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['JobsApi.captureExpiringAuthorizations']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
11914
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11915
|
-
});
|
|
11916
|
-
},
|
|
11917
|
-
/**
|
|
11918
|
-
* Job: Capturer les paiements pour les réservations passées Fréquence recommandée: Toutes les heures
|
|
11919
|
-
* @summary Capture les paiements autorisés pour les réservations passées
|
|
11920
|
-
* @param {*} [options] Override http request option.
|
|
11921
|
-
* @throws {RequiredError}
|
|
11922
|
-
*/
|
|
11923
|
-
capturePastReservations(options) {
|
|
11924
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
11925
|
-
var _a, _b, _c;
|
|
11926
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.capturePastReservations(options);
|
|
11927
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
11928
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['JobsApi.capturePastReservations']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
11929
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11930
|
-
});
|
|
11931
|
-
},
|
|
11932
|
-
/**
|
|
11933
|
-
* Job: Expirer les réservations en attente de paiement Fréquence recommandée: Toutes les minutes
|
|
11934
|
-
* @summary Expire les réservations en attente de paiement
|
|
11935
|
-
* @param {*} [options] Override http request option.
|
|
11936
|
-
* @throws {RequiredError}
|
|
11937
|
-
*/
|
|
11938
|
-
expireBookingWaitingPayments(options) {
|
|
11939
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
11940
|
-
var _a, _b, _c;
|
|
11941
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.expireBookingWaitingPayments(options);
|
|
11942
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
11943
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['JobsApi.expireBookingWaitingPayments']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
11944
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11945
|
-
});
|
|
11946
|
-
},
|
|
11947
|
-
/**
|
|
11948
|
-
* Job: Expirer les paiements en attente sur la waitlist Fréquence recommandée: Toutes les minutes
|
|
11949
|
-
* @summary Expire les paiements en attente sur la waitlist
|
|
11950
|
-
* @param {*} [options] Override http request option.
|
|
11951
|
-
* @throws {RequiredError}
|
|
11952
|
-
*/
|
|
11953
|
-
expireWaitlistPayments(options) {
|
|
11954
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
11955
|
-
var _a, _b, _c;
|
|
11956
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.expireWaitlistPayments(options);
|
|
11957
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
11958
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['JobsApi.expireWaitlistPayments']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
11959
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11960
|
-
});
|
|
11961
|
-
},
|
|
11962
|
-
/**
|
|
11963
|
-
* Route de santé pour vérifier que le service jobs est opérationnel
|
|
11964
|
-
* @summary Health check pour les jobs
|
|
11965
|
-
* @param {*} [options] Override http request option.
|
|
11966
|
-
* @throws {RequiredError}
|
|
11967
|
-
*/
|
|
11968
|
-
health(options) {
|
|
11969
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
11970
|
-
var _a, _b, _c;
|
|
11971
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.health(options);
|
|
11972
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
11973
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['JobsApi.health']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
11974
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11975
|
-
});
|
|
11976
|
-
},
|
|
11977
|
-
/**
|
|
11978
|
-
* Job: Maintenir les créneaux (slots) Fréquence recommandée: Une fois par jour (2h du matin)
|
|
11979
|
-
* @summary Génère les créneaux futurs et nettoie les anciens
|
|
11708
|
+
*
|
|
11709
|
+
* @param {EmailExistsRequestBody} emailExistsRequestBody
|
|
11980
11710
|
* @param {*} [options] Override http request option.
|
|
11981
11711
|
* @throws {RequiredError}
|
|
11982
11712
|
*/
|
|
11983
|
-
|
|
11713
|
+
authEmailExists(emailExistsRequestBody, options) {
|
|
11984
11714
|
return __awaiter(this, void 0, void 0, function* () {
|
|
11985
11715
|
var _a, _b, _c;
|
|
11986
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
11716
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.authEmailExists(emailExistsRequestBody, options);
|
|
11987
11717
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
11988
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['
|
|
11718
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PublicEmailApi.authEmailExists']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
11989
11719
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11990
11720
|
});
|
|
11991
11721
|
},
|
|
11992
11722
|
/**
|
|
11993
|
-
*
|
|
11994
|
-
* @
|
|
11723
|
+
*
|
|
11724
|
+
* @param {RequestEmailCodeBody} requestEmailCodeBody
|
|
11995
11725
|
* @param {*} [options] Override http request option.
|
|
11996
11726
|
* @throws {RequiredError}
|
|
11997
11727
|
*/
|
|
11998
|
-
|
|
11728
|
+
requestVerificationCode(requestEmailCodeBody, options) {
|
|
11999
11729
|
return __awaiter(this, void 0, void 0, function* () {
|
|
12000
11730
|
var _a, _b, _c;
|
|
12001
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
11731
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.requestVerificationCode(requestEmailCodeBody, options);
|
|
12002
11732
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12003
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['
|
|
11733
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PublicEmailApi.requestVerificationCode']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12004
11734
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12005
11735
|
});
|
|
12006
11736
|
},
|
|
12007
11737
|
/**
|
|
12008
|
-
*
|
|
12009
|
-
* @
|
|
11738
|
+
*
|
|
11739
|
+
* @param {VerifyEmailCodeBody} verifyEmailCodeBody
|
|
12010
11740
|
* @param {*} [options] Override http request option.
|
|
12011
11741
|
* @throws {RequiredError}
|
|
12012
11742
|
*/
|
|
12013
|
-
|
|
11743
|
+
verifyCode(verifyEmailCodeBody, options) {
|
|
12014
11744
|
return __awaiter(this, void 0, void 0, function* () {
|
|
12015
11745
|
var _a, _b, _c;
|
|
12016
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
11746
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.verifyCode(verifyEmailCodeBody, options);
|
|
12017
11747
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12018
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['
|
|
11748
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PublicEmailApi.verifyCode']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12019
11749
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12020
11750
|
});
|
|
12021
11751
|
},
|
|
12022
11752
|
};
|
|
12023
11753
|
};
|
|
12024
11754
|
/**
|
|
12025
|
-
*
|
|
11755
|
+
* PublicEmailApi - factory interface
|
|
12026
11756
|
* @export
|
|
12027
11757
|
*/
|
|
12028
|
-
export const
|
|
12029
|
-
const localVarFp =
|
|
11758
|
+
export const PublicEmailApiFactory = function (configuration, basePath, axios) {
|
|
11759
|
+
const localVarFp = PublicEmailApiFp(configuration);
|
|
12030
11760
|
return {
|
|
12031
11761
|
/**
|
|
12032
|
-
*
|
|
12033
|
-
* @
|
|
12034
|
-
* @param {*} [options] Override http request option.
|
|
12035
|
-
* @throws {RequiredError}
|
|
12036
|
-
*/
|
|
12037
|
-
captureExpiringAuthorizations(options) {
|
|
12038
|
-
return localVarFp.captureExpiringAuthorizations(options).then((request) => request(axios, basePath));
|
|
12039
|
-
},
|
|
12040
|
-
/**
|
|
12041
|
-
* Job: Capturer les paiements pour les réservations passées Fréquence recommandée: Toutes les heures
|
|
12042
|
-
* @summary Capture les paiements autorisés pour les réservations passées
|
|
12043
|
-
* @param {*} [options] Override http request option.
|
|
12044
|
-
* @throws {RequiredError}
|
|
12045
|
-
*/
|
|
12046
|
-
capturePastReservations(options) {
|
|
12047
|
-
return localVarFp.capturePastReservations(options).then((request) => request(axios, basePath));
|
|
12048
|
-
},
|
|
12049
|
-
/**
|
|
12050
|
-
* Job: Expirer les réservations en attente de paiement Fréquence recommandée: Toutes les minutes
|
|
12051
|
-
* @summary Expire les réservations en attente de paiement
|
|
12052
|
-
* @param {*} [options] Override http request option.
|
|
12053
|
-
* @throws {RequiredError}
|
|
12054
|
-
*/
|
|
12055
|
-
expireBookingWaitingPayments(options) {
|
|
12056
|
-
return localVarFp.expireBookingWaitingPayments(options).then((request) => request(axios, basePath));
|
|
12057
|
-
},
|
|
12058
|
-
/**
|
|
12059
|
-
* Job: Expirer les paiements en attente sur la waitlist Fréquence recommandée: Toutes les minutes
|
|
12060
|
-
* @summary Expire les paiements en attente sur la waitlist
|
|
11762
|
+
*
|
|
11763
|
+
* @param {PublicEmailApiAuthEmailExistsRequest} requestParameters Request parameters.
|
|
12061
11764
|
* @param {*} [options] Override http request option.
|
|
12062
11765
|
* @throws {RequiredError}
|
|
12063
11766
|
*/
|
|
12064
|
-
|
|
12065
|
-
return localVarFp.
|
|
11767
|
+
authEmailExists(requestParameters, options) {
|
|
11768
|
+
return localVarFp.authEmailExists(requestParameters.emailExistsRequestBody, options).then((request) => request(axios, basePath));
|
|
12066
11769
|
},
|
|
12067
11770
|
/**
|
|
12068
|
-
*
|
|
12069
|
-
* @
|
|
11771
|
+
*
|
|
11772
|
+
* @param {PublicEmailApiRequestVerificationCodeRequest} requestParameters Request parameters.
|
|
12070
11773
|
* @param {*} [options] Override http request option.
|
|
12071
11774
|
* @throws {RequiredError}
|
|
12072
11775
|
*/
|
|
12073
|
-
|
|
12074
|
-
return localVarFp.
|
|
11776
|
+
requestVerificationCode(requestParameters, options) {
|
|
11777
|
+
return localVarFp.requestVerificationCode(requestParameters.requestEmailCodeBody, options).then((request) => request(axios, basePath));
|
|
12075
11778
|
},
|
|
12076
11779
|
/**
|
|
12077
|
-
*
|
|
12078
|
-
* @
|
|
11780
|
+
*
|
|
11781
|
+
* @param {PublicEmailApiVerifyCodeRequest} requestParameters Request parameters.
|
|
12079
11782
|
* @param {*} [options] Override http request option.
|
|
12080
11783
|
* @throws {RequiredError}
|
|
12081
11784
|
*/
|
|
12082
|
-
|
|
12083
|
-
return localVarFp.
|
|
12084
|
-
},
|
|
12085
|
-
/**
|
|
12086
|
-
* Job: Libérer les anciennes réservations Fréquence recommandée: Toutes les minutes
|
|
12087
|
-
* @summary Libère les anciennes réservations terminées
|
|
12088
|
-
* @param {*} [options] Override http request option.
|
|
12089
|
-
* @throws {RequiredError}
|
|
12090
|
-
*/
|
|
12091
|
-
releaseOldBookings(options) {
|
|
12092
|
-
return localVarFp.releaseOldBookings(options).then((request) => request(axios, basePath));
|
|
12093
|
-
},
|
|
12094
|
-
/**
|
|
12095
|
-
* Job: Envoyer les rappels de réservation et d\'événements Fréquence recommandée: Toutes les heures
|
|
12096
|
-
* @summary Envoie des emails de rappel 24h avant les réservations et événements
|
|
12097
|
-
* @param {*} [options] Override http request option.
|
|
12098
|
-
* @throws {RequiredError}
|
|
12099
|
-
*/
|
|
12100
|
-
sendBookingReminders(options) {
|
|
12101
|
-
return localVarFp.sendBookingReminders(options).then((request) => request(axios, basePath));
|
|
12102
|
-
},
|
|
12103
|
-
};
|
|
12104
|
-
};
|
|
12105
|
-
/**
|
|
12106
|
-
* JobsApi - object-oriented interface
|
|
12107
|
-
* @export
|
|
12108
|
-
* @class JobsApi
|
|
12109
|
-
* @extends {BaseAPI}
|
|
12110
|
-
*/
|
|
12111
|
-
export class JobsApi extends BaseAPI {
|
|
12112
|
-
/**
|
|
12113
|
-
* Job: Capturer les autorisations de paiement qui expirent bientôt Fréquence recommandée: Toutes les 30 minutes
|
|
12114
|
-
* @summary Capture les autorisations Stripe qui expirent dans moins de 4h
|
|
12115
|
-
* @param {*} [options] Override http request option.
|
|
12116
|
-
* @throws {RequiredError}
|
|
12117
|
-
* @memberof JobsApi
|
|
12118
|
-
*/
|
|
12119
|
-
captureExpiringAuthorizations(options) {
|
|
12120
|
-
return JobsApiFp(this.configuration).captureExpiringAuthorizations(options).then((request) => request(this.axios, this.basePath));
|
|
12121
|
-
}
|
|
12122
|
-
/**
|
|
12123
|
-
* Job: Capturer les paiements pour les réservations passées Fréquence recommandée: Toutes les heures
|
|
12124
|
-
* @summary Capture les paiements autorisés pour les réservations passées
|
|
12125
|
-
* @param {*} [options] Override http request option.
|
|
12126
|
-
* @throws {RequiredError}
|
|
12127
|
-
* @memberof JobsApi
|
|
12128
|
-
*/
|
|
12129
|
-
capturePastReservations(options) {
|
|
12130
|
-
return JobsApiFp(this.configuration).capturePastReservations(options).then((request) => request(this.axios, this.basePath));
|
|
12131
|
-
}
|
|
12132
|
-
/**
|
|
12133
|
-
* Job: Expirer les réservations en attente de paiement Fréquence recommandée: Toutes les minutes
|
|
12134
|
-
* @summary Expire les réservations en attente de paiement
|
|
12135
|
-
* @param {*} [options] Override http request option.
|
|
12136
|
-
* @throws {RequiredError}
|
|
12137
|
-
* @memberof JobsApi
|
|
12138
|
-
*/
|
|
12139
|
-
expireBookingWaitingPayments(options) {
|
|
12140
|
-
return JobsApiFp(this.configuration).expireBookingWaitingPayments(options).then((request) => request(this.axios, this.basePath));
|
|
12141
|
-
}
|
|
12142
|
-
/**
|
|
12143
|
-
* Job: Expirer les paiements en attente sur la waitlist Fréquence recommandée: Toutes les minutes
|
|
12144
|
-
* @summary Expire les paiements en attente sur la waitlist
|
|
12145
|
-
* @param {*} [options] Override http request option.
|
|
12146
|
-
* @throws {RequiredError}
|
|
12147
|
-
* @memberof JobsApi
|
|
12148
|
-
*/
|
|
12149
|
-
expireWaitlistPayments(options) {
|
|
12150
|
-
return JobsApiFp(this.configuration).expireWaitlistPayments(options).then((request) => request(this.axios, this.basePath));
|
|
12151
|
-
}
|
|
12152
|
-
/**
|
|
12153
|
-
* Route de santé pour vérifier que le service jobs est opérationnel
|
|
12154
|
-
* @summary Health check pour les jobs
|
|
12155
|
-
* @param {*} [options] Override http request option.
|
|
12156
|
-
* @throws {RequiredError}
|
|
12157
|
-
* @memberof JobsApi
|
|
12158
|
-
*/
|
|
12159
|
-
health(options) {
|
|
12160
|
-
return JobsApiFp(this.configuration).health(options).then((request) => request(this.axios, this.basePath));
|
|
12161
|
-
}
|
|
12162
|
-
/**
|
|
12163
|
-
* Job: Maintenir les créneaux (slots) Fréquence recommandée: Une fois par jour (2h du matin)
|
|
12164
|
-
* @summary Génère les créneaux futurs et nettoie les anciens
|
|
12165
|
-
* @param {*} [options] Override http request option.
|
|
12166
|
-
* @throws {RequiredError}
|
|
12167
|
-
* @memberof JobsApi
|
|
12168
|
-
*/
|
|
12169
|
-
maintainSlots(options) {
|
|
12170
|
-
return JobsApiFp(this.configuration).maintainSlots(options).then((request) => request(this.axios, this.basePath));
|
|
12171
|
-
}
|
|
12172
|
-
/**
|
|
12173
|
-
* Job: Libérer les anciennes réservations Fréquence recommandée: Toutes les minutes
|
|
12174
|
-
* @summary Libère les anciennes réservations terminées
|
|
12175
|
-
* @param {*} [options] Override http request option.
|
|
12176
|
-
* @throws {RequiredError}
|
|
12177
|
-
* @memberof JobsApi
|
|
12178
|
-
*/
|
|
12179
|
-
releaseOldBookings(options) {
|
|
12180
|
-
return JobsApiFp(this.configuration).releaseOldBookings(options).then((request) => request(this.axios, this.basePath));
|
|
12181
|
-
}
|
|
12182
|
-
/**
|
|
12183
|
-
* Job: Envoyer les rappels de réservation et d\'événements Fréquence recommandée: Toutes les heures
|
|
12184
|
-
* @summary Envoie des emails de rappel 24h avant les réservations et événements
|
|
12185
|
-
* @param {*} [options] Override http request option.
|
|
12186
|
-
* @throws {RequiredError}
|
|
12187
|
-
* @memberof JobsApi
|
|
12188
|
-
*/
|
|
12189
|
-
sendBookingReminders(options) {
|
|
12190
|
-
return JobsApiFp(this.configuration).sendBookingReminders(options).then((request) => request(this.axios, this.basePath));
|
|
12191
|
-
}
|
|
12192
|
-
}
|
|
12193
|
-
/**
|
|
12194
|
-
* PublicEmailApi - axios parameter creator
|
|
12195
|
-
* @export
|
|
12196
|
-
*/
|
|
12197
|
-
export const PublicEmailApiAxiosParamCreator = function (configuration) {
|
|
12198
|
-
return {
|
|
12199
|
-
/**
|
|
12200
|
-
*
|
|
12201
|
-
* @param {EmailExistsRequestBody} emailExistsRequestBody
|
|
12202
|
-
* @param {*} [options] Override http request option.
|
|
12203
|
-
* @throws {RequiredError}
|
|
12204
|
-
*/
|
|
12205
|
-
authEmailExists: (emailExistsRequestBody_1, ...args_1) => __awaiter(this, [emailExistsRequestBody_1, ...args_1], void 0, function* (emailExistsRequestBody, options = {}) {
|
|
12206
|
-
// verify required parameter 'emailExistsRequestBody' is not null or undefined
|
|
12207
|
-
assertParamExists('authEmailExists', 'emailExistsRequestBody', emailExistsRequestBody);
|
|
12208
|
-
const localVarPath = `/api/public-email/auth-email-exists`;
|
|
12209
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12210
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12211
|
-
let baseOptions;
|
|
12212
|
-
if (configuration) {
|
|
12213
|
-
baseOptions = configuration.baseOptions;
|
|
12214
|
-
}
|
|
12215
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
12216
|
-
const localVarHeaderParameter = {};
|
|
12217
|
-
const localVarQueryParameter = {};
|
|
12218
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
12219
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12220
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12221
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12222
|
-
localVarRequestOptions.data = serializeDataIfNeeded(emailExistsRequestBody, localVarRequestOptions, configuration);
|
|
12223
|
-
return {
|
|
12224
|
-
url: toPathString(localVarUrlObj),
|
|
12225
|
-
options: localVarRequestOptions,
|
|
12226
|
-
};
|
|
12227
|
-
}),
|
|
12228
|
-
/**
|
|
12229
|
-
*
|
|
12230
|
-
* @param {RequestEmailCodeBody} requestEmailCodeBody
|
|
12231
|
-
* @param {*} [options] Override http request option.
|
|
12232
|
-
* @throws {RequiredError}
|
|
12233
|
-
*/
|
|
12234
|
-
requestPublicEmailVerificationCode: (requestEmailCodeBody_1, ...args_1) => __awaiter(this, [requestEmailCodeBody_1, ...args_1], void 0, function* (requestEmailCodeBody, options = {}) {
|
|
12235
|
-
// verify required parameter 'requestEmailCodeBody' is not null or undefined
|
|
12236
|
-
assertParamExists('requestPublicEmailVerificationCode', 'requestEmailCodeBody', requestEmailCodeBody);
|
|
12237
|
-
const localVarPath = `/api/public-email/request-verification-code`;
|
|
12238
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12239
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12240
|
-
let baseOptions;
|
|
12241
|
-
if (configuration) {
|
|
12242
|
-
baseOptions = configuration.baseOptions;
|
|
12243
|
-
}
|
|
12244
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
12245
|
-
const localVarHeaderParameter = {};
|
|
12246
|
-
const localVarQueryParameter = {};
|
|
12247
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
12248
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12249
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12250
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12251
|
-
localVarRequestOptions.data = serializeDataIfNeeded(requestEmailCodeBody, localVarRequestOptions, configuration);
|
|
12252
|
-
return {
|
|
12253
|
-
url: toPathString(localVarUrlObj),
|
|
12254
|
-
options: localVarRequestOptions,
|
|
12255
|
-
};
|
|
12256
|
-
}),
|
|
12257
|
-
/**
|
|
12258
|
-
*
|
|
12259
|
-
* @param {VerifyEmailCodeBody} verifyEmailCodeBody
|
|
12260
|
-
* @param {*} [options] Override http request option.
|
|
12261
|
-
* @throws {RequiredError}
|
|
12262
|
-
*/
|
|
12263
|
-
verifyCode: (verifyEmailCodeBody_1, ...args_1) => __awaiter(this, [verifyEmailCodeBody_1, ...args_1], void 0, function* (verifyEmailCodeBody, options = {}) {
|
|
12264
|
-
// verify required parameter 'verifyEmailCodeBody' is not null or undefined
|
|
12265
|
-
assertParamExists('verifyCode', 'verifyEmailCodeBody', verifyEmailCodeBody);
|
|
12266
|
-
const localVarPath = `/api/public-email/verify-code`;
|
|
12267
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12268
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12269
|
-
let baseOptions;
|
|
12270
|
-
if (configuration) {
|
|
12271
|
-
baseOptions = configuration.baseOptions;
|
|
12272
|
-
}
|
|
12273
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
12274
|
-
const localVarHeaderParameter = {};
|
|
12275
|
-
const localVarQueryParameter = {};
|
|
12276
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
12277
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12278
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12279
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12280
|
-
localVarRequestOptions.data = serializeDataIfNeeded(verifyEmailCodeBody, localVarRequestOptions, configuration);
|
|
12281
|
-
return {
|
|
12282
|
-
url: toPathString(localVarUrlObj),
|
|
12283
|
-
options: localVarRequestOptions,
|
|
12284
|
-
};
|
|
12285
|
-
}),
|
|
12286
|
-
};
|
|
12287
|
-
};
|
|
12288
|
-
/**
|
|
12289
|
-
* PublicEmailApi - functional programming interface
|
|
12290
|
-
* @export
|
|
12291
|
-
*/
|
|
12292
|
-
export const PublicEmailApiFp = function (configuration) {
|
|
12293
|
-
const localVarAxiosParamCreator = PublicEmailApiAxiosParamCreator(configuration);
|
|
12294
|
-
return {
|
|
12295
|
-
/**
|
|
12296
|
-
*
|
|
12297
|
-
* @param {EmailExistsRequestBody} emailExistsRequestBody
|
|
12298
|
-
* @param {*} [options] Override http request option.
|
|
12299
|
-
* @throws {RequiredError}
|
|
12300
|
-
*/
|
|
12301
|
-
authEmailExists(emailExistsRequestBody, options) {
|
|
12302
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
12303
|
-
var _a, _b, _c;
|
|
12304
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.authEmailExists(emailExistsRequestBody, options);
|
|
12305
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12306
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PublicEmailApi.authEmailExists']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12307
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12308
|
-
});
|
|
12309
|
-
},
|
|
12310
|
-
/**
|
|
12311
|
-
*
|
|
12312
|
-
* @param {RequestEmailCodeBody} requestEmailCodeBody
|
|
12313
|
-
* @param {*} [options] Override http request option.
|
|
12314
|
-
* @throws {RequiredError}
|
|
12315
|
-
*/
|
|
12316
|
-
requestPublicEmailVerificationCode(requestEmailCodeBody, options) {
|
|
12317
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
12318
|
-
var _a, _b, _c;
|
|
12319
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.requestPublicEmailVerificationCode(requestEmailCodeBody, options);
|
|
12320
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12321
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PublicEmailApi.requestPublicEmailVerificationCode']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12322
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12323
|
-
});
|
|
12324
|
-
},
|
|
12325
|
-
/**
|
|
12326
|
-
*
|
|
12327
|
-
* @param {VerifyEmailCodeBody} verifyEmailCodeBody
|
|
12328
|
-
* @param {*} [options] Override http request option.
|
|
12329
|
-
* @throws {RequiredError}
|
|
12330
|
-
*/
|
|
12331
|
-
verifyCode(verifyEmailCodeBody, options) {
|
|
12332
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
12333
|
-
var _a, _b, _c;
|
|
12334
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.verifyCode(verifyEmailCodeBody, options);
|
|
12335
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12336
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PublicEmailApi.verifyCode']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12337
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12338
|
-
});
|
|
12339
|
-
},
|
|
12340
|
-
};
|
|
12341
|
-
};
|
|
12342
|
-
/**
|
|
12343
|
-
* PublicEmailApi - factory interface
|
|
12344
|
-
* @export
|
|
12345
|
-
*/
|
|
12346
|
-
export const PublicEmailApiFactory = function (configuration, basePath, axios) {
|
|
12347
|
-
const localVarFp = PublicEmailApiFp(configuration);
|
|
12348
|
-
return {
|
|
12349
|
-
/**
|
|
12350
|
-
*
|
|
12351
|
-
* @param {PublicEmailApiAuthEmailExistsRequest} requestParameters Request parameters.
|
|
12352
|
-
* @param {*} [options] Override http request option.
|
|
12353
|
-
* @throws {RequiredError}
|
|
12354
|
-
*/
|
|
12355
|
-
authEmailExists(requestParameters, options) {
|
|
12356
|
-
return localVarFp.authEmailExists(requestParameters.emailExistsRequestBody, options).then((request) => request(axios, basePath));
|
|
12357
|
-
},
|
|
12358
|
-
/**
|
|
12359
|
-
*
|
|
12360
|
-
* @param {PublicEmailApiRequestPublicEmailVerificationCodeRequest} requestParameters Request parameters.
|
|
12361
|
-
* @param {*} [options] Override http request option.
|
|
12362
|
-
* @throws {RequiredError}
|
|
12363
|
-
*/
|
|
12364
|
-
requestPublicEmailVerificationCode(requestParameters, options) {
|
|
12365
|
-
return localVarFp.requestPublicEmailVerificationCode(requestParameters.requestEmailCodeBody, options).then((request) => request(axios, basePath));
|
|
12366
|
-
},
|
|
12367
|
-
/**
|
|
12368
|
-
*
|
|
12369
|
-
* @param {PublicEmailApiVerifyCodeRequest} requestParameters Request parameters.
|
|
12370
|
-
* @param {*} [options] Override http request option.
|
|
12371
|
-
* @throws {RequiredError}
|
|
12372
|
-
*/
|
|
12373
|
-
verifyCode(requestParameters, options) {
|
|
12374
|
-
return localVarFp.verifyCode(requestParameters.verifyEmailCodeBody, options).then((request) => request(axios, basePath));
|
|
11785
|
+
verifyCode(requestParameters, options) {
|
|
11786
|
+
return localVarFp.verifyCode(requestParameters.verifyEmailCodeBody, options).then((request) => request(axios, basePath));
|
|
12375
11787
|
},
|
|
12376
11788
|
};
|
|
12377
11789
|
};
|
|
@@ -12394,13 +11806,13 @@ export class PublicEmailApi extends BaseAPI {
|
|
|
12394
11806
|
}
|
|
12395
11807
|
/**
|
|
12396
11808
|
*
|
|
12397
|
-
* @param {
|
|
11809
|
+
* @param {PublicEmailApiRequestVerificationCodeRequest} requestParameters Request parameters.
|
|
12398
11810
|
* @param {*} [options] Override http request option.
|
|
12399
11811
|
* @throws {RequiredError}
|
|
12400
11812
|
* @memberof PublicEmailApi
|
|
12401
11813
|
*/
|
|
12402
|
-
|
|
12403
|
-
return PublicEmailApiFp(this.configuration).
|
|
11814
|
+
requestVerificationCode(requestParameters, options) {
|
|
11815
|
+
return PublicEmailApiFp(this.configuration).requestVerificationCode(requestParameters.requestEmailCodeBody, options).then((request) => request(this.axios, this.basePath));
|
|
12404
11816
|
}
|
|
12405
11817
|
/**
|
|
12406
11818
|
*
|
|
@@ -13295,27 +12707,488 @@ export class SubscriptionsStaffApi extends BaseAPI {
|
|
|
13295
12707
|
export const SubscriptionsUserApiAxiosParamCreator = function (configuration) {
|
|
13296
12708
|
return {
|
|
13297
12709
|
/**
|
|
13298
|
-
* Annuler un abonnement à la fin de la période (auth classique)
|
|
12710
|
+
* Annuler un abonnement à la fin de la période (auth classique)
|
|
12711
|
+
* @param {string} clubId
|
|
12712
|
+
* @param {string} subscriptionId
|
|
12713
|
+
* @param {*} [options] Override http request option.
|
|
12714
|
+
* @throws {RequiredError}
|
|
12715
|
+
*/
|
|
12716
|
+
cancel: (clubId_1, subscriptionId_1, ...args_1) => __awaiter(this, [clubId_1, subscriptionId_1, ...args_1], void 0, function* (clubId, subscriptionId, options = {}) {
|
|
12717
|
+
// verify required parameter 'clubId' is not null or undefined
|
|
12718
|
+
assertParamExists('cancel', 'clubId', clubId);
|
|
12719
|
+
// verify required parameter 'subscriptionId' is not null or undefined
|
|
12720
|
+
assertParamExists('cancel', 'subscriptionId', subscriptionId);
|
|
12721
|
+
const localVarPath = `/api/subscriptions/{clubId}/{subscriptionId}`
|
|
12722
|
+
.replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)))
|
|
12723
|
+
.replace(`{${"subscriptionId"}}`, encodeURIComponent(String(subscriptionId)));
|
|
12724
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12725
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12726
|
+
let baseOptions;
|
|
12727
|
+
if (configuration) {
|
|
12728
|
+
baseOptions = configuration.baseOptions;
|
|
12729
|
+
}
|
|
12730
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
12731
|
+
const localVarHeaderParameter = {};
|
|
12732
|
+
const localVarQueryParameter = {};
|
|
12733
|
+
// authentication bearerAuth required
|
|
12734
|
+
// http bearer authentication required
|
|
12735
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
12736
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12737
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12738
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12739
|
+
return {
|
|
12740
|
+
url: toPathString(localVarUrlObj),
|
|
12741
|
+
options: localVarRequestOptions,
|
|
12742
|
+
};
|
|
12743
|
+
}),
|
|
12744
|
+
/**
|
|
12745
|
+
* Liste les abonnements de l\'utilisateur courant, groupés par club (auth classique)
|
|
12746
|
+
* @param {*} [options] Override http request option.
|
|
12747
|
+
* @throws {RequiredError}
|
|
12748
|
+
*/
|
|
12749
|
+
mySubscriptions: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
12750
|
+
const localVarPath = `/api/subscriptions/me`;
|
|
12751
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12752
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12753
|
+
let baseOptions;
|
|
12754
|
+
if (configuration) {
|
|
12755
|
+
baseOptions = configuration.baseOptions;
|
|
12756
|
+
}
|
|
12757
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
12758
|
+
const localVarHeaderParameter = {};
|
|
12759
|
+
const localVarQueryParameter = {};
|
|
12760
|
+
// authentication bearerAuth required
|
|
12761
|
+
// http bearer authentication required
|
|
12762
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
12763
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12764
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12765
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12766
|
+
return {
|
|
12767
|
+
url: toPathString(localVarUrlObj),
|
|
12768
|
+
options: localVarRequestOptions,
|
|
12769
|
+
};
|
|
12770
|
+
}),
|
|
12771
|
+
/**
|
|
12772
|
+
* Reprendre un abonnement annulé en fin de période (auth classique)
|
|
12773
|
+
* @param {string} clubId
|
|
12774
|
+
* @param {string} subscriptionId
|
|
12775
|
+
* @param {*} [options] Override http request option.
|
|
12776
|
+
* @throws {RequiredError}
|
|
12777
|
+
*/
|
|
12778
|
+
resume: (clubId_1, subscriptionId_1, ...args_1) => __awaiter(this, [clubId_1, subscriptionId_1, ...args_1], void 0, function* (clubId, subscriptionId, options = {}) {
|
|
12779
|
+
// verify required parameter 'clubId' is not null or undefined
|
|
12780
|
+
assertParamExists('resume', 'clubId', clubId);
|
|
12781
|
+
// verify required parameter 'subscriptionId' is not null or undefined
|
|
12782
|
+
assertParamExists('resume', 'subscriptionId', subscriptionId);
|
|
12783
|
+
const localVarPath = `/api/subscriptions/{clubId}/{subscriptionId}/resume`
|
|
12784
|
+
.replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)))
|
|
12785
|
+
.replace(`{${"subscriptionId"}}`, encodeURIComponent(String(subscriptionId)));
|
|
12786
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12787
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12788
|
+
let baseOptions;
|
|
12789
|
+
if (configuration) {
|
|
12790
|
+
baseOptions = configuration.baseOptions;
|
|
12791
|
+
}
|
|
12792
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
12793
|
+
const localVarHeaderParameter = {};
|
|
12794
|
+
const localVarQueryParameter = {};
|
|
12795
|
+
// authentication bearerAuth required
|
|
12796
|
+
// http bearer authentication required
|
|
12797
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
12798
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12799
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12800
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12801
|
+
return {
|
|
12802
|
+
url: toPathString(localVarUrlObj),
|
|
12803
|
+
options: localVarRequestOptions,
|
|
12804
|
+
};
|
|
12805
|
+
}),
|
|
12806
|
+
/**
|
|
12807
|
+
* S\'abonner à un plan (auth classique)
|
|
12808
|
+
* @param {SubscribeRequestBody} subscribeRequestBody
|
|
12809
|
+
* @param {*} [options] Override http request option.
|
|
12810
|
+
* @throws {RequiredError}
|
|
12811
|
+
*/
|
|
12812
|
+
subscribe: (subscribeRequestBody_1, ...args_1) => __awaiter(this, [subscribeRequestBody_1, ...args_1], void 0, function* (subscribeRequestBody, options = {}) {
|
|
12813
|
+
// verify required parameter 'subscribeRequestBody' is not null or undefined
|
|
12814
|
+
assertParamExists('subscribe', 'subscribeRequestBody', subscribeRequestBody);
|
|
12815
|
+
const localVarPath = `/api/subscriptions/subscribe`;
|
|
12816
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12817
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12818
|
+
let baseOptions;
|
|
12819
|
+
if (configuration) {
|
|
12820
|
+
baseOptions = configuration.baseOptions;
|
|
12821
|
+
}
|
|
12822
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
12823
|
+
const localVarHeaderParameter = {};
|
|
12824
|
+
const localVarQueryParameter = {};
|
|
12825
|
+
// authentication bearerAuth required
|
|
12826
|
+
// http bearer authentication required
|
|
12827
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
12828
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
12829
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12830
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12831
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12832
|
+
localVarRequestOptions.data = serializeDataIfNeeded(subscribeRequestBody, localVarRequestOptions, configuration);
|
|
12833
|
+
return {
|
|
12834
|
+
url: toPathString(localVarUrlObj),
|
|
12835
|
+
options: localVarRequestOptions,
|
|
12836
|
+
};
|
|
12837
|
+
}),
|
|
12838
|
+
};
|
|
12839
|
+
};
|
|
12840
|
+
/**
|
|
12841
|
+
* SubscriptionsUserApi - functional programming interface
|
|
12842
|
+
* @export
|
|
12843
|
+
*/
|
|
12844
|
+
export const SubscriptionsUserApiFp = function (configuration) {
|
|
12845
|
+
const localVarAxiosParamCreator = SubscriptionsUserApiAxiosParamCreator(configuration);
|
|
12846
|
+
return {
|
|
12847
|
+
/**
|
|
12848
|
+
* Annuler un abonnement à la fin de la période (auth classique)
|
|
12849
|
+
* @param {string} clubId
|
|
12850
|
+
* @param {string} subscriptionId
|
|
12851
|
+
* @param {*} [options] Override http request option.
|
|
12852
|
+
* @throws {RequiredError}
|
|
12853
|
+
*/
|
|
12854
|
+
cancel(clubId, subscriptionId, options) {
|
|
12855
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
12856
|
+
var _a, _b, _c;
|
|
12857
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.cancel(clubId, subscriptionId, options);
|
|
12858
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12859
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SubscriptionsUserApi.cancel']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12860
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12861
|
+
});
|
|
12862
|
+
},
|
|
12863
|
+
/**
|
|
12864
|
+
* Liste les abonnements de l\'utilisateur courant, groupés par club (auth classique)
|
|
12865
|
+
* @param {*} [options] Override http request option.
|
|
12866
|
+
* @throws {RequiredError}
|
|
12867
|
+
*/
|
|
12868
|
+
mySubscriptions(options) {
|
|
12869
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
12870
|
+
var _a, _b, _c;
|
|
12871
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.mySubscriptions(options);
|
|
12872
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12873
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SubscriptionsUserApi.mySubscriptions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12874
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12875
|
+
});
|
|
12876
|
+
},
|
|
12877
|
+
/**
|
|
12878
|
+
* Reprendre un abonnement annulé en fin de période (auth classique)
|
|
12879
|
+
* @param {string} clubId
|
|
12880
|
+
* @param {string} subscriptionId
|
|
12881
|
+
* @param {*} [options] Override http request option.
|
|
12882
|
+
* @throws {RequiredError}
|
|
12883
|
+
*/
|
|
12884
|
+
resume(clubId, subscriptionId, options) {
|
|
12885
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
12886
|
+
var _a, _b, _c;
|
|
12887
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.resume(clubId, subscriptionId, options);
|
|
12888
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12889
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SubscriptionsUserApi.resume']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12890
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12891
|
+
});
|
|
12892
|
+
},
|
|
12893
|
+
/**
|
|
12894
|
+
* S\'abonner à un plan (auth classique)
|
|
12895
|
+
* @param {SubscribeRequestBody} subscribeRequestBody
|
|
12896
|
+
* @param {*} [options] Override http request option.
|
|
12897
|
+
* @throws {RequiredError}
|
|
12898
|
+
*/
|
|
12899
|
+
subscribe(subscribeRequestBody, options) {
|
|
12900
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
12901
|
+
var _a, _b, _c;
|
|
12902
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.subscribe(subscribeRequestBody, options);
|
|
12903
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12904
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SubscriptionsUserApi.subscribe']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12905
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12906
|
+
});
|
|
12907
|
+
},
|
|
12908
|
+
};
|
|
12909
|
+
};
|
|
12910
|
+
/**
|
|
12911
|
+
* SubscriptionsUserApi - factory interface
|
|
12912
|
+
* @export
|
|
12913
|
+
*/
|
|
12914
|
+
export const SubscriptionsUserApiFactory = function (configuration, basePath, axios) {
|
|
12915
|
+
const localVarFp = SubscriptionsUserApiFp(configuration);
|
|
12916
|
+
return {
|
|
12917
|
+
/**
|
|
12918
|
+
* Annuler un abonnement à la fin de la période (auth classique)
|
|
12919
|
+
* @param {SubscriptionsUserApiCancelRequest} requestParameters Request parameters.
|
|
12920
|
+
* @param {*} [options] Override http request option.
|
|
12921
|
+
* @throws {RequiredError}
|
|
12922
|
+
*/
|
|
12923
|
+
cancel(requestParameters, options) {
|
|
12924
|
+
return localVarFp.cancel(requestParameters.clubId, requestParameters.subscriptionId, options).then((request) => request(axios, basePath));
|
|
12925
|
+
},
|
|
12926
|
+
/**
|
|
12927
|
+
* Liste les abonnements de l\'utilisateur courant, groupés par club (auth classique)
|
|
12928
|
+
* @param {*} [options] Override http request option.
|
|
12929
|
+
* @throws {RequiredError}
|
|
12930
|
+
*/
|
|
12931
|
+
mySubscriptions(options) {
|
|
12932
|
+
return localVarFp.mySubscriptions(options).then((request) => request(axios, basePath));
|
|
12933
|
+
},
|
|
12934
|
+
/**
|
|
12935
|
+
* Reprendre un abonnement annulé en fin de période (auth classique)
|
|
12936
|
+
* @param {SubscriptionsUserApiResumeRequest} requestParameters Request parameters.
|
|
12937
|
+
* @param {*} [options] Override http request option.
|
|
12938
|
+
* @throws {RequiredError}
|
|
12939
|
+
*/
|
|
12940
|
+
resume(requestParameters, options) {
|
|
12941
|
+
return localVarFp.resume(requestParameters.clubId, requestParameters.subscriptionId, options).then((request) => request(axios, basePath));
|
|
12942
|
+
},
|
|
12943
|
+
/**
|
|
12944
|
+
* S\'abonner à un plan (auth classique)
|
|
12945
|
+
* @param {SubscriptionsUserApiSubscribeRequest} requestParameters Request parameters.
|
|
12946
|
+
* @param {*} [options] Override http request option.
|
|
12947
|
+
* @throws {RequiredError}
|
|
12948
|
+
*/
|
|
12949
|
+
subscribe(requestParameters, options) {
|
|
12950
|
+
return localVarFp.subscribe(requestParameters.subscribeRequestBody, options).then((request) => request(axios, basePath));
|
|
12951
|
+
},
|
|
12952
|
+
};
|
|
12953
|
+
};
|
|
12954
|
+
/**
|
|
12955
|
+
* SubscriptionsUserApi - object-oriented interface
|
|
12956
|
+
* @export
|
|
12957
|
+
* @class SubscriptionsUserApi
|
|
12958
|
+
* @extends {BaseAPI}
|
|
12959
|
+
*/
|
|
12960
|
+
export class SubscriptionsUserApi extends BaseAPI {
|
|
12961
|
+
/**
|
|
12962
|
+
* Annuler un abonnement à la fin de la période (auth classique)
|
|
12963
|
+
* @param {SubscriptionsUserApiCancelRequest} requestParameters Request parameters.
|
|
12964
|
+
* @param {*} [options] Override http request option.
|
|
12965
|
+
* @throws {RequiredError}
|
|
12966
|
+
* @memberof SubscriptionsUserApi
|
|
12967
|
+
*/
|
|
12968
|
+
cancel(requestParameters, options) {
|
|
12969
|
+
return SubscriptionsUserApiFp(this.configuration).cancel(requestParameters.clubId, requestParameters.subscriptionId, options).then((request) => request(this.axios, this.basePath));
|
|
12970
|
+
}
|
|
12971
|
+
/**
|
|
12972
|
+
* Liste les abonnements de l\'utilisateur courant, groupés par club (auth classique)
|
|
12973
|
+
* @param {*} [options] Override http request option.
|
|
12974
|
+
* @throws {RequiredError}
|
|
12975
|
+
* @memberof SubscriptionsUserApi
|
|
12976
|
+
*/
|
|
12977
|
+
mySubscriptions(options) {
|
|
12978
|
+
return SubscriptionsUserApiFp(this.configuration).mySubscriptions(options).then((request) => request(this.axios, this.basePath));
|
|
12979
|
+
}
|
|
12980
|
+
/**
|
|
12981
|
+
* Reprendre un abonnement annulé en fin de période (auth classique)
|
|
12982
|
+
* @param {SubscriptionsUserApiResumeRequest} requestParameters Request parameters.
|
|
12983
|
+
* @param {*} [options] Override http request option.
|
|
12984
|
+
* @throws {RequiredError}
|
|
12985
|
+
* @memberof SubscriptionsUserApi
|
|
12986
|
+
*/
|
|
12987
|
+
resume(requestParameters, options) {
|
|
12988
|
+
return SubscriptionsUserApiFp(this.configuration).resume(requestParameters.clubId, requestParameters.subscriptionId, options).then((request) => request(this.axios, this.basePath));
|
|
12989
|
+
}
|
|
12990
|
+
/**
|
|
12991
|
+
* S\'abonner à un plan (auth classique)
|
|
12992
|
+
* @param {SubscriptionsUserApiSubscribeRequest} requestParameters Request parameters.
|
|
12993
|
+
* @param {*} [options] Override http request option.
|
|
12994
|
+
* @throws {RequiredError}
|
|
12995
|
+
* @memberof SubscriptionsUserApi
|
|
12996
|
+
*/
|
|
12997
|
+
subscribe(requestParameters, options) {
|
|
12998
|
+
return SubscriptionsUserApiFp(this.configuration).subscribe(requestParameters.subscribeRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
12999
|
+
}
|
|
13000
|
+
}
|
|
13001
|
+
/**
|
|
13002
|
+
* SumUpApi - axios parameter creator
|
|
13003
|
+
* @export
|
|
13004
|
+
*/
|
|
13005
|
+
export const SumUpApiAxiosParamCreator = function (configuration) {
|
|
13006
|
+
return {
|
|
13007
|
+
/**
|
|
13008
|
+
* OAuth callback for SumUp.
|
|
13009
|
+
* @param {string} code
|
|
13010
|
+
* @param {string} state
|
|
13011
|
+
* @param {*} [options] Override http request option.
|
|
13012
|
+
* @throws {RequiredError}
|
|
13013
|
+
*/
|
|
13014
|
+
sumupOauthCallback: (code_1, state_1, ...args_1) => __awaiter(this, [code_1, state_1, ...args_1], void 0, function* (code, state, options = {}) {
|
|
13015
|
+
// verify required parameter 'code' is not null or undefined
|
|
13016
|
+
assertParamExists('sumupOauthCallback', 'code', code);
|
|
13017
|
+
// verify required parameter 'state' is not null or undefined
|
|
13018
|
+
assertParamExists('sumupOauthCallback', 'state', state);
|
|
13019
|
+
const localVarPath = `/api/sumup/oauth/callback`;
|
|
13020
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13021
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13022
|
+
let baseOptions;
|
|
13023
|
+
if (configuration) {
|
|
13024
|
+
baseOptions = configuration.baseOptions;
|
|
13025
|
+
}
|
|
13026
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
13027
|
+
const localVarHeaderParameter = {};
|
|
13028
|
+
const localVarQueryParameter = {};
|
|
13029
|
+
if (code !== undefined) {
|
|
13030
|
+
localVarQueryParameter['code'] = code;
|
|
13031
|
+
}
|
|
13032
|
+
if (state !== undefined) {
|
|
13033
|
+
localVarQueryParameter['state'] = state;
|
|
13034
|
+
}
|
|
13035
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13036
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13037
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
13038
|
+
return {
|
|
13039
|
+
url: toPathString(localVarUrlObj),
|
|
13040
|
+
options: localVarRequestOptions,
|
|
13041
|
+
};
|
|
13042
|
+
}),
|
|
13043
|
+
};
|
|
13044
|
+
};
|
|
13045
|
+
/**
|
|
13046
|
+
* SumUpApi - functional programming interface
|
|
13047
|
+
* @export
|
|
13048
|
+
*/
|
|
13049
|
+
export const SumUpApiFp = function (configuration) {
|
|
13050
|
+
const localVarAxiosParamCreator = SumUpApiAxiosParamCreator(configuration);
|
|
13051
|
+
return {
|
|
13052
|
+
/**
|
|
13053
|
+
* OAuth callback for SumUp.
|
|
13054
|
+
* @param {string} code
|
|
13055
|
+
* @param {string} state
|
|
13056
|
+
* @param {*} [options] Override http request option.
|
|
13057
|
+
* @throws {RequiredError}
|
|
13058
|
+
*/
|
|
13059
|
+
sumupOauthCallback(code, state, options) {
|
|
13060
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
13061
|
+
var _a, _b, _c;
|
|
13062
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.sumupOauthCallback(code, state, options);
|
|
13063
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
13064
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SumUpApi.sumupOauthCallback']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
13065
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13066
|
+
});
|
|
13067
|
+
},
|
|
13068
|
+
};
|
|
13069
|
+
};
|
|
13070
|
+
/**
|
|
13071
|
+
* SumUpApi - factory interface
|
|
13072
|
+
* @export
|
|
13073
|
+
*/
|
|
13074
|
+
export const SumUpApiFactory = function (configuration, basePath, axios) {
|
|
13075
|
+
const localVarFp = SumUpApiFp(configuration);
|
|
13076
|
+
return {
|
|
13077
|
+
/**
|
|
13078
|
+
* OAuth callback for SumUp.
|
|
13079
|
+
* @param {SumUpApiSumupOauthCallbackRequest} requestParameters Request parameters.
|
|
13080
|
+
* @param {*} [options] Override http request option.
|
|
13081
|
+
* @throws {RequiredError}
|
|
13082
|
+
*/
|
|
13083
|
+
sumupOauthCallback(requestParameters, options) {
|
|
13084
|
+
return localVarFp.sumupOauthCallback(requestParameters.code, requestParameters.state, options).then((request) => request(axios, basePath));
|
|
13085
|
+
},
|
|
13086
|
+
};
|
|
13087
|
+
};
|
|
13088
|
+
/**
|
|
13089
|
+
* SumUpApi - object-oriented interface
|
|
13090
|
+
* @export
|
|
13091
|
+
* @class SumUpApi
|
|
13092
|
+
* @extends {BaseAPI}
|
|
13093
|
+
*/
|
|
13094
|
+
export class SumUpApi extends BaseAPI {
|
|
13095
|
+
/**
|
|
13096
|
+
* OAuth callback for SumUp.
|
|
13097
|
+
* @param {SumUpApiSumupOauthCallbackRequest} requestParameters Request parameters.
|
|
13098
|
+
* @param {*} [options] Override http request option.
|
|
13099
|
+
* @throws {RequiredError}
|
|
13100
|
+
* @memberof SumUpApi
|
|
13101
|
+
*/
|
|
13102
|
+
sumupOauthCallback(requestParameters, options) {
|
|
13103
|
+
return SumUpApiFp(this.configuration).sumupOauthCallback(requestParameters.code, requestParameters.state, options).then((request) => request(this.axios, this.basePath));
|
|
13104
|
+
}
|
|
13105
|
+
}
|
|
13106
|
+
/**
|
|
13107
|
+
* SumUpManagerApi - axios parameter creator
|
|
13108
|
+
* @export
|
|
13109
|
+
*/
|
|
13110
|
+
export const SumUpManagerApiAxiosParamCreator = function (configuration) {
|
|
13111
|
+
return {
|
|
13112
|
+
/**
|
|
13113
|
+
* Disconnect SumUp account for a club.
|
|
13114
|
+
* @param {string} clubId
|
|
13115
|
+
* @param {*} [options] Override http request option.
|
|
13116
|
+
* @throws {RequiredError}
|
|
13117
|
+
*/
|
|
13118
|
+
disconnectSumup: (clubId_1, ...args_1) => __awaiter(this, [clubId_1, ...args_1], void 0, function* (clubId, options = {}) {
|
|
13119
|
+
// verify required parameter 'clubId' is not null or undefined
|
|
13120
|
+
assertParamExists('disconnectSumup', 'clubId', clubId);
|
|
13121
|
+
const localVarPath = `/api/clubs/{clubId}/sumup/disconnect`
|
|
13122
|
+
.replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
|
|
13123
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13124
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13125
|
+
let baseOptions;
|
|
13126
|
+
if (configuration) {
|
|
13127
|
+
baseOptions = configuration.baseOptions;
|
|
13128
|
+
}
|
|
13129
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
13130
|
+
const localVarHeaderParameter = {};
|
|
13131
|
+
const localVarQueryParameter = {};
|
|
13132
|
+
// authentication bearerAuth required
|
|
13133
|
+
// http bearer authentication required
|
|
13134
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
13135
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13136
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13137
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
13138
|
+
return {
|
|
13139
|
+
url: toPathString(localVarUrlObj),
|
|
13140
|
+
options: localVarRequestOptions,
|
|
13141
|
+
};
|
|
13142
|
+
}),
|
|
13143
|
+
/**
|
|
13144
|
+
* Start SumUp OAuth connection for a club.
|
|
13145
|
+
* @param {string} clubId
|
|
13146
|
+
* @param {*} [options] Override http request option.
|
|
13147
|
+
* @throws {RequiredError}
|
|
13148
|
+
*/
|
|
13149
|
+
getSumupConnectUrl: (clubId_1, ...args_1) => __awaiter(this, [clubId_1, ...args_1], void 0, function* (clubId, options = {}) {
|
|
13150
|
+
// verify required parameter 'clubId' is not null or undefined
|
|
13151
|
+
assertParamExists('getSumupConnectUrl', 'clubId', clubId);
|
|
13152
|
+
const localVarPath = `/api/clubs/{clubId}/sumup/connect`
|
|
13153
|
+
.replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
|
|
13154
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13155
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13156
|
+
let baseOptions;
|
|
13157
|
+
if (configuration) {
|
|
13158
|
+
baseOptions = configuration.baseOptions;
|
|
13159
|
+
}
|
|
13160
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
13161
|
+
const localVarHeaderParameter = {};
|
|
13162
|
+
const localVarQueryParameter = {};
|
|
13163
|
+
// authentication bearerAuth required
|
|
13164
|
+
// http bearer authentication required
|
|
13165
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
13166
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13167
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13168
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
13169
|
+
return {
|
|
13170
|
+
url: toPathString(localVarUrlObj),
|
|
13171
|
+
options: localVarRequestOptions,
|
|
13172
|
+
};
|
|
13173
|
+
}),
|
|
13174
|
+
/**
|
|
13175
|
+
* Get SumUp connection status for a club.
|
|
13299
13176
|
* @param {string} clubId
|
|
13300
|
-
* @param {string} subscriptionId
|
|
13301
13177
|
* @param {*} [options] Override http request option.
|
|
13302
13178
|
* @throws {RequiredError}
|
|
13303
13179
|
*/
|
|
13304
|
-
|
|
13180
|
+
getSumupStatus: (clubId_1, ...args_1) => __awaiter(this, [clubId_1, ...args_1], void 0, function* (clubId, options = {}) {
|
|
13305
13181
|
// verify required parameter 'clubId' is not null or undefined
|
|
13306
|
-
assertParamExists('
|
|
13307
|
-
|
|
13308
|
-
|
|
13309
|
-
const localVarPath = `/api/subscriptions/{clubId}/{subscriptionId}`
|
|
13310
|
-
.replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)))
|
|
13311
|
-
.replace(`{${"subscriptionId"}}`, encodeURIComponent(String(subscriptionId)));
|
|
13182
|
+
assertParamExists('getSumupStatus', 'clubId', clubId);
|
|
13183
|
+
const localVarPath = `/api/clubs/{clubId}/sumup/status`
|
|
13184
|
+
.replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
|
|
13312
13185
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13313
13186
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13314
13187
|
let baseOptions;
|
|
13315
13188
|
if (configuration) {
|
|
13316
13189
|
baseOptions = configuration.baseOptions;
|
|
13317
13190
|
}
|
|
13318
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
13191
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
13319
13192
|
const localVarHeaderParameter = {};
|
|
13320
13193
|
const localVarQueryParameter = {};
|
|
13321
13194
|
// authentication bearerAuth required
|
|
@@ -13330,12 +13203,16 @@ export const SubscriptionsUserApiAxiosParamCreator = function (configuration) {
|
|
|
13330
13203
|
};
|
|
13331
13204
|
}),
|
|
13332
13205
|
/**
|
|
13333
|
-
*
|
|
13206
|
+
* List SumUp readers for a club.
|
|
13207
|
+
* @param {string} clubId
|
|
13334
13208
|
* @param {*} [options] Override http request option.
|
|
13335
13209
|
* @throws {RequiredError}
|
|
13336
13210
|
*/
|
|
13337
|
-
|
|
13338
|
-
|
|
13211
|
+
listSumupReaders: (clubId_1, ...args_1) => __awaiter(this, [clubId_1, ...args_1], void 0, function* (clubId, options = {}) {
|
|
13212
|
+
// verify required parameter 'clubId' is not null or undefined
|
|
13213
|
+
assertParamExists('listSumupReaders', 'clubId', clubId);
|
|
13214
|
+
const localVarPath = `/api/clubs/{clubId}/sumup/readers`
|
|
13215
|
+
.replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
|
|
13339
13216
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13340
13217
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13341
13218
|
let baseOptions;
|
|
@@ -13357,20 +13234,19 @@ export const SubscriptionsUserApiAxiosParamCreator = function (configuration) {
|
|
|
13357
13234
|
};
|
|
13358
13235
|
}),
|
|
13359
13236
|
/**
|
|
13360
|
-
*
|
|
13237
|
+
* Pair a SumUp reader with a club.
|
|
13361
13238
|
* @param {string} clubId
|
|
13362
|
-
* @param {
|
|
13239
|
+
* @param {SumupPairReaderRequest} sumupPairReaderRequest
|
|
13363
13240
|
* @param {*} [options] Override http request option.
|
|
13364
13241
|
* @throws {RequiredError}
|
|
13365
13242
|
*/
|
|
13366
|
-
|
|
13243
|
+
pairSumupReader: (clubId_1, sumupPairReaderRequest_1, ...args_1) => __awaiter(this, [clubId_1, sumupPairReaderRequest_1, ...args_1], void 0, function* (clubId, sumupPairReaderRequest, options = {}) {
|
|
13367
13244
|
// verify required parameter 'clubId' is not null or undefined
|
|
13368
|
-
assertParamExists('
|
|
13369
|
-
// verify required parameter '
|
|
13370
|
-
assertParamExists('
|
|
13371
|
-
const localVarPath = `/api/
|
|
13372
|
-
.replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)))
|
|
13373
|
-
.replace(`{${"subscriptionId"}}`, encodeURIComponent(String(subscriptionId)));
|
|
13245
|
+
assertParamExists('pairSumupReader', 'clubId', clubId);
|
|
13246
|
+
// verify required parameter 'sumupPairReaderRequest' is not null or undefined
|
|
13247
|
+
assertParamExists('pairSumupReader', 'sumupPairReaderRequest', sumupPairReaderRequest);
|
|
13248
|
+
const localVarPath = `/api/clubs/{clubId}/sumup/readers/pair`
|
|
13249
|
+
.replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
|
|
13374
13250
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13375
13251
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13376
13252
|
let baseOptions;
|
|
@@ -13383,24 +13259,31 @@ export const SubscriptionsUserApiAxiosParamCreator = function (configuration) {
|
|
|
13383
13259
|
// authentication bearerAuth required
|
|
13384
13260
|
// http bearer authentication required
|
|
13385
13261
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
13262
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
13386
13263
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13387
13264
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13388
13265
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
13266
|
+
localVarRequestOptions.data = serializeDataIfNeeded(sumupPairReaderRequest, localVarRequestOptions, configuration);
|
|
13389
13267
|
return {
|
|
13390
13268
|
url: toPathString(localVarUrlObj),
|
|
13391
13269
|
options: localVarRequestOptions,
|
|
13392
13270
|
};
|
|
13393
13271
|
}),
|
|
13394
13272
|
/**
|
|
13395
|
-
*
|
|
13396
|
-
* @param {
|
|
13273
|
+
* Select a SumUp reader for a club.
|
|
13274
|
+
* @param {string} clubId
|
|
13275
|
+
* @param {string} readerId
|
|
13397
13276
|
* @param {*} [options] Override http request option.
|
|
13398
13277
|
* @throws {RequiredError}
|
|
13399
13278
|
*/
|
|
13400
|
-
|
|
13401
|
-
// verify required parameter '
|
|
13402
|
-
assertParamExists('
|
|
13403
|
-
|
|
13279
|
+
selectSumupReader: (clubId_1, readerId_1, ...args_1) => __awaiter(this, [clubId_1, readerId_1, ...args_1], void 0, function* (clubId, readerId, options = {}) {
|
|
13280
|
+
// verify required parameter 'clubId' is not null or undefined
|
|
13281
|
+
assertParamExists('selectSumupReader', 'clubId', clubId);
|
|
13282
|
+
// verify required parameter 'readerId' is not null or undefined
|
|
13283
|
+
assertParamExists('selectSumupReader', 'readerId', readerId);
|
|
13284
|
+
const localVarPath = `/api/clubs/{clubId}/sumup/readers/{readerId}/select`
|
|
13285
|
+
.replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)))
|
|
13286
|
+
.replace(`{${"readerId"}}`, encodeURIComponent(String(readerId)));
|
|
13404
13287
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13405
13288
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13406
13289
|
let baseOptions;
|
|
@@ -13413,11 +13296,9 @@ export const SubscriptionsUserApiAxiosParamCreator = function (configuration) {
|
|
|
13413
13296
|
// authentication bearerAuth required
|
|
13414
13297
|
// http bearer authentication required
|
|
13415
13298
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
13416
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
13417
13299
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13418
13300
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13419
13301
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
13420
|
-
localVarRequestOptions.data = serializeDataIfNeeded(subscribeRequestBody, localVarRequestOptions, configuration);
|
|
13421
13302
|
return {
|
|
13422
13303
|
url: toPathString(localVarUrlObj),
|
|
13423
13304
|
options: localVarRequestOptions,
|
|
@@ -13426,164 +13307,235 @@ export const SubscriptionsUserApiAxiosParamCreator = function (configuration) {
|
|
|
13426
13307
|
};
|
|
13427
13308
|
};
|
|
13428
13309
|
/**
|
|
13429
|
-
*
|
|
13310
|
+
* SumUpManagerApi - functional programming interface
|
|
13430
13311
|
* @export
|
|
13431
13312
|
*/
|
|
13432
|
-
export const
|
|
13433
|
-
const localVarAxiosParamCreator =
|
|
13313
|
+
export const SumUpManagerApiFp = function (configuration) {
|
|
13314
|
+
const localVarAxiosParamCreator = SumUpManagerApiAxiosParamCreator(configuration);
|
|
13434
13315
|
return {
|
|
13435
13316
|
/**
|
|
13436
|
-
*
|
|
13317
|
+
* Disconnect SumUp account for a club.
|
|
13437
13318
|
* @param {string} clubId
|
|
13438
|
-
* @param {string} subscriptionId
|
|
13439
13319
|
* @param {*} [options] Override http request option.
|
|
13440
13320
|
* @throws {RequiredError}
|
|
13441
13321
|
*/
|
|
13442
|
-
|
|
13322
|
+
disconnectSumup(clubId, options) {
|
|
13443
13323
|
return __awaiter(this, void 0, void 0, function* () {
|
|
13444
13324
|
var _a, _b, _c;
|
|
13445
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
13325
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.disconnectSumup(clubId, options);
|
|
13446
13326
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
13447
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['
|
|
13327
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SumUpManagerApi.disconnectSumup']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
13448
13328
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13449
13329
|
});
|
|
13450
13330
|
},
|
|
13451
13331
|
/**
|
|
13452
|
-
*
|
|
13332
|
+
* Start SumUp OAuth connection for a club.
|
|
13333
|
+
* @param {string} clubId
|
|
13453
13334
|
* @param {*} [options] Override http request option.
|
|
13454
13335
|
* @throws {RequiredError}
|
|
13455
13336
|
*/
|
|
13456
|
-
|
|
13337
|
+
getSumupConnectUrl(clubId, options) {
|
|
13457
13338
|
return __awaiter(this, void 0, void 0, function* () {
|
|
13458
13339
|
var _a, _b, _c;
|
|
13459
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
13340
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getSumupConnectUrl(clubId, options);
|
|
13460
13341
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
13461
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['
|
|
13342
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SumUpManagerApi.getSumupConnectUrl']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
13462
13343
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13463
13344
|
});
|
|
13464
13345
|
},
|
|
13465
13346
|
/**
|
|
13466
|
-
*
|
|
13347
|
+
* Get SumUp connection status for a club.
|
|
13467
13348
|
* @param {string} clubId
|
|
13468
|
-
* @param {string} subscriptionId
|
|
13469
13349
|
* @param {*} [options] Override http request option.
|
|
13470
13350
|
* @throws {RequiredError}
|
|
13471
13351
|
*/
|
|
13472
|
-
|
|
13352
|
+
getSumupStatus(clubId, options) {
|
|
13473
13353
|
return __awaiter(this, void 0, void 0, function* () {
|
|
13474
13354
|
var _a, _b, _c;
|
|
13475
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
13355
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getSumupStatus(clubId, options);
|
|
13476
13356
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
13477
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['
|
|
13357
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SumUpManagerApi.getSumupStatus']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
13478
13358
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13479
13359
|
});
|
|
13480
13360
|
},
|
|
13481
13361
|
/**
|
|
13482
|
-
*
|
|
13483
|
-
* @param {
|
|
13362
|
+
* List SumUp readers for a club.
|
|
13363
|
+
* @param {string} clubId
|
|
13484
13364
|
* @param {*} [options] Override http request option.
|
|
13485
13365
|
* @throws {RequiredError}
|
|
13486
13366
|
*/
|
|
13487
|
-
|
|
13367
|
+
listSumupReaders(clubId, options) {
|
|
13488
13368
|
return __awaiter(this, void 0, void 0, function* () {
|
|
13489
13369
|
var _a, _b, _c;
|
|
13490
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
13370
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listSumupReaders(clubId, options);
|
|
13491
13371
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
13492
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['
|
|
13372
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SumUpManagerApi.listSumupReaders']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
13373
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13374
|
+
});
|
|
13375
|
+
},
|
|
13376
|
+
/**
|
|
13377
|
+
* Pair a SumUp reader with a club.
|
|
13378
|
+
* @param {string} clubId
|
|
13379
|
+
* @param {SumupPairReaderRequest} sumupPairReaderRequest
|
|
13380
|
+
* @param {*} [options] Override http request option.
|
|
13381
|
+
* @throws {RequiredError}
|
|
13382
|
+
*/
|
|
13383
|
+
pairSumupReader(clubId, sumupPairReaderRequest, options) {
|
|
13384
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
13385
|
+
var _a, _b, _c;
|
|
13386
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.pairSumupReader(clubId, sumupPairReaderRequest, options);
|
|
13387
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
13388
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SumUpManagerApi.pairSumupReader']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
13389
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13390
|
+
});
|
|
13391
|
+
},
|
|
13392
|
+
/**
|
|
13393
|
+
* Select a SumUp reader for a club.
|
|
13394
|
+
* @param {string} clubId
|
|
13395
|
+
* @param {string} readerId
|
|
13396
|
+
* @param {*} [options] Override http request option.
|
|
13397
|
+
* @throws {RequiredError}
|
|
13398
|
+
*/
|
|
13399
|
+
selectSumupReader(clubId, readerId, options) {
|
|
13400
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
13401
|
+
var _a, _b, _c;
|
|
13402
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.selectSumupReader(clubId, readerId, options);
|
|
13403
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
13404
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SumUpManagerApi.selectSumupReader']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
13493
13405
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13494
13406
|
});
|
|
13495
13407
|
},
|
|
13496
13408
|
};
|
|
13497
13409
|
};
|
|
13498
13410
|
/**
|
|
13499
|
-
*
|
|
13411
|
+
* SumUpManagerApi - factory interface
|
|
13500
13412
|
* @export
|
|
13501
13413
|
*/
|
|
13502
|
-
export const
|
|
13503
|
-
const localVarFp =
|
|
13414
|
+
export const SumUpManagerApiFactory = function (configuration, basePath, axios) {
|
|
13415
|
+
const localVarFp = SumUpManagerApiFp(configuration);
|
|
13504
13416
|
return {
|
|
13505
13417
|
/**
|
|
13506
|
-
*
|
|
13507
|
-
* @param {
|
|
13418
|
+
* Disconnect SumUp account for a club.
|
|
13419
|
+
* @param {SumUpManagerApiDisconnectSumupRequest} requestParameters Request parameters.
|
|
13508
13420
|
* @param {*} [options] Override http request option.
|
|
13509
13421
|
* @throws {RequiredError}
|
|
13510
13422
|
*/
|
|
13511
|
-
|
|
13512
|
-
return localVarFp.
|
|
13423
|
+
disconnectSumup(requestParameters, options) {
|
|
13424
|
+
return localVarFp.disconnectSumup(requestParameters.clubId, options).then((request) => request(axios, basePath));
|
|
13513
13425
|
},
|
|
13514
13426
|
/**
|
|
13515
|
-
*
|
|
13427
|
+
* Start SumUp OAuth connection for a club.
|
|
13428
|
+
* @param {SumUpManagerApiGetSumupConnectUrlRequest} requestParameters Request parameters.
|
|
13516
13429
|
* @param {*} [options] Override http request option.
|
|
13517
13430
|
* @throws {RequiredError}
|
|
13518
13431
|
*/
|
|
13519
|
-
|
|
13520
|
-
return localVarFp.
|
|
13432
|
+
getSumupConnectUrl(requestParameters, options) {
|
|
13433
|
+
return localVarFp.getSumupConnectUrl(requestParameters.clubId, options).then((request) => request(axios, basePath));
|
|
13521
13434
|
},
|
|
13522
13435
|
/**
|
|
13523
|
-
*
|
|
13524
|
-
* @param {
|
|
13436
|
+
* Get SumUp connection status for a club.
|
|
13437
|
+
* @param {SumUpManagerApiGetSumupStatusRequest} requestParameters Request parameters.
|
|
13525
13438
|
* @param {*} [options] Override http request option.
|
|
13526
13439
|
* @throws {RequiredError}
|
|
13527
13440
|
*/
|
|
13528
|
-
|
|
13529
|
-
return localVarFp.
|
|
13441
|
+
getSumupStatus(requestParameters, options) {
|
|
13442
|
+
return localVarFp.getSumupStatus(requestParameters.clubId, options).then((request) => request(axios, basePath));
|
|
13530
13443
|
},
|
|
13531
13444
|
/**
|
|
13532
|
-
*
|
|
13533
|
-
* @param {
|
|
13445
|
+
* List SumUp readers for a club.
|
|
13446
|
+
* @param {SumUpManagerApiListSumupReadersRequest} requestParameters Request parameters.
|
|
13534
13447
|
* @param {*} [options] Override http request option.
|
|
13535
13448
|
* @throws {RequiredError}
|
|
13536
13449
|
*/
|
|
13537
|
-
|
|
13538
|
-
return localVarFp.
|
|
13450
|
+
listSumupReaders(requestParameters, options) {
|
|
13451
|
+
return localVarFp.listSumupReaders(requestParameters.clubId, options).then((request) => request(axios, basePath));
|
|
13452
|
+
},
|
|
13453
|
+
/**
|
|
13454
|
+
* Pair a SumUp reader with a club.
|
|
13455
|
+
* @param {SumUpManagerApiPairSumupReaderRequest} requestParameters Request parameters.
|
|
13456
|
+
* @param {*} [options] Override http request option.
|
|
13457
|
+
* @throws {RequiredError}
|
|
13458
|
+
*/
|
|
13459
|
+
pairSumupReader(requestParameters, options) {
|
|
13460
|
+
return localVarFp.pairSumupReader(requestParameters.clubId, requestParameters.sumupPairReaderRequest, options).then((request) => request(axios, basePath));
|
|
13461
|
+
},
|
|
13462
|
+
/**
|
|
13463
|
+
* Select a SumUp reader for a club.
|
|
13464
|
+
* @param {SumUpManagerApiSelectSumupReaderRequest} requestParameters Request parameters.
|
|
13465
|
+
* @param {*} [options] Override http request option.
|
|
13466
|
+
* @throws {RequiredError}
|
|
13467
|
+
*/
|
|
13468
|
+
selectSumupReader(requestParameters, options) {
|
|
13469
|
+
return localVarFp.selectSumupReader(requestParameters.clubId, requestParameters.readerId, options).then((request) => request(axios, basePath));
|
|
13539
13470
|
},
|
|
13540
13471
|
};
|
|
13541
13472
|
};
|
|
13542
13473
|
/**
|
|
13543
|
-
*
|
|
13474
|
+
* SumUpManagerApi - object-oriented interface
|
|
13544
13475
|
* @export
|
|
13545
|
-
* @class
|
|
13476
|
+
* @class SumUpManagerApi
|
|
13546
13477
|
* @extends {BaseAPI}
|
|
13547
13478
|
*/
|
|
13548
|
-
export class
|
|
13479
|
+
export class SumUpManagerApi extends BaseAPI {
|
|
13549
13480
|
/**
|
|
13550
|
-
*
|
|
13551
|
-
* @param {
|
|
13481
|
+
* Disconnect SumUp account for a club.
|
|
13482
|
+
* @param {SumUpManagerApiDisconnectSumupRequest} requestParameters Request parameters.
|
|
13552
13483
|
* @param {*} [options] Override http request option.
|
|
13553
13484
|
* @throws {RequiredError}
|
|
13554
|
-
* @memberof
|
|
13485
|
+
* @memberof SumUpManagerApi
|
|
13555
13486
|
*/
|
|
13556
|
-
|
|
13557
|
-
return
|
|
13487
|
+
disconnectSumup(requestParameters, options) {
|
|
13488
|
+
return SumUpManagerApiFp(this.configuration).disconnectSumup(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
|
|
13558
13489
|
}
|
|
13559
13490
|
/**
|
|
13560
|
-
*
|
|
13491
|
+
* Start SumUp OAuth connection for a club.
|
|
13492
|
+
* @param {SumUpManagerApiGetSumupConnectUrlRequest} requestParameters Request parameters.
|
|
13561
13493
|
* @param {*} [options] Override http request option.
|
|
13562
13494
|
* @throws {RequiredError}
|
|
13563
|
-
* @memberof
|
|
13495
|
+
* @memberof SumUpManagerApi
|
|
13564
13496
|
*/
|
|
13565
|
-
|
|
13566
|
-
return
|
|
13497
|
+
getSumupConnectUrl(requestParameters, options) {
|
|
13498
|
+
return SumUpManagerApiFp(this.configuration).getSumupConnectUrl(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
|
|
13567
13499
|
}
|
|
13568
13500
|
/**
|
|
13569
|
-
*
|
|
13570
|
-
* @param {
|
|
13501
|
+
* Get SumUp connection status for a club.
|
|
13502
|
+
* @param {SumUpManagerApiGetSumupStatusRequest} requestParameters Request parameters.
|
|
13571
13503
|
* @param {*} [options] Override http request option.
|
|
13572
13504
|
* @throws {RequiredError}
|
|
13573
|
-
* @memberof
|
|
13505
|
+
* @memberof SumUpManagerApi
|
|
13574
13506
|
*/
|
|
13575
|
-
|
|
13576
|
-
return
|
|
13507
|
+
getSumupStatus(requestParameters, options) {
|
|
13508
|
+
return SumUpManagerApiFp(this.configuration).getSumupStatus(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
|
|
13577
13509
|
}
|
|
13578
13510
|
/**
|
|
13579
|
-
*
|
|
13580
|
-
* @param {
|
|
13511
|
+
* List SumUp readers for a club.
|
|
13512
|
+
* @param {SumUpManagerApiListSumupReadersRequest} requestParameters Request parameters.
|
|
13581
13513
|
* @param {*} [options] Override http request option.
|
|
13582
13514
|
* @throws {RequiredError}
|
|
13583
|
-
* @memberof
|
|
13515
|
+
* @memberof SumUpManagerApi
|
|
13584
13516
|
*/
|
|
13585
|
-
|
|
13586
|
-
return
|
|
13517
|
+
listSumupReaders(requestParameters, options) {
|
|
13518
|
+
return SumUpManagerApiFp(this.configuration).listSumupReaders(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
|
|
13519
|
+
}
|
|
13520
|
+
/**
|
|
13521
|
+
* Pair a SumUp reader with a club.
|
|
13522
|
+
* @param {SumUpManagerApiPairSumupReaderRequest} requestParameters Request parameters.
|
|
13523
|
+
* @param {*} [options] Override http request option.
|
|
13524
|
+
* @throws {RequiredError}
|
|
13525
|
+
* @memberof SumUpManagerApi
|
|
13526
|
+
*/
|
|
13527
|
+
pairSumupReader(requestParameters, options) {
|
|
13528
|
+
return SumUpManagerApiFp(this.configuration).pairSumupReader(requestParameters.clubId, requestParameters.sumupPairReaderRequest, options).then((request) => request(this.axios, this.basePath));
|
|
13529
|
+
}
|
|
13530
|
+
/**
|
|
13531
|
+
* Select a SumUp reader for a club.
|
|
13532
|
+
* @param {SumUpManagerApiSelectSumupReaderRequest} requestParameters Request parameters.
|
|
13533
|
+
* @param {*} [options] Override http request option.
|
|
13534
|
+
* @throws {RequiredError}
|
|
13535
|
+
* @memberof SumUpManagerApi
|
|
13536
|
+
*/
|
|
13537
|
+
selectSumupReader(requestParameters, options) {
|
|
13538
|
+
return SumUpManagerApiFp(this.configuration).selectSumupReader(requestParameters.clubId, requestParameters.readerId, options).then((request) => request(this.axios, this.basePath));
|
|
13587
13539
|
}
|
|
13588
13540
|
}
|
|
13589
13541
|
/**
|
|
@@ -14320,47 +14272,6 @@ export const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
14320
14272
|
options: localVarRequestOptions,
|
|
14321
14273
|
};
|
|
14322
14274
|
}),
|
|
14323
|
-
/**
|
|
14324
|
-
*
|
|
14325
|
-
* @param {number} [limit]
|
|
14326
|
-
* @param {number} [skip]
|
|
14327
|
-
* @param {any} [includeRead]
|
|
14328
|
-
* @param {*} [options] Override http request option.
|
|
14329
|
-
* @throws {RequiredError}
|
|
14330
|
-
*/
|
|
14331
|
-
getUserNotifications: (limit_1, skip_1, includeRead_1, ...args_1) => __awaiter(this, [limit_1, skip_1, includeRead_1, ...args_1], void 0, function* (limit, skip, includeRead, options = {}) {
|
|
14332
|
-
const localVarPath = `/api/users/me/notifications`;
|
|
14333
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14334
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
14335
|
-
let baseOptions;
|
|
14336
|
-
if (configuration) {
|
|
14337
|
-
baseOptions = configuration.baseOptions;
|
|
14338
|
-
}
|
|
14339
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
14340
|
-
const localVarHeaderParameter = {};
|
|
14341
|
-
const localVarQueryParameter = {};
|
|
14342
|
-
// authentication bearerAuth required
|
|
14343
|
-
// http bearer authentication required
|
|
14344
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
14345
|
-
if (limit !== undefined) {
|
|
14346
|
-
localVarQueryParameter['limit'] = limit;
|
|
14347
|
-
}
|
|
14348
|
-
if (skip !== undefined) {
|
|
14349
|
-
localVarQueryParameter['skip'] = skip;
|
|
14350
|
-
}
|
|
14351
|
-
if (includeRead !== undefined) {
|
|
14352
|
-
for (const [key, value] of Object.entries(includeRead)) {
|
|
14353
|
-
localVarQueryParameter[key] = value;
|
|
14354
|
-
}
|
|
14355
|
-
}
|
|
14356
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
14357
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14358
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14359
|
-
return {
|
|
14360
|
-
url: toPathString(localVarUrlObj),
|
|
14361
|
-
options: localVarRequestOptions,
|
|
14362
|
-
};
|
|
14363
|
-
}),
|
|
14364
14275
|
/**
|
|
14365
14276
|
*
|
|
14366
14277
|
* @param {string} id
|
|
@@ -14548,38 +14459,6 @@ export const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
14548
14459
|
options: localVarRequestOptions,
|
|
14549
14460
|
};
|
|
14550
14461
|
}),
|
|
14551
|
-
/**
|
|
14552
|
-
*
|
|
14553
|
-
* @param {MarkNotificationsReadRequest} markNotificationsReadRequest
|
|
14554
|
-
* @param {*} [options] Override http request option.
|
|
14555
|
-
* @throws {RequiredError}
|
|
14556
|
-
*/
|
|
14557
|
-
markNotificationsRead: (markNotificationsReadRequest_1, ...args_1) => __awaiter(this, [markNotificationsReadRequest_1, ...args_1], void 0, function* (markNotificationsReadRequest, options = {}) {
|
|
14558
|
-
// verify required parameter 'markNotificationsReadRequest' is not null or undefined
|
|
14559
|
-
assertParamExists('markNotificationsRead', 'markNotificationsReadRequest', markNotificationsReadRequest);
|
|
14560
|
-
const localVarPath = `/api/users/me/notifications/read`;
|
|
14561
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14562
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
14563
|
-
let baseOptions;
|
|
14564
|
-
if (configuration) {
|
|
14565
|
-
baseOptions = configuration.baseOptions;
|
|
14566
|
-
}
|
|
14567
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
14568
|
-
const localVarHeaderParameter = {};
|
|
14569
|
-
const localVarQueryParameter = {};
|
|
14570
|
-
// authentication bearerAuth required
|
|
14571
|
-
// http bearer authentication required
|
|
14572
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
14573
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
14574
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
14575
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14576
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14577
|
-
localVarRequestOptions.data = serializeDataIfNeeded(markNotificationsReadRequest, localVarRequestOptions, configuration);
|
|
14578
|
-
return {
|
|
14579
|
-
url: toPathString(localVarUrlObj),
|
|
14580
|
-
options: localVarRequestOptions,
|
|
14581
|
-
};
|
|
14582
|
-
}),
|
|
14583
14462
|
/**
|
|
14584
14463
|
*
|
|
14585
14464
|
* @param {RefreshTokenRequestBody} refreshTokenRequestBody
|
|
@@ -14703,59 +14582,27 @@ export const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
14703
14582
|
* @param {string} favoritePlayerId
|
|
14704
14583
|
* @param {*} [options] Override http request option.
|
|
14705
14584
|
* @throws {RequiredError}
|
|
14706
|
-
*/
|
|
14707
|
-
removeFavoritePlayer: (favoritePlayerId_1, ...args_1) => __awaiter(this, [favoritePlayerId_1, ...args_1], void 0, function* (favoritePlayerId, options = {}) {
|
|
14708
|
-
// verify required parameter 'favoritePlayerId' is not null or undefined
|
|
14709
|
-
assertParamExists('removeFavoritePlayer', 'favoritePlayerId', favoritePlayerId);
|
|
14710
|
-
const localVarPath = `/api/users/me/favoritesPlayers/{favoritePlayerId}`
|
|
14711
|
-
.replace(`{${"favoritePlayerId"}}`, encodeURIComponent(String(favoritePlayerId)));
|
|
14712
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14713
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
14714
|
-
let baseOptions;
|
|
14715
|
-
if (configuration) {
|
|
14716
|
-
baseOptions = configuration.baseOptions;
|
|
14717
|
-
}
|
|
14718
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
14719
|
-
const localVarHeaderParameter = {};
|
|
14720
|
-
const localVarQueryParameter = {};
|
|
14721
|
-
// authentication bearerAuth required
|
|
14722
|
-
// http bearer authentication required
|
|
14723
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
14724
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
14725
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14726
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14727
|
-
return {
|
|
14728
|
-
url: toPathString(localVarUrlObj),
|
|
14729
|
-
options: localVarRequestOptions,
|
|
14730
|
-
};
|
|
14731
|
-
}),
|
|
14732
|
-
/**
|
|
14733
|
-
*
|
|
14734
|
-
* @param {AddOrganizationRequest} addOrganizationRequest
|
|
14735
|
-
* @param {*} [options] Override http request option.
|
|
14736
|
-
* @throws {RequiredError}
|
|
14737
|
-
*/
|
|
14738
|
-
removeOrganization: (addOrganizationRequest_1, ...args_1) => __awaiter(this, [addOrganizationRequest_1, ...args_1], void 0, function* (addOrganizationRequest, options = {}) {
|
|
14739
|
-
// verify required parameter 'addOrganizationRequest' is not null or undefined
|
|
14740
|
-
assertParamExists('removeOrganization', 'addOrganizationRequest', addOrganizationRequest);
|
|
14741
|
-
const localVarPath = `/api/users/me/remove-organization`;
|
|
14585
|
+
*/
|
|
14586
|
+
removeFavoritePlayer: (favoritePlayerId_1, ...args_1) => __awaiter(this, [favoritePlayerId_1, ...args_1], void 0, function* (favoritePlayerId, options = {}) {
|
|
14587
|
+
// verify required parameter 'favoritePlayerId' is not null or undefined
|
|
14588
|
+
assertParamExists('removeFavoritePlayer', 'favoritePlayerId', favoritePlayerId);
|
|
14589
|
+
const localVarPath = `/api/users/me/favoritesPlayers/{favoritePlayerId}`
|
|
14590
|
+
.replace(`{${"favoritePlayerId"}}`, encodeURIComponent(String(favoritePlayerId)));
|
|
14742
14591
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14743
14592
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
14744
14593
|
let baseOptions;
|
|
14745
14594
|
if (configuration) {
|
|
14746
14595
|
baseOptions = configuration.baseOptions;
|
|
14747
14596
|
}
|
|
14748
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
14597
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
14749
14598
|
const localVarHeaderParameter = {};
|
|
14750
14599
|
const localVarQueryParameter = {};
|
|
14751
14600
|
// authentication bearerAuth required
|
|
14752
14601
|
// http bearer authentication required
|
|
14753
14602
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
14754
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
14755
14603
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
14756
14604
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14757
14605
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14758
|
-
localVarRequestOptions.data = serializeDataIfNeeded(addOrganizationRequest, localVarRequestOptions, configuration);
|
|
14759
14606
|
return {
|
|
14760
14607
|
url: toPathString(localVarUrlObj),
|
|
14761
14608
|
options: localVarRequestOptions,
|
|
@@ -14763,11 +14610,14 @@ export const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
14763
14610
|
}),
|
|
14764
14611
|
/**
|
|
14765
14612
|
*
|
|
14613
|
+
* @param {AddOrganizationRequest} addOrganizationRequest
|
|
14766
14614
|
* @param {*} [options] Override http request option.
|
|
14767
14615
|
* @throws {RequiredError}
|
|
14768
14616
|
*/
|
|
14769
|
-
|
|
14770
|
-
|
|
14617
|
+
removeOrganization: (addOrganizationRequest_1, ...args_1) => __awaiter(this, [addOrganizationRequest_1, ...args_1], void 0, function* (addOrganizationRequest, options = {}) {
|
|
14618
|
+
// verify required parameter 'addOrganizationRequest' is not null or undefined
|
|
14619
|
+
assertParamExists('removeOrganization', 'addOrganizationRequest', addOrganizationRequest);
|
|
14620
|
+
const localVarPath = `/api/users/me/remove-organization`;
|
|
14771
14621
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14772
14622
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
14773
14623
|
let baseOptions;
|
|
@@ -14780,9 +14630,11 @@ export const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
14780
14630
|
// authentication bearerAuth required
|
|
14781
14631
|
// http bearer authentication required
|
|
14782
14632
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
14633
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
14783
14634
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
14784
14635
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14785
14636
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14637
|
+
localVarRequestOptions.data = serializeDataIfNeeded(addOrganizationRequest, localVarRequestOptions, configuration);
|
|
14786
14638
|
return {
|
|
14787
14639
|
url: toPathString(localVarUrlObj),
|
|
14788
14640
|
options: localVarRequestOptions,
|
|
@@ -14790,14 +14642,11 @@ export const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
14790
14642
|
}),
|
|
14791
14643
|
/**
|
|
14792
14644
|
*
|
|
14793
|
-
* @param {RequestOrganizationEmailCodeBody} requestOrganizationEmailCodeBody
|
|
14794
14645
|
* @param {*} [options] Override http request option.
|
|
14795
14646
|
* @throws {RequiredError}
|
|
14796
14647
|
*/
|
|
14797
|
-
|
|
14798
|
-
|
|
14799
|
-
assertParamExists('requestOrganizationCode', 'requestOrganizationEmailCodeBody', requestOrganizationEmailCodeBody);
|
|
14800
|
-
const localVarPath = `/api/users/me/request-organization-code`;
|
|
14648
|
+
requestEmailVerification: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
14649
|
+
const localVarPath = `/api/users/me/request-email-verification`;
|
|
14801
14650
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14802
14651
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
14803
14652
|
let baseOptions;
|
|
@@ -14810,11 +14659,9 @@ export const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
14810
14659
|
// authentication bearerAuth required
|
|
14811
14660
|
// http bearer authentication required
|
|
14812
14661
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
14813
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
14814
14662
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
14815
14663
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14816
14664
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14817
|
-
localVarRequestOptions.data = serializeDataIfNeeded(requestOrganizationEmailCodeBody, localVarRequestOptions, configuration);
|
|
14818
14665
|
return {
|
|
14819
14666
|
url: toPathString(localVarUrlObj),
|
|
14820
14667
|
options: localVarRequestOptions,
|
|
@@ -14878,51 +14725,6 @@ export const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
14878
14725
|
options: localVarRequestOptions,
|
|
14879
14726
|
};
|
|
14880
14727
|
}),
|
|
14881
|
-
/**
|
|
14882
|
-
*
|
|
14883
|
-
* @param {string} q
|
|
14884
|
-
* @param {number} [page]
|
|
14885
|
-
* @param {number} [limit]
|
|
14886
|
-
* @param {Array<string>} [excludeIds]
|
|
14887
|
-
* @param {*} [options] Override http request option.
|
|
14888
|
-
* @throws {RequiredError}
|
|
14889
|
-
*/
|
|
14890
|
-
searchPartner: (q_1, page_1, limit_1, excludeIds_1, ...args_1) => __awaiter(this, [q_1, page_1, limit_1, excludeIds_1, ...args_1], void 0, function* (q, page, limit, excludeIds, options = {}) {
|
|
14891
|
-
// verify required parameter 'q' is not null or undefined
|
|
14892
|
-
assertParamExists('searchPartner', 'q', q);
|
|
14893
|
-
const localVarPath = `/api/users/searchPartner`;
|
|
14894
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14895
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
14896
|
-
let baseOptions;
|
|
14897
|
-
if (configuration) {
|
|
14898
|
-
baseOptions = configuration.baseOptions;
|
|
14899
|
-
}
|
|
14900
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
14901
|
-
const localVarHeaderParameter = {};
|
|
14902
|
-
const localVarQueryParameter = {};
|
|
14903
|
-
// authentication bearerAuth required
|
|
14904
|
-
// http bearer authentication required
|
|
14905
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
14906
|
-
if (q !== undefined) {
|
|
14907
|
-
localVarQueryParameter['q'] = q;
|
|
14908
|
-
}
|
|
14909
|
-
if (page !== undefined) {
|
|
14910
|
-
localVarQueryParameter['page'] = page;
|
|
14911
|
-
}
|
|
14912
|
-
if (limit !== undefined) {
|
|
14913
|
-
localVarQueryParameter['limit'] = limit;
|
|
14914
|
-
}
|
|
14915
|
-
if (excludeIds) {
|
|
14916
|
-
localVarQueryParameter['excludeIds'] = excludeIds;
|
|
14917
|
-
}
|
|
14918
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
14919
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14920
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14921
|
-
return {
|
|
14922
|
-
url: toPathString(localVarUrlObj),
|
|
14923
|
-
options: localVarRequestOptions,
|
|
14924
|
-
};
|
|
14925
|
-
}),
|
|
14926
14728
|
/**
|
|
14927
14729
|
*
|
|
14928
14730
|
* @param {GoogleAuthRequestBody} googleAuthRequestBody
|
|
@@ -15138,38 +14940,6 @@ export const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
15138
14940
|
options: localVarRequestOptions,
|
|
15139
14941
|
};
|
|
15140
14942
|
}),
|
|
15141
|
-
/**
|
|
15142
|
-
*
|
|
15143
|
-
* @param {VerifyOrganizationEmailCodeBody} verifyOrganizationEmailCodeBody
|
|
15144
|
-
* @param {*} [options] Override http request option.
|
|
15145
|
-
* @throws {RequiredError}
|
|
15146
|
-
*/
|
|
15147
|
-
verifyOrganizationCode: (verifyOrganizationEmailCodeBody_1, ...args_1) => __awaiter(this, [verifyOrganizationEmailCodeBody_1, ...args_1], void 0, function* (verifyOrganizationEmailCodeBody, options = {}) {
|
|
15148
|
-
// verify required parameter 'verifyOrganizationEmailCodeBody' is not null or undefined
|
|
15149
|
-
assertParamExists('verifyOrganizationCode', 'verifyOrganizationEmailCodeBody', verifyOrganizationEmailCodeBody);
|
|
15150
|
-
const localVarPath = `/api/users/me/verify-organization-code`;
|
|
15151
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
15152
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
15153
|
-
let baseOptions;
|
|
15154
|
-
if (configuration) {
|
|
15155
|
-
baseOptions = configuration.baseOptions;
|
|
15156
|
-
}
|
|
15157
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
15158
|
-
const localVarHeaderParameter = {};
|
|
15159
|
-
const localVarQueryParameter = {};
|
|
15160
|
-
// authentication bearerAuth required
|
|
15161
|
-
// http bearer authentication required
|
|
15162
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
15163
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
15164
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
15165
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
15166
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
15167
|
-
localVarRequestOptions.data = serializeDataIfNeeded(verifyOrganizationEmailCodeBody, localVarRequestOptions, configuration);
|
|
15168
|
-
return {
|
|
15169
|
-
url: toPathString(localVarUrlObj),
|
|
15170
|
-
options: localVarRequestOptions,
|
|
15171
|
-
};
|
|
15172
|
-
}),
|
|
15173
14943
|
};
|
|
15174
14944
|
};
|
|
15175
14945
|
/**
|
|
@@ -15481,23 +15251,6 @@ export const UsersApiFp = function (configuration) {
|
|
|
15481
15251
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15482
15252
|
});
|
|
15483
15253
|
},
|
|
15484
|
-
/**
|
|
15485
|
-
*
|
|
15486
|
-
* @param {number} [limit]
|
|
15487
|
-
* @param {number} [skip]
|
|
15488
|
-
* @param {any} [includeRead]
|
|
15489
|
-
* @param {*} [options] Override http request option.
|
|
15490
|
-
* @throws {RequiredError}
|
|
15491
|
-
*/
|
|
15492
|
-
getUserNotifications(limit, skip, includeRead, options) {
|
|
15493
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
15494
|
-
var _a, _b, _c;
|
|
15495
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserNotifications(limit, skip, includeRead, options);
|
|
15496
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
15497
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.getUserNotifications']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
15498
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15499
|
-
});
|
|
15500
|
-
},
|
|
15501
15254
|
/**
|
|
15502
15255
|
*
|
|
15503
15256
|
* @param {string} id
|
|
@@ -15582,21 +15335,6 @@ export const UsersApiFp = function (configuration) {
|
|
|
15582
15335
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15583
15336
|
});
|
|
15584
15337
|
},
|
|
15585
|
-
/**
|
|
15586
|
-
*
|
|
15587
|
-
* @param {MarkNotificationsReadRequest} markNotificationsReadRequest
|
|
15588
|
-
* @param {*} [options] Override http request option.
|
|
15589
|
-
* @throws {RequiredError}
|
|
15590
|
-
*/
|
|
15591
|
-
markNotificationsRead(markNotificationsReadRequest, options) {
|
|
15592
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
15593
|
-
var _a, _b, _c;
|
|
15594
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.markNotificationsRead(markNotificationsReadRequest, options);
|
|
15595
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
15596
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.markNotificationsRead']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
15597
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15598
|
-
});
|
|
15599
|
-
},
|
|
15600
15338
|
/**
|
|
15601
15339
|
*
|
|
15602
15340
|
* @param {RefreshTokenRequestBody} refreshTokenRequestBody
|
|
@@ -15701,21 +15439,6 @@ export const UsersApiFp = function (configuration) {
|
|
|
15701
15439
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15702
15440
|
});
|
|
15703
15441
|
},
|
|
15704
|
-
/**
|
|
15705
|
-
*
|
|
15706
|
-
* @param {RequestOrganizationEmailCodeBody} requestOrganizationEmailCodeBody
|
|
15707
|
-
* @param {*} [options] Override http request option.
|
|
15708
|
-
* @throws {RequiredError}
|
|
15709
|
-
*/
|
|
15710
|
-
requestOrganizationCode(requestOrganizationEmailCodeBody, options) {
|
|
15711
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
15712
|
-
var _a, _b, _c;
|
|
15713
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.requestOrganizationCode(requestOrganizationEmailCodeBody, options);
|
|
15714
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
15715
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.requestOrganizationCode']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
15716
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15717
|
-
});
|
|
15718
|
-
},
|
|
15719
15442
|
/**
|
|
15720
15443
|
*
|
|
15721
15444
|
* @param {PasswordResetRequestBody} passwordResetRequestBody
|
|
@@ -15746,24 +15469,6 @@ export const UsersApiFp = function (configuration) {
|
|
|
15746
15469
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15747
15470
|
});
|
|
15748
15471
|
},
|
|
15749
|
-
/**
|
|
15750
|
-
*
|
|
15751
|
-
* @param {string} q
|
|
15752
|
-
* @param {number} [page]
|
|
15753
|
-
* @param {number} [limit]
|
|
15754
|
-
* @param {Array<string>} [excludeIds]
|
|
15755
|
-
* @param {*} [options] Override http request option.
|
|
15756
|
-
* @throws {RequiredError}
|
|
15757
|
-
*/
|
|
15758
|
-
searchPartner(q, page, limit, excludeIds, options) {
|
|
15759
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
15760
|
-
var _a, _b, _c;
|
|
15761
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.searchPartner(q, page, limit, excludeIds, options);
|
|
15762
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
15763
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.searchPartner']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
15764
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15765
|
-
});
|
|
15766
|
-
},
|
|
15767
15472
|
/**
|
|
15768
15473
|
*
|
|
15769
15474
|
* @param {GoogleAuthRequestBody} googleAuthRequestBody
|
|
@@ -15869,21 +15574,6 @@ export const UsersApiFp = function (configuration) {
|
|
|
15869
15574
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15870
15575
|
});
|
|
15871
15576
|
},
|
|
15872
|
-
/**
|
|
15873
|
-
*
|
|
15874
|
-
* @param {VerifyOrganizationEmailCodeBody} verifyOrganizationEmailCodeBody
|
|
15875
|
-
* @param {*} [options] Override http request option.
|
|
15876
|
-
* @throws {RequiredError}
|
|
15877
|
-
*/
|
|
15878
|
-
verifyOrganizationCode(verifyOrganizationEmailCodeBody, options) {
|
|
15879
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
15880
|
-
var _a, _b, _c;
|
|
15881
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.verifyOrganizationCode(verifyOrganizationEmailCodeBody, options);
|
|
15882
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
15883
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.verifyOrganizationCode']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
15884
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15885
|
-
});
|
|
15886
|
-
},
|
|
15887
15577
|
};
|
|
15888
15578
|
};
|
|
15889
15579
|
/**
|
|
@@ -16065,15 +15755,6 @@ export const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
16065
15755
|
getUserEvents(requestParameters = {}, options) {
|
|
16066
15756
|
return localVarFp.getUserEvents(requestParameters.limit, requestParameters.skip, options).then((request) => request(axios, basePath));
|
|
16067
15757
|
},
|
|
16068
|
-
/**
|
|
16069
|
-
*
|
|
16070
|
-
* @param {UsersApiGetUserNotificationsRequest} requestParameters Request parameters.
|
|
16071
|
-
* @param {*} [options] Override http request option.
|
|
16072
|
-
* @throws {RequiredError}
|
|
16073
|
-
*/
|
|
16074
|
-
getUserNotifications(requestParameters = {}, options) {
|
|
16075
|
-
return localVarFp.getUserNotifications(requestParameters.limit, requestParameters.skip, requestParameters.includeRead, options).then((request) => request(axios, basePath));
|
|
16076
|
-
},
|
|
16077
15758
|
/**
|
|
16078
15759
|
*
|
|
16079
15760
|
* @param {UsersApiGetUserProfileByIdRequest} requestParameters Request parameters.
|
|
@@ -16119,15 +15800,6 @@ export const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
16119
15800
|
loginClubMember(requestParameters, options) {
|
|
16120
15801
|
return localVarFp.loginClubMember(requestParameters.loginRequestBody, options).then((request) => request(axios, basePath));
|
|
16121
15802
|
},
|
|
16122
|
-
/**
|
|
16123
|
-
*
|
|
16124
|
-
* @param {UsersApiMarkNotificationsReadRequest} requestParameters Request parameters.
|
|
16125
|
-
* @param {*} [options] Override http request option.
|
|
16126
|
-
* @throws {RequiredError}
|
|
16127
|
-
*/
|
|
16128
|
-
markNotificationsRead(requestParameters, options) {
|
|
16129
|
-
return localVarFp.markNotificationsRead(requestParameters.markNotificationsReadRequest, options).then((request) => request(axios, basePath));
|
|
16130
|
-
},
|
|
16131
15803
|
/**
|
|
16132
15804
|
*
|
|
16133
15805
|
* @param {UsersApiRefreshTokenRequest} requestParameters Request parameters.
|
|
@@ -16190,15 +15862,6 @@ export const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
16190
15862
|
requestEmailVerification(options) {
|
|
16191
15863
|
return localVarFp.requestEmailVerification(options).then((request) => request(axios, basePath));
|
|
16192
15864
|
},
|
|
16193
|
-
/**
|
|
16194
|
-
*
|
|
16195
|
-
* @param {UsersApiRequestOrganizationCodeRequest} requestParameters Request parameters.
|
|
16196
|
-
* @param {*} [options] Override http request option.
|
|
16197
|
-
* @throws {RequiredError}
|
|
16198
|
-
*/
|
|
16199
|
-
requestOrganizationCode(requestParameters, options) {
|
|
16200
|
-
return localVarFp.requestOrganizationCode(requestParameters.requestOrganizationEmailCodeBody, options).then((request) => request(axios, basePath));
|
|
16201
|
-
},
|
|
16202
15865
|
/**
|
|
16203
15866
|
*
|
|
16204
15867
|
* @param {UsersApiRequestPasswordResetRequest} requestParameters Request parameters.
|
|
@@ -16217,15 +15880,6 @@ export const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
16217
15880
|
resetPassword(requestParameters, options) {
|
|
16218
15881
|
return localVarFp.resetPassword(requestParameters.resetPasswordRequest, options).then((request) => request(axios, basePath));
|
|
16219
15882
|
},
|
|
16220
|
-
/**
|
|
16221
|
-
*
|
|
16222
|
-
* @param {UsersApiSearchPartnerRequest} requestParameters Request parameters.
|
|
16223
|
-
* @param {*} [options] Override http request option.
|
|
16224
|
-
* @throws {RequiredError}
|
|
16225
|
-
*/
|
|
16226
|
-
searchPartner(requestParameters, options) {
|
|
16227
|
-
return localVarFp.searchPartner(requestParameters.q, requestParameters.page, requestParameters.limit, requestParameters.excludeIds, options).then((request) => request(axios, basePath));
|
|
16228
|
-
},
|
|
16229
15883
|
/**
|
|
16230
15884
|
*
|
|
16231
15885
|
* @param {UsersApiSignInOrSignUpWithGoogleRequest} requestParameters Request parameters.
|
|
@@ -16289,15 +15943,6 @@ export const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
16289
15943
|
verifyOrganization(requestParameters, options) {
|
|
16290
15944
|
return localVarFp.verifyOrganization(requestParameters.verifyEmailRequest, options).then((request) => request(axios, basePath));
|
|
16291
15945
|
},
|
|
16292
|
-
/**
|
|
16293
|
-
*
|
|
16294
|
-
* @param {UsersApiVerifyOrganizationCodeRequest} requestParameters Request parameters.
|
|
16295
|
-
* @param {*} [options] Override http request option.
|
|
16296
|
-
* @throws {RequiredError}
|
|
16297
|
-
*/
|
|
16298
|
-
verifyOrganizationCode(requestParameters, options) {
|
|
16299
|
-
return localVarFp.verifyOrganizationCode(requestParameters.verifyOrganizationEmailCodeBody, options).then((request) => request(axios, basePath));
|
|
16300
|
-
},
|
|
16301
15946
|
};
|
|
16302
15947
|
};
|
|
16303
15948
|
/**
|
|
@@ -16499,16 +16144,6 @@ export class UsersApi extends BaseAPI {
|
|
|
16499
16144
|
getUserEvents(requestParameters = {}, options) {
|
|
16500
16145
|
return UsersApiFp(this.configuration).getUserEvents(requestParameters.limit, requestParameters.skip, options).then((request) => request(this.axios, this.basePath));
|
|
16501
16146
|
}
|
|
16502
|
-
/**
|
|
16503
|
-
*
|
|
16504
|
-
* @param {UsersApiGetUserNotificationsRequest} requestParameters Request parameters.
|
|
16505
|
-
* @param {*} [options] Override http request option.
|
|
16506
|
-
* @throws {RequiredError}
|
|
16507
|
-
* @memberof UsersApi
|
|
16508
|
-
*/
|
|
16509
|
-
getUserNotifications(requestParameters = {}, options) {
|
|
16510
|
-
return UsersApiFp(this.configuration).getUserNotifications(requestParameters.limit, requestParameters.skip, requestParameters.includeRead, options).then((request) => request(this.axios, this.basePath));
|
|
16511
|
-
}
|
|
16512
16147
|
/**
|
|
16513
16148
|
*
|
|
16514
16149
|
* @param {UsersApiGetUserProfileByIdRequest} requestParameters Request parameters.
|
|
@@ -16559,16 +16194,6 @@ export class UsersApi extends BaseAPI {
|
|
|
16559
16194
|
loginClubMember(requestParameters, options) {
|
|
16560
16195
|
return UsersApiFp(this.configuration).loginClubMember(requestParameters.loginRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
16561
16196
|
}
|
|
16562
|
-
/**
|
|
16563
|
-
*
|
|
16564
|
-
* @param {UsersApiMarkNotificationsReadRequest} requestParameters Request parameters.
|
|
16565
|
-
* @param {*} [options] Override http request option.
|
|
16566
|
-
* @throws {RequiredError}
|
|
16567
|
-
* @memberof UsersApi
|
|
16568
|
-
*/
|
|
16569
|
-
markNotificationsRead(requestParameters, options) {
|
|
16570
|
-
return UsersApiFp(this.configuration).markNotificationsRead(requestParameters.markNotificationsReadRequest, options).then((request) => request(this.axios, this.basePath));
|
|
16571
|
-
}
|
|
16572
16197
|
/**
|
|
16573
16198
|
*
|
|
16574
16199
|
* @param {UsersApiRefreshTokenRequest} requestParameters Request parameters.
|
|
@@ -16638,16 +16263,6 @@ export class UsersApi extends BaseAPI {
|
|
|
16638
16263
|
requestEmailVerification(options) {
|
|
16639
16264
|
return UsersApiFp(this.configuration).requestEmailVerification(options).then((request) => request(this.axios, this.basePath));
|
|
16640
16265
|
}
|
|
16641
|
-
/**
|
|
16642
|
-
*
|
|
16643
|
-
* @param {UsersApiRequestOrganizationCodeRequest} requestParameters Request parameters.
|
|
16644
|
-
* @param {*} [options] Override http request option.
|
|
16645
|
-
* @throws {RequiredError}
|
|
16646
|
-
* @memberof UsersApi
|
|
16647
|
-
*/
|
|
16648
|
-
requestOrganizationCode(requestParameters, options) {
|
|
16649
|
-
return UsersApiFp(this.configuration).requestOrganizationCode(requestParameters.requestOrganizationEmailCodeBody, options).then((request) => request(this.axios, this.basePath));
|
|
16650
|
-
}
|
|
16651
16266
|
/**
|
|
16652
16267
|
*
|
|
16653
16268
|
* @param {UsersApiRequestPasswordResetRequest} requestParameters Request parameters.
|
|
@@ -16668,16 +16283,6 @@ export class UsersApi extends BaseAPI {
|
|
|
16668
16283
|
resetPassword(requestParameters, options) {
|
|
16669
16284
|
return UsersApiFp(this.configuration).resetPassword(requestParameters.resetPasswordRequest, options).then((request) => request(this.axios, this.basePath));
|
|
16670
16285
|
}
|
|
16671
|
-
/**
|
|
16672
|
-
*
|
|
16673
|
-
* @param {UsersApiSearchPartnerRequest} requestParameters Request parameters.
|
|
16674
|
-
* @param {*} [options] Override http request option.
|
|
16675
|
-
* @throws {RequiredError}
|
|
16676
|
-
* @memberof UsersApi
|
|
16677
|
-
*/
|
|
16678
|
-
searchPartner(requestParameters, options) {
|
|
16679
|
-
return UsersApiFp(this.configuration).searchPartner(requestParameters.q, requestParameters.page, requestParameters.limit, requestParameters.excludeIds, options).then((request) => request(this.axios, this.basePath));
|
|
16680
|
-
}
|
|
16681
16286
|
/**
|
|
16682
16287
|
*
|
|
16683
16288
|
* @param {UsersApiSignInOrSignUpWithGoogleRequest} requestParameters Request parameters.
|
|
@@ -16748,16 +16353,6 @@ export class UsersApi extends BaseAPI {
|
|
|
16748
16353
|
verifyOrganization(requestParameters, options) {
|
|
16749
16354
|
return UsersApiFp(this.configuration).verifyOrganization(requestParameters.verifyEmailRequest, options).then((request) => request(this.axios, this.basePath));
|
|
16750
16355
|
}
|
|
16751
|
-
/**
|
|
16752
|
-
*
|
|
16753
|
-
* @param {UsersApiVerifyOrganizationCodeRequest} requestParameters Request parameters.
|
|
16754
|
-
* @param {*} [options] Override http request option.
|
|
16755
|
-
* @throws {RequiredError}
|
|
16756
|
-
* @memberof UsersApi
|
|
16757
|
-
*/
|
|
16758
|
-
verifyOrganizationCode(requestParameters, options) {
|
|
16759
|
-
return UsersApiFp(this.configuration).verifyOrganizationCode(requestParameters.verifyOrganizationEmailCodeBody, options).then((request) => request(this.axios, this.basePath));
|
|
16760
|
-
}
|
|
16761
16356
|
}
|
|
16762
16357
|
/**
|
|
16763
16358
|
* WaitListApi - axios parameter creator
|
|
@@ -17477,37 +17072,6 @@ export const WaitListStaffApiAxiosParamCreator = function (configuration) {
|
|
|
17477
17072
|
options: localVarRequestOptions,
|
|
17478
17073
|
};
|
|
17479
17074
|
}),
|
|
17480
|
-
/**
|
|
17481
|
-
* Obtenir la liste des joueurs dans la file d\'attente pour un event (staff only)
|
|
17482
|
-
* @param {string} eventId
|
|
17483
|
-
* @param {*} [options] Override http request option.
|
|
17484
|
-
* @throws {RequiredError}
|
|
17485
|
-
*/
|
|
17486
|
-
getEventWaitListPlayers: (eventId_1, ...args_1) => __awaiter(this, [eventId_1, ...args_1], void 0, function* (eventId, options = {}) {
|
|
17487
|
-
// verify required parameter 'eventId' is not null or undefined
|
|
17488
|
-
assertParamExists('getEventWaitListPlayers', 'eventId', eventId);
|
|
17489
|
-
const localVarPath = `/api/waitlist/event/{eventId}/players`
|
|
17490
|
-
.replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
|
|
17491
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
17492
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
17493
|
-
let baseOptions;
|
|
17494
|
-
if (configuration) {
|
|
17495
|
-
baseOptions = configuration.baseOptions;
|
|
17496
|
-
}
|
|
17497
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
17498
|
-
const localVarHeaderParameter = {};
|
|
17499
|
-
const localVarQueryParameter = {};
|
|
17500
|
-
// authentication bearerAuth required
|
|
17501
|
-
// http bearer authentication required
|
|
17502
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
17503
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
17504
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
17505
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
17506
|
-
return {
|
|
17507
|
-
url: toPathString(localVarUrlObj),
|
|
17508
|
-
options: localVarRequestOptions,
|
|
17509
|
-
};
|
|
17510
|
-
}),
|
|
17511
17075
|
/**
|
|
17512
17076
|
* Forcer le traitement de la waitlist pour un booking (staff only)
|
|
17513
17077
|
* @param {string} bookingId
|
|
@@ -17655,21 +17219,6 @@ export const WaitListStaffApiFp = function (configuration) {
|
|
|
17655
17219
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17656
17220
|
});
|
|
17657
17221
|
},
|
|
17658
|
-
/**
|
|
17659
|
-
* Obtenir la liste des joueurs dans la file d\'attente pour un event (staff only)
|
|
17660
|
-
* @param {string} eventId
|
|
17661
|
-
* @param {*} [options] Override http request option.
|
|
17662
|
-
* @throws {RequiredError}
|
|
17663
|
-
*/
|
|
17664
|
-
getEventWaitListPlayers(eventId, options) {
|
|
17665
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
17666
|
-
var _a, _b, _c;
|
|
17667
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getEventWaitListPlayers(eventId, options);
|
|
17668
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
17669
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['WaitListStaffApi.getEventWaitListPlayers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
17670
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17671
|
-
});
|
|
17672
|
-
},
|
|
17673
17222
|
/**
|
|
17674
17223
|
* Forcer le traitement de la waitlist pour un booking (staff only)
|
|
17675
17224
|
* @param {string} bookingId
|
|
@@ -17751,15 +17300,6 @@ export const WaitListStaffApiFactory = function (configuration, basePath, axios)
|
|
|
17751
17300
|
getEventWaitList(requestParameters, options) {
|
|
17752
17301
|
return localVarFp.getEventWaitList(requestParameters.eventId, options).then((request) => request(axios, basePath));
|
|
17753
17302
|
},
|
|
17754
|
-
/**
|
|
17755
|
-
* Obtenir la liste des joueurs dans la file d\'attente pour un event (staff only)
|
|
17756
|
-
* @param {WaitListStaffApiGetEventWaitListPlayersRequest} requestParameters Request parameters.
|
|
17757
|
-
* @param {*} [options] Override http request option.
|
|
17758
|
-
* @throws {RequiredError}
|
|
17759
|
-
*/
|
|
17760
|
-
getEventWaitListPlayers(requestParameters, options) {
|
|
17761
|
-
return localVarFp.getEventWaitListPlayers(requestParameters.eventId, options).then((request) => request(axios, basePath));
|
|
17762
|
-
},
|
|
17763
17303
|
/**
|
|
17764
17304
|
* Forcer le traitement de la waitlist pour un booking (staff only)
|
|
17765
17305
|
* @param {WaitListStaffApiProcessBookingWaitListRequest} requestParameters Request parameters.
|
|
@@ -17826,16 +17366,6 @@ export class WaitListStaffApi extends BaseAPI {
|
|
|
17826
17366
|
getEventWaitList(requestParameters, options) {
|
|
17827
17367
|
return WaitListStaffApiFp(this.configuration).getEventWaitList(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
|
|
17828
17368
|
}
|
|
17829
|
-
/**
|
|
17830
|
-
* Obtenir la liste des joueurs dans la file d\'attente pour un event (staff only)
|
|
17831
|
-
* @param {WaitListStaffApiGetEventWaitListPlayersRequest} requestParameters Request parameters.
|
|
17832
|
-
* @param {*} [options] Override http request option.
|
|
17833
|
-
* @throws {RequiredError}
|
|
17834
|
-
* @memberof WaitListStaffApi
|
|
17835
|
-
*/
|
|
17836
|
-
getEventWaitListPlayers(requestParameters, options) {
|
|
17837
|
-
return WaitListStaffApiFp(this.configuration).getEventWaitListPlayers(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
|
|
17838
|
-
}
|
|
17839
17369
|
/**
|
|
17840
17370
|
* Forcer le traitement de la waitlist pour un booking (staff only)
|
|
17841
17371
|
* @param {WaitListStaffApiProcessBookingWaitListRequest} requestParameters Request parameters.
|